function setCookie(name,value,hours,path,domain,secure){var str=new String();var nextTime=new Date();nextTime.setHours(nextTime.getHours()+hours);str=name+"="+escape(value);if(hours)str+=";expires="+nextTime.toGMTString();if(path)str+=";path="+path;if(domain)str+=";domain="+domain;if(secure)str+=";secure";document.cookie=str;}function getCookie(name){var rs=new RegExp("(^|)"+name+"=([^;]*)(;|$)","gi").exec(document.cookie),tmp;if(tmp=rs)return unescape(tmp[2]);return null;}function ppf_id(id){return document.getElementById(id);}var dBody=null;function getBody(){if(!dBody)dBody=(document.compatMode&&document.compatMode.indexOf('CSS')>-1)?document.documentElement:document.body;return dBody;}function getScrollX(){return window.pageXOffset||window.scrollX||getBody().scrollLeft||0;}function getScrollY(){return window.pageYOffset||window.scrollY||getBody().scrollTop||0;}var ppf_m=false;var ppf_is_close=true;if(!getCookie("right_win")||!ppf_cookie_time)ppf_is_close=false;if(ppf_cookie_time);if(!ppf_is_close){document.write('');document.write('');function ppf_close(){ppf_is_close=true;ppf_hidden();if(ppf_cookie_time)setCookie("right_win",1,ppf_cookie_time,"/");}function ppf_hidden(){ppf_m = true;ppf_id("ppf_box_id").style.display="none";ppf_id("ppf_close_id").style.display="none";}window.onscroll=function(){ppf_hidden();};window.onresize=function(){ppf_hidden();};function ppf_start(){if(!ppf_m&&!ppf_is_close){var x=document.documentElement.clientWidth+getScrollX()-ppf_width-ppf_right;var y=document.documentElement.clientHeight+getScrollY()-ppf_height-ppf_bottom;ppf_id("ppf_box_id").style.left=x+"px";ppf_id("ppf_box_id").style.top=y+"px";ppf_id("ppf_box_id").style.display="block";ppf_id("ppf_close_id").style.left=x+ppf_width-ppf_close_width-ppf_close_right+"px";ppf_id("ppf_close_id").style.top=y+ppf_close_top+"px";ppf_id("ppf_close_id").style.display="block";}ppf_m=false;setTimeout("ppf_start()",500);}ppf_start();}