var ie=document.all && !window.opera; var iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body ; var ht=(ie)? iebody.clientHeight: window.innerHeight ;//screen.height //alert(ht); var wt=(ie)? iebody.clientWidth : window.innerWidth ;//screen.width var today = new Date(); today.setTime( today.getTime() ); today.setHours(today.getHours()+1); today.setMinutes(0); today.setSeconds(0); enc_eng='01cd730e5721f69f566be2cbeeaf2e69'; span_id='ads_'+enc_eng; show_ads_url='http://www.pantherads.com/publisher-show-ads.php'; show_ads_id='7405'; iframe_width='468'; iframe_height='60'; if (window.ads_01cd730e5721f69f566be2cbeeaf2e69 ){ ads_01cd730e5721f69f566be2cbeeaf2e69+= 1;}else{ ads_01cd730e5721f69f566be2cbeeaf2e69 =1;} block_count= window.ads_01cd730e5721f69f566be2cbeeaf2e69; //ads_8c52b6590cb7fdc5ac9f8e09c6426f40_1_position=1; ad_pos=0; String.prototype.equalsIgnoreCase=myEqualsIgnoreCase; String.prototype.equals=myEquals; function myEquals(arg) { return (this.toString()==arg.toString()); } function myEqualsIgnoreCase(arg) { return (new String(this.toLowerCase())==(new String(arg)).toLowerCase()); } function Set_Cookie( name, value, expires, path, domain, secure ) { if ( expires ) { expires = expires * 1000 * 60 * 60 ; } var expires_date = new Date( today.getTime() + (expires) ); //alert(expires_date); document.cookie = name + "=" +escape( value ) + ";expires=" + expires_date.toGMTString() + //expires.toGMTString() ( ( path ) ? ";path=" + path : "" ) + ( ( domain ) ? ";domain=" + domain : "" ) + ( ( secure ) ? ";secure" : "" ); } function Get_Cookie( name ) { var start = document.cookie.indexOf( name + "=" ); var len = start + name.length + 1; if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) { return null; } if ( start == -1 ) return null; var end = document.cookie.indexOf( ";", len ); if ( end == -1 ) end = document.cookie.length; return unescape( document.cookie.substring( len, end ) ); } function utf8_encode (string) { string = string.replace(/\r\n/g,"\n"); var utftext = ""; for (var n = 0; n < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if((c > 127) && (c < 2048)) { utftext += String.fromCharCode((c >> 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } return escape(utftext); } function pf204652show(span_id,ad_pos,show_ads_id) { //alert(eval("this.pf204652bottomLayer"+span_id+show_ads_id)); if(ad_pos>4) { eval("this.pf204652curHeight"+span_id+show_ads_id+" -= 2;"); eval("if (this.pf204652curHeight"+span_id+show_ads_id+" < this.pf204652maxHeight"+span_id+show_ads_id+"){clearInterval ( this.pf204652IntervalId"+span_id+show_ads_id+" );}this.pf204652bottomLayer"+span_id+show_ads_id+".style.top = this.pf204652curHeight"+span_id+show_ads_id+"+'px';"); } else { eval("this.tempTop"+span_id+show_ads_id+" += 2;"); eval("if (this.tempTop"+span_id+show_ads_id+" >=0){clearInterval ( this.pf204652IntervalId"+span_id+show_ads_id+" );}this.pf204652bottomLayer"+span_id+show_ads_id+".style.top = this.tempTop"+span_id+show_ads_id+"+'px';"); } } function pf204652hide(span_id,ad_pos,show_ads_id ) { if(ad_pos>4) { eval("this.pf204652curHeight"+span_id+show_ads_id+" += 3;"); eval("if (this.pf204652curHeight"+span_id+show_ads_id+" > this.pf204652minHeight"+span_id+show_ads_id+"){clearInterval ( this.pf204652IntervalId"+span_id+show_ads_id+" );}this.pf204652bottomLayer"+span_id+show_ads_id+".style.top = this.pf204652curHeight"+span_id+show_ads_id+"+'px';"); } else { eval("this.tempTop"+span_id+show_ads_id+" -= 3;"); eval("if (this.tempTop"+span_id+show_ads_id+" < this.originalTop"+span_id+show_ads_id+"){clearInterval ( this.pf204652IntervalId"+span_id+show_ads_id+" );}this.pf204652bottomLayer"+span_id+show_ads_id+".style.top = this.tempTop"+span_id+show_ads_id+"+'px';"); } } function pf204652clickhide(span_id,ad_pos,show_ads_id) { //alert(this.style); document.getElementById(span_id+show_ads_id+'_pf204652hide').style.display='none'; document.getElementById(span_id+show_ads_id+'_pf204652show').style.display='inline'; eval("pf204652IntervalId"+span_id+show_ads_id+" = setInterval ( 'pf204652hide(\"'+span_id+'\",'+ad_pos+','+show_ads_id+')', 5 );"); } function pf204652clickshow(span_id,ad_pos,show_ads_id) { document.getElementById(span_id+show_ads_id+'_pf204652hide').style.display='inline'; document.getElementById(span_id+show_ads_id+'_pf204652show').style.display='none'; eval("pf204652IntervalId"+span_id+show_ads_id+" = setInterval ( 'pf204652show(\"'+span_id+'\",'+ad_pos+','+show_ads_id+')', 5 );"); } function pf204652clickclose(span_id) { document.body.style.marginBottom = '0px'; eval("this.pf204652bottomLayer"+span_id+".style.display = 'none';"); } function get_current_working_path(str) { var end_pos=(str.search(/publisher-show-ads.php/)); var url_str_var; if(end_pos!=-1) { url_str_var=(str.substring(0,end_pos)); } else { var end_pos=(str.search(/show-ads.php/)); if(end_pos!=-1) url_str_var=(str.substring(0,end_pos)); } return(url_str_var); } function getstyle_str(iframe_width,str_cwp,spanid,show_ads_id) { style= "* html div#"+spanid+show_ads_id+"_fl813691 {position: absolute; overflow:hidden;top:expression(eval(document.compatMode &&document.compatMode=='CSS1Compat') ?documentElement.scrollTop+(documentElement.clientHeight-this.clientHeight): document.body.scrollTop+(document.body.clientHeight-this.clientHeight));}#"+spanid+show_ads_id+"_coh963846{display:block; height:15px; line-height:15px; width:"+iframe_width+"px;}#"+spanid+show_ads_id+"_coc67178{float:right; padding:0; margin:0; list-style:none; overflow:hidden; height:15px;border:1px solid grey}#"+spanid+show_ads_id+"_coc67178 li{display:inline;padding:0px;}#"+spanid+show_ads_id+"_coc67178 li a{background-image:url("+str_cwp+"images/button.gif); background-repeat:no-repeat; width:30px; height:0; padding-top:15px; overflow:hidden; float:left;}#"+spanid+show_ads_id+"_coc67178 li a.close{background-position: 0 0;}#"+spanid+show_ads_id+"_coc67178 li a.close:hover{background-position: 0 -15px;}#"+spanid+show_ads_id+"_coc67178 li a.min{background-position: -30px 0;}#"+spanid+show_ads_id+"_coc67178 li a.min:hover{background-position: -30px -15px;}#"+spanid+show_ads_id+"_coc67178 li a.max{background-position: -60px 0;}#"+spanid+show_ads_id+"_coc67178 li a.max:hover{background-position: -60px -15px;}"; return style; } tit=document.title; metainfo=document.getElementsByTagName('meta'); ref=document.referrer; ref=ref.replace(":",""); var cont=''; desc = ""; keyword_from_meta = ""; for(i=0; i < metainfo.length;i++) { if(metainfo[i].httpEquiv.equalsIgnoreCase ('Content-Type')) { var tmp=metainfo[i].content; var arr1=tmp.split(";"); for(var j=0; j< arr1.length;j++) { if(arr1[j].substr(1,7).equalsIgnoreCase ("charset")) { //alert(arr1[j]); var arr2=arr1[j].split("="); if(arr2.length>=2) cont=arr2[1]; } } } if(metainfo[i].name.equalsIgnoreCase ('keywords')) { keyword_from_meta=metainfo[i].content; } if((tit=="" ||tit.equalsIgnoreCase ("Untitled Document"))&& metainfo[i].name.equalsIgnoreCase ('title')) { tit=metainfo[i].content; } if(metainfo[i].name.equalsIgnoreCase ('description')) { desc=metainfo[i].content; } } keyword_from_meta=keyword_from_meta.substr(0,300); tit=tit.substr(0,100); desc=desc.substr(0,200); adunitrendered='f'; var adunits=Get_Cookie('_io_ads'); if(adunits) { var adunitsarr=adunits.split(","); for(var j=0; j < adunitsarr.length;j++) { if(adunitsarr[j]==show_ads_id) { adunitrendered='t'; break; } } if(adunitrendered=='f') { adunits=adunits+show_ads_id+','; } } else adunits=show_ads_id+','; //alert(adunitrendered+adunits); Set_Cookie( '_io_ads', adunits, 0 , "/") ; var url=show_ads_url; url=url+"?id="+show_ads_id; url=url+"&ht="+iframe_height; url=url+"&r="+adunitrendered; url=url+"&blockcount="+block_count; url=url+"&content_type="+cont; url=url+"&search="+utf8_encode(keyword_from_meta); url=url+"&title="+utf8_encode(tit); url=url+"&desc="+utf8_encode(desc); url=url+"&ref="+utf8_encode(ref); //alert(url); frame=""; //alert(span_id+"_"+show_ads_id+"_position"); //ad_pos=eval(span_id+"_"+show_ads_id+"_position"); //alert(ad_pos); var sticky=false; if(ad_pos) { horiz_center=((wt/2 )- (iframe_width/2))+"px"; ver_center=((ht/2 )- (iframe_height/2))+"px"; switch(ad_pos) { case 1: frame="
"; sticky=true; break; case 2: frame="
"; sticky=true; break; case 3: frame="
"; sticky=true; break; case 7: frame="
"; sticky=true; break; case 8: frame="
"; sticky=true; break; case 9: frame="
"; sticky=true; break; default: break; } } //alert(sticky); if(sticky==true) { var get_str_cwp=get_current_working_path(show_ads_url); //frame=getstyle_str(iframe_width,get_str_cwp,span_id,show_ads_id)+frame; if(ad_pos>4) { frame+=''; } frame+=""; if(ad_pos<4) { frame+=''; } frame+="
" } else frame+=""; //alert(frame); document.open(); document.write(frame); document.close(); //document.getElementById("show_"+span_id+'_'+show_ads_id).innerHTML=frame; if(sticky==true) { var ss1 = document.createElement('style'); var def = getstyle_str(iframe_width,get_str_cwp,span_id,show_ads_id); ss1.setAttribute("type", "text/css"); if (ss1.styleSheet) { // IE ss1.styleSheet.cssText = def; } else { // the world var tt1 = document.createTextNode(def); ss1.appendChild(tt1); } var hh1 = document.getElementsByTagName('head')[0]; hh1.appendChild(ss1); eval("this.originalTop"+span_id+show_ads_id+" =iframe_height*-1;"); eval("this.tempTop"+span_id+show_ads_id+" =iframe_height*-1 -14;"); eval("this.pf204652maxHeight"+span_id+show_ads_id+" =ht- iframe_height-14;"); eval("this.pf204652curHeight"+span_id+show_ads_id+"=ht;"); eval("this.pf204652minHeight"+span_id+show_ads_id+"= ht-15;"); eval("this.pf204652bottomLayer"+span_id+show_ads_id+" = document.getElementById(span_id+show_ads_id+'_fl813691');"); //alert(eval("this.pf204652bottomLayer"+span_id+show_ads_id)); eval("this.pf204652IntervalId"+span_id+show_ads_id+" = setInterval ( 'pf204652show(\"'+span_id+'\",'+ad_pos+','+show_ads_id+')', 5 );"); } //document.open(); //document.write('ddd'); //document.close();