service_url='';seed=Math.floor(Math.random()*1000000);g=window.onerror;var p39_finished='0';var p39_synched='1';var validateRetry=10;function f(s){return(s!=null)?'"'+s+'"':'""';};function j(s){return escape(s);};function d(p,v){if(v){window.service_url+='&'+p+'='+v;}};function c(p,v){if(v){d(p,j(v));}};function g(message,url,line){p39show();return true;};window.onerror=g;function p39show(){var w=window;w.onerror=w.g;w.service_url='http://ads.peer39.com/advertiser/adstrg?';w.service_url+='cc='+w.client_code+'&sd='+w.seed;c("pu",w.page_url);c("pr",w.page_referrer);c("pt",w.page_title);c("as",w.ad_size);c("ap",w.ad_plcmt);d("ifrm",w.is_iframe);d("et",w.ex_trk);w.service_url=w.service_url.substring(0,1000);w.service_url=w.service_url.replace(/%\w?$/,'');if((w.is_iframe==null)||(w.is_iframe=='false'))document.write('<scr'+'ipt type="text/javascript" src='+f(w.service_url)+'> </script>');else{document.write('<ifr'+'ame'+' name="peer39_ads"'+' id="peer39_ads"'+' width="800px"'+' height="300px"'+' frameborder=0'+' src='+f(w.service_url)+' marginwidth="0"'+' marginheight="0"'+' vspace="0"'+' hspace="0"'+' allowtransparency="true"'+' scrolling="no">');document.write('</ifr'+'ame>');}w.client_id=null;w.page_url=null;w.page_referrer=null;w.page_title=null;w.ad_size=null;w.is_iframe=null;w.ex_trk=null;};function validateFinished(){ if((p39_finished=='1')||(validateRetry==0)){if(typeof(afterFinished)=="function"){afterFinished();}else{validateRetry--;setTimeout('validateFinished()',100);}}};function extractCategories(txt){if(txt!=null&&txt!=""){var pos=txt.indexOf("name=");var end_pos=0;var i=0;var result=new Array();while(pos<=txt.length&&pos>0){end_pos=txt.indexOf('"',pos+6);result[i]=txt.substring(pos+6,end_pos);pos=txt.indexOf("name=",end_pos+1);i++;}return result;}return;};function extractCP(txt){if(txt!=null&&txt!=""){var pos=txt.indexOf("cpUrl");var end_pos=txt.indexOf("</cpUrl");;if(pos<0||end_pos<0)return 0;var result=txt.substring(pos+6,end_pos);return result;}return 0;};function p39showCP(cp,ad_width,ad_height){var w=window;var page_url=document.location;w.service_url='http://ads.peer39.com/advertiser/adstrg?';w.service_url+='cp='+cp+'&cc='+w.client_code+'&sd='+w.seed;c("pu",page_url);c("as",ad_width+"x"+ad_height);c("ap",w.ad_plcmt);d("ifrm",w.is_iframe);d("et",w.ex_trk);w.service_url=w.service_url.substring(0,1000);w.service_url=w.service_url.replace(/%\w?$/,'');if((w.is_iframe==null)||(w.is_iframe=='false'))document.write('<scr'+'ipt type="text/javascript" src='+f(w.service_url)+'> </script>');else{document.write('<ifr'+'ame'+' name="peer39_ads"'+' id="peer39_ads"'+' width=" '+ad_width+'px"'+' height=" '+ad_height+'px"'+' frameborder=0'+' src='+f(w.service_url)+' marginwidth="0"'+' marginheight="0"'+' vspace="0"'+' hspace="0"'+' allowtransparency="true"'+' scrolling="no">');document.write('</ifr'+'ame>');}};if(window.page_url==null){page_referrer=document.referrer;page_title=document.title;page_url=document.location;}if(window.p_url!=null&&window.p_url!='undefined'){page_url=p_url;}p39show();if(window.p39_synched!=null&&window.p39_synched!='undefined'){if(p39_synched=='1')validateFinished();}