Anda di halaman 1dari 2

/* all portions of this software are copyright (c) 2003-2006 right media*/var

rm_ban_flash=0;var rm_url="";var rm_pop_frequency=0;var rm_pop_id=0;var


rm_pop_times=0;var rm_pop_nofreqcap=0;var rm_passback=0;var
rm_tag_type="";rm_tag_type = "ad"; rm_url =
"http://ad.yieldmanager.com/imp?z=336x280&p=1&s=208721&_salt=3079232141";var
rm_pop_cookie_name='ym_pop_freq';var
rm_int_cookie_name='ym_int_freq';if(!window.rm_crex_data){rm_crex_data=new
array();}if(rm_passback==0){rm_pb_data=new
array();if(rm_crex_data.length>0){rm_url+="&x=";for(var
i=0;i<rm_crex_data.length;i++){rm_url+=rm_crex_data[i];if(i!=rm_crex_data.length-
1){rm_url+=",";}}}}else{rm_pb_data.push(rm_crex_data.pop());rm_url+="&x=";for(var
i=0;i<rm_pb_data.length;i++){rm_url+=rm_pb_data[i];if(i!=rm_pb_data.length-
1){rm_url+=",";}}rm_url+="&y=pb";}var flash=new
object();flash=flashdetection();if(cookiesenabled()){rm_url+=(flash.installed?"&b=
10":"&b=12");}else{rm_url+=(flash.installed?"&b=11":"&b=13");}if(!flash.installed|
|rm_ban_flash==1){rm_url+="&m=2";}var
url='';try{if(rm_tag_type=="ad"){if(top==self){url=encodeuricomponent(top.location
.href);url=url.substr(0,256);rm_url+="&u="+url;}}else
if(rm_tag_type=="iframe"){url=encodeuricomponent(document.referrer);url=url.substr
(0,256);rm_url+="&u="+url;}}catch(e){}if(top==self){rm_url+="&r=1";}else{rm_url+="
&r=0";}var rm_tag_src='<script type="text/javascript"
src="'+rm_url+'"><\/script>';if(rm_pop_frequency){if(rmcanshowpop(rm_pop_id,rm_pop
_times,rm_pop_frequency)||
rm_pop_nofreqcap){document.write(rm_tag_src);}}else{document.write(rm_tag_src);}fu
nction cookiesenabled(){var
cookieenabled=(navigator.cookieenabled)?true:false;if(typeof
navigator.cookieenabled=="undefined"&&!cookieenabled){document.cookie="testcookie"
;cookieenabled=(document.cookie.indexof("testcookie")!=-1)?true:false;}return
cookieenabled;}function rmgetcookie(name){var search=name+"=";var
cookiestring=document.cookie;var
result=null;if(cookiestring.length>0){offset=cookiestring.indexof(search);if(offse
t!=-1){offset+=search.length;end=cookiestring.indexof(";",offset);if(end==-
1){end=cookiestring.length;}result=unescape(cookiestring.substring(offset,end));}}
return result;}function flashdetection(){var flash=new
object();flash.installed=false;flash.version='0.0';if(navigator.plugins&&navigator
.plugins.length){for(x=0;x<navigator.plugins.length;x++){if(navigator.plugins[x].n
ame.indexof('shockwave flash')!=-
1){flash.version=navigator.plugins[x].description.split('shockwave flash
')[1];flash.installed=true;break;}}}else
if(window.activexobject){for(x=2;x<10;x++){try{oflash=eval("new
activexobject('shockwaveflash.shockwaveflash."+x+"');");if(oflash){flash.installed
=true;flash.version=x+'.0';}}catch(e){}}}return flash;}function
rmreplace(mystring,toreplace,replaceby){return(mystring.replace(new
regexp(toreplace,'gi'),replaceby));}function writecookie(ckname,ckval){var
numdays=14;var today=new date();var expires=new
date();expires.settime(today.gettime()+(1000*60*60*24*numdays));var
cookietext=ckname+"="+ckval+";expires="+expires.togmtstring()+";path=/;";document.
cookie=cookietext;return null;}function
rmcanshowpop(rm_pop_id,pop_times,pop_frequency){var
countcookiename=rm_pop_cookie_name+rm_pop_id;var
expirecookiename=rm_pop_cookie_name+"_expiration"+rm_pop_id;var
showntimes=rmgetcookie(countcookiename);if(showntimes==null){rmwriteexpirationcook
ie(expirecookiename,pop_frequency);showntimes=0;}else{showntimes=number(showntimes
);}if(showntimes<pop_times){showntimes=1+showntimes;var
expiration=rmgetcookie(expirecookiename);rmwritepopfrequencycookie(rm_pop_id,shown
times,expiration);return_value=true;}else{return_value=false;}return
return_value;}function
rmwritepopfrequencycookie(rm_pop_id,showntimes,expiration){var
cookiename=rm_pop_cookie_name+rm_pop_id;var
cookietext=cookiename+"="+showntimes+";"+"expires="+expiration+";path=/;";document
.cookie=cookietext;}function rmwriteexpirationcookie(cookiename,frequency){var
today=new date();var expires=new
date();expires.settime(today.gettime()+(1000*frequency));var
cookietext=cookiename+"="+expires.togmtstring()+";"+"expires="+expires.togmtstring
()+";path=/;";document.cookie=cookietext;}

Anda mungkin juga menyukai