var TMOUT_P,opendir;var brws=navigator.appName;var brver=navigator.appVersion;var bvar;if((inx=brver.indexOf("MSIE"))!=-1){br=brver.substring(inx,brver.indexOf(';',inx));bver=parseFloat(br.replace("MSIE ",""));}var IE4=(brws=='Microsoft Internet Explorer'&&bver<7)?true:false;var IM_PA='http://blogoak.com/weblog/ads/images/';function IMFi(im){var im = (IE4) ? im+'.gif' : im+'.png'; return im;}var top_box=new Image();top_box.src=IM_PA+"top_box.gif";var top_box_o_rm=new Image();top_box_o_rm.src=IM_PA+"top_box_o_rm.gif";var box_bottom=new Image();box_bottom.src=IM_PA+IMFi("box_bottom");var box_bottom_o_rm=new Image();box_bottom_o_rm.src=IM_PA+IMFi("box_bottom_o_rm");var box_bottom_right=new Image();box_bottom_right.src=IM_PA+IMFi("box_bottom_right");var box_bottom_right_o_rm=new Image();box_bottom_right_o_rm.src=IM_PA+IMFi("box_bottom_right_o_rm");var box_bottom_drag=new Image();box_bottom_drag.src=IM_PA+IMFi("box_bottom_drag");var box_bottom_drag_o_rm=new Image();box_bottom_drag_o_rm.src=IM_PA+IMFi("box_bottom_drag_o_rm");var question_rm=new Image();question_rm.src=IM_PA+"question_rm.gif";var question_o_rm=new Image();question_o_rm.src=IM_PA+"question_o_rm.gif";var close_rm=new Image();close_rm.src=IM_PA+"close_rm.gif";var close_o_rm=new Image();close_o_rm.src=IM_PA+"close_o_rm.gif";var contentlink=new Image();contentlink.src=IM_PA+"contentlink.gif";var contentlink_o=new Image();contentlink_o.src=IM_PA+"contentlink_o.gif";CreateStyleSheet();InitBox();function pa(){for(i=0;i<wrdarr.length;i++)PlaceAds(document.body,i);}pa();function CreateStyleSheet(){document.write('<style type=text/css>'+'.myfaspcads {BORDER-BOTTOM:green 1px solid;COLOR: green;text-decoration: underline;padding-bottom:1}'+'.myfaspcads:visited {COLOR: green;text-decoration: underline}'+'.myfaspcads:hover {COLOR: green;text-decoration: underline;BORDER-BOTTOM:green 2px solid}'+'.myfabodytd {padding-left:15;padding-right:15}'+'.myfaboxbody {font-family:tahoma;font-size:11px;}'+'.myfabodyTitle {color:#FFA200;font-weight:bold;font-size:11px;text-align:center}'+'.myfabodyText {padding:3}'+'.myfabodyImage {max-width: 100px;max-height: 100px;display: inline;clear: none;color: inherit;content: normal;counter-increment: none;counter-reset: none;cue-after: none;cue-before: none;float: none;left: auto;letter-spacing: normal;min-height: 0;min-width: 0;outline-color: invert;outline-style: none;outline-width: medium;overflow: visible;page-break-after: auto;page-break-before: auto;pause-after: 0;pause-before: 0;position: static;table-layout: auto;text-decoration: none;top: auto;unicode-bidi: normal;width: auto;z-index: auto;border: 0px none;margin: 0px;padding: 0px;background: url(\'http://www.webreference.com/js/column5/none\')}'+'.myfabodyURL {color:#666666;font-family:verdana;font-weight:normal;font-size:11px}'+'.myfabodyURL:visited {color:#666666}'+'.myfabodyURL:hover {color:#FFA200}'+'</style>');}function InitBox(){document.write('<div id="myfabox" style="visibility:hidden;position:absolute;left:0;top:0;cursor:hand" onmouseover="MyfaBoxOver(this)" onmouseout="MyfaBoxOut(this)"></div>');document.write('<div style="visibility:hidden;position:absolute;left:0;top:0"><img src="'+top_box.src+'"></div>');document.write('<div style="visibility:hidden;position:absolute;left:0;top:0"><img src="'+box_bottom.src+'"></div>');document.write('<div style="visibility:hidden;position:absolute;left:0;top:0"><img src="'+box_bottom_right.src+'"></div>');document.write('<div style="visibility:hidden;position:absolute;left:0;top:0"><img src="'+box_bottom_drag.src+'"></div>');}function PlaceAds(obj,n){var str=obj.innerHTML;var wspc=wrdarr[n];var word=wspc.word;if(str.search(word)==-1)return false;adsword="<a class=myfaspcads onmouseover=\"MyfaWordOver(event,this,"+n+")\" onmouseout=\"MyfaWordOut(event,this)\" href=\"#\"><span>"+word+"</span></a>";str=eval('str.replace(/'+word+'/g,adsword)');obj.innerHTML=str;}function BoxHeader(){s='<table border="0" cellpadding="0" cellspacing="0" width="313">'+'<tr>'+'<td width="78" align="left"><img border="0" src="'+IM_PA+'contentlink.gif" width="78" height="16" name="contentlink" onmouseover="ImgOver(this)" onmouseout="ImgOut(this)" style="margin-left:5"></td>'+'<td width="100%" align="center" valign="top"><img border="0" src="'+IM_PA+'ad_title.gif" width="71" height="8"></td>'+'<td width="78" nowrap align="right" style="padding-right:5"><a href="http://www.pars.fm" target="_blank"><img src="'+IM_PA+'question_rm.gif" width="13" height="16" alt="What\'s this?" border="0" name="question_rm" onmouseover="ImgOver(this)" onmouseout="ImgOut(this)"></a>'+'  <img src="'+IM_PA+'close_rm.gif" width="13" height="16" alt="Close" border="0" name="close_rm" onmouseover="ImgOver(this)" onmouseout="ImgOut(this)" onclick="HideMyfaBox()"></td>'+'</tr>'+'</table>';return s;}function BoxBody(wspc){s='<table border="0" cellpadding="0" cellspacing="0" width="100%" class="myfaboxbody">'+'<tr>'+'<td class="myfabodyText" style="padding-bottom:5"><div style="width:280px;overflow:hidden">'+unescape(wspc.desc)+'</div></td>'+'</tr>'+'</table>';/*s+= '<table border="0" cellpadding="0" cellspacing="0" width="100%">'+'<tr>'+'<td width="208" align="left" valign="top"><a href="'+wspc.link+'" target="_blank" class="myfabodyURL">'+wspc.url+'</a></td>'+'<td width="105" align="right" style="padding-right:5"><a href="'+wspc.link+'" target="_blank"><img src="'+IM_PA+'moreinfo.gif" width="105" height="22" alt="More Info" border="0"></a>'+'  </td>'+'</tr>'+'</table>';*/ return s;}function CreateMyfaBox(opendir,wspc){if(opendir=='lefttop'||opendir=='righttop'){s='<table border="0" cellpadding="0" cellspacing="0" width="313">'+' <tr>'+'   <td width="100%">'+'   <img id="myfatopbox" border="0" src="'+IM_PA+IMFi('top_curve')+'" width="313" height="10"></td>'+' </tr>'+'</table>'+'<table id="myfamidbox" border="0" cellpadding="0" cellspacing="0" width="313" background="'+IM_PA+'top_box.gif" style="background-repeat:no-repeat">'+' <tr>'+'   <td width="100%" valign="top">'+BoxHeader()+'   </td>'+' </tr>'+' <tr>'+'   <td width="100%" height="70" valign="top" class="myfabodytd">'+BoxBody(wspc)+'   </td>'+' </tr>'+'</table>'+'<table border="0" cellpadding="0" cellspacing="0" width="313">'+' <tr>'+'   <td width="100%">'+'   <img id="myfabotbox" border="0" src="'+IM_PA+''+((opendir=='righttop')?IMFi('box_bottom'):IMFi('box_bottom_right'))+'" width="313" height="45"></td>'+' </tr>'+'</table>';}else if(opendir=='leftbot'||opendir=='rightbot'){s='<table border="0" cellpadding="0" cellspacing="0" width="313">'+' <tr>'+'   <td width="100%">'+'   <img id="myfatopbox" border="0" src="'+IM_PA+''+((opendir=='rightbot')?IMFi('drop_top_curve'):IMFi('drop_top_curve_right'))+'" width="313" height="35"></td>'+' </tr>'+'</table>'+'<table id="myfamidbox" border="0" cellpadding="0" cellspacing="0" width="313" background="'+IM_PA+'top_box.gif" style="background-repeat:no-repeat">'+' <tr>'+'   <td width="100%" valign="top">'+BoxHeader()+'   </td>'+' </tr>'+' <tr>'+'   <td width="100%" height="70" valign="top" class="myfabodytd">'+BoxBody(wspc)+'   </td>'+' </tr>'+'</table>'+'<table border="0" cellpadding="0" cellspacing="0" width="313">'+' <tr>'+'   <td width="100%">'+'   <img id="myfabotbox" border="0" src="'+IM_PA+IMFi('box_bottom_drag')+'" width="313"></td>'+' </tr>'+'</table>';}box=document.getElementById("myfabox");box.innerHTML=s;}function MyfaWordOver(event,wordobj,n){var boxobj=document.getElementById("myfabox");var wspc=wrdarr[n];mouseX=event.clientX;mouseY=event.clientY;winWidth=document.body.clientWidth;winHeight=document.body.clientHeight;opendir=(mouseX<winWidth/2)? 'right' : 'left';opendir+=(mouseY<winHeight/2)? 'bot' : 'top';CreateMyfaBox(opendir,wspc);if(navigator.appName == 'Netscape'){txt_left=findPosX(wordobj);txt_right=txt_left+wordobj.offsetWidth;txt_top=findPosY(wordobj);txt_bot=txt_top+wordobj.offsetHeight;} else {win_width=document.body.clientWidth-750;txt_left=findPosX(wordobj);txt_right=txt_left+wordobj.offsetWidth;txt_top=findPosY(wordobj);txt_bot=txt_top+wordobj.offsetHeight;}if(opendir=='lefttop'||opendir=='righttop'){if(opendir=='lefttop')boxobj.style.left=mouseX-boxobj.offsetWidth+18;else if(opendir=='righttop')boxobj.style.left=mouseX-18;boxobj.style.top=txt_top-boxobj.offsetHeight;}else if(opendir=='leftbot'||opendir=='rightbot'){if(opendir=='leftbot')boxobj.style.left=mouseX-boxobj.offsetWidth+18;else if(opendir=='rightbot')boxobj.style.left=mouseX-18;boxobj.style.top=txt_bot;}ShowMyfaBox();}function MyfaWordOut(event,wordobj){HideMyfaBox();}function MyfaBoxOver(boxobj){ShowMyfaBox();var topbox=document.getElementById("myfatopbox");var midbox=document.getElementById("myfamidbox");var botbox=document.getElementById("myfabotbox");midbox.background=top_box_o_rm.src;if(opendir == 'righttop')botbox.src=box_bottom_o_rm.src;if(opendir == 'lefttop')botbox.src=box_bottom_right_o_rm.src;if(opendir == 'rightbot'||opendir == 'leftbot')botbox.src=box_bottom_drag_o_rm.src;}function MyfaBoxOut(boxobj){var topbox=document.getElementById("myfatopbox");var midbox=document.getElementById("myfamidbox");var botbox=document.getElementById("myfabotbox");midbox.background=top_box.src;if(opendir == 'righttop')botbox.src=box_bottom.src;if(opendir == 'lefttop')botbox.src=box_bottom_right.src;if(opendir == 'rightbot'||opendir == 'leftbot')botbox.src=box_bottom_drag.src;HideMyfaBox();}function ShowMyfaBox(top,left){if(TMOUT_P)clearTimeout(TMOUT_P);var boxobj=document.getElementById("myfabox");boxobj.style.visibility='visible';}function HideMyfaBox(){TMOUT_P=setTimeout("document.getElementById('myfabox').style.visibility='hidden'",500);}function ImgOver(obj){var name=obj.name;if(name.search('_rm')!=-1 && name.search('_o_rm')==-1)name=name.replace('_rm','_o_rm');else name=name+'_o';obj.src=eval(name+'.src');;}function ImgOut(obj){var name=obj.name;if(name.search('_o_rm')!=-1)name=name.replace('_o_rm','_rm');else name=name.replace('_o','');obj.src=eval(name+'.src');;}function findPosX(obj){x=0;if(obj.offsetParent){while(obj.offsetParent){x+= obj.offsetLeft;obj=obj.offsetParent;}}else if(obj.x){x+= obj.x;}return x;}function findPosY(obj){y=0;if(obj.offsetParent){while(obj.offsetParent){y+= obj.offsetTop;obj=obj.offsetParent;}}else if(obj.y){y+= obj.y;}return y;}
