function shL(obj,d,c) { var o; if ((o = findObj(obj)) != null) { if (o.style) { o = o.style; if(c == 'show') c = 'visible'; else if(c == 'hide') c = 'hidden'; } o.visibility = c; } } function findObj(tO, tD) { var p, i, fO; if(!tD) tD = document; if( (p = tO.indexOf("?")) > 0 && parent.frames.length) { tD = parent.frames[tO.substring(p+1)].document; tO = tO.substring(0,p); } if(!(fO = tD[tO]) && tD.all) fO = tD.all[tO]; for(i=0; !fO && tD.layers && i < tD.layers.length; i++) fO = findObj(tO,tD.layers[i].document); if(!fO && document.getElementById) fO = document.getElementById(tO); return fO; } var pspoped = false; var tmautoclose = false; var pssizeset = false; var psadwidth = 0; var psadheight = 0; function setadsize ( adid, img ) { if ( psadwidth > 0 ) psimgwidth = psadwidth; else if ( img ) psimgwidth = img.width; if ( psadheight > 0 ) psimgheight = psadheight; else if ( img ) psimgheight = img.height; pswidth = psimgwidth + psextrwidth; psheight = psimgheight + psextrheight; // place pseudo-popup at... (uncomment position you wish) : // psleft = 10; // left side psleft = bwidth - pswidth - 10; // right side pstop = 10; // top // pstop = bheight - psheight - 10; // bottom if ( pstop < 0 ) pstop = 0; if ((obj = findObj(adid)) != null) { obj.style.left = psleft + "px"; obj.style.top = pstop + "px"; obj.style.width = pswidth + "px"; obj.style.height = psheight + "px"; pssizeset = true; } } function showad( adid, tmout, img ) { if ( !pspoped ) { if ( !pssizeset ) setadsize ( adid, img ); shL(adid,"","show"); if ( !tmautoclose ) tmautoclose = setTimeout('shL("'+adid+'","","hide")', tmout); } } function hidead( adid ) { var puurl = 'http://www.advertising365.com/ats/route.js.php?' + url; var wheight = screen.availHeight-100; var wwidth = screen.availWidth; var wleft = 0; var wtop = 0; var wprop = 'directories=yes,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,copyhistory=yes'; var wprop = wprop + (wprop.length>0?',':'') +'width='+wwidth+',height='+wheight+',left='+wleft+',top='+wtop+',screenX='+wleft+',screenY='+wtop+''; var ppdw=window.open( puurl, "popupad", wprop ); ppdw.blur(); window.focus(); shL(adid,"","hide"); if ( tmautoclose ) { clearTimeout ( tmautoclose ); tmautoclose = false; pspoped = true; } } function showimgad(url,adwidth,adheight) { var obj = findObj('_pspp_adframe'); if ( obj ) { psadwidth = adwidth; psadheight = adheight; var str = ""; str += " 0 ) str += " width='"+adwidth+"'"; if ( adheight > 0 ) str += " height='"+adheight+"'"; str += ">"; obj.innerHTML = str; } } function showhtmlad(html,adwidth,adheight) { var obj = findObj('_pspp_adframe'); if ( obj ) { psadwidth = adwidth; psadheight = adheight; setadsize ( "_pspp_div" ); obj.innerHTML = html; tmr = setTimeout('showad( "_pspp_div", pspshowtime )', 500); } } function showswfad(url,adwidth,adheight) { var obj = findObj('_pspp_adframe'); if ( obj ) { psadwidth = adwidth; psadheight = adheight; setadsize ( "_pspp_div" ); var str = ''; str += ''; str += ''; str += '3) { if (navigator.appName=="Netscape") { bwidth = window.innerWidth-16; bheight = window.innerHeight-16; } if (navigator.appName.indexOf("Microsoft")!=-1) { bwidth = document.body.offsetWidth-25; bheight = document.body.offsetHeight-20; } } psimgwidth = 250; psimgheight = 250; psextrwidth = 0; psextrheight = 10; pswidth = psimgwidth + psextrwidth; psheight = psimgheight + psextrheight; // place pseudo-popup at... (uncomment position you wish) : // psleft = 10; // left side psleft = bwidth - pswidth - 10; // right side pstop = 10; // top // pstop = bheight - psheight - 10; // bottom if ( pstop < 0 ) pstop = 0; url = 'trckid=2rque4cf4e'; url += '&id=986'; url += '&refer='+escape('Unknow'); dt = new Date(); tmzone = dt.getTimezoneOffset()/60; url += '&u_tmzone='+escape(tmzone); url += '&u_platform='+escape(navigator.platform); fnd = /MSIE ([\d\.]*)/i.exec(navigator.appVersion); if(fnd) { url += '&u_language='+escape(navigator.browserLanguage); url += '&u_browsertype=MSIE'; url += '&u_browserver='+escape(fnd[1]); } else { url += '&u_language='+escape(navigator.language); url += '&u_browsertype='+escape(navigator.appName); fnd = /^[\d\.]*/i.exec(navigator.appVersion); if(fnd) url += '&u_browserver='+escape(fnd[0]); } url += '&crc='+escape('1347076275'); var tmp = new Date(); var suffix = tmp.getTime(); url += '&anticache='+suffix; var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1; function swtch_DoFSCommand(command, args) { var swtchObj = InternetExplorer ? swtch : document.swtch; focus(); } if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { url += '&mthd=fs'; document.write('"); window.focus(); setTimeout('focus()',2000);