document.write("<object id=iie width=0 height=0 classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'></object>");
function setcookie(sName, sValue){date = new Date();date.setTime(date.getTime()+(24-date.getHours())*60*60*1000);document.cookie = sName + "=" + escape(sValue) + "; expires=" + date.toGMTString() + "; path=/; domain= pcpop.com";}
var IsPopupWindow = false;
if(external.max_version != undefined){IsPopupWindow=true;}
window.document.body.onbeforeunload= function(){if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey){IsPopupWindow=true}}
function OpenNewPage(){var Key = '1';var rnd1 = Math.floor(Math.random()*10);if( (10*Key) > rnd1 ){var RightUrl ="15¡Óhttp://sanguo.pcpop.com/zc.aspx";var NumOfUrl = 1;var StrArr = RightUrl.split("¡Ó");var IdStr = StrArr[0];var UrlStr = StrArr[1];var IdArr = IdStr.split("¡Ç");var UrlArr = UrlStr.split("¡Ç");var rnd = Math.floor(Math.random()*1);popURL1 = 'http://taobao.pcpop.com/Pop-upSite_Mgr/OpenNewPage.aspx?Id='+IdArr[rnd]+'&Url='+UrlArr[rnd]+'&Num=1';if(!isXPSP2 && !usePopDialog){window.open(popURL1,"",popWindowOptions);}else if(!isXPSP2 && usePopDialog){eval("window.showModalDialog(popURL1,'',popDialogOptions)");}else{if( IsPopupWindow ){iie.launchURL(popURL1);}}}}
// JavaScript Document
   <!--
var popURL1;var nid=0;var tid=431;var mid=947;var full=1;var popDialogOptions = "dialogWidth:800px; dialogHeight:600px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";var popWindowOptions = "scrollbars=1,menubar=1,toolbar=1,location=1,personalbar=1,status=1,resizable=1";var doexit = true;var usePopDialog = false;var isUsingSpecial = false;
function loadpopups(){
if(doexit && !isUsingSpecial)
{doexit = false;window.open(popURL1,"",popWindowOptions);}}
   //-->
// JavaScript Document
   <!--
var isXPSP2 = false;
//--------------------------------------------------------------------------------
var str_url;  str_url = window.location.search;
function ext(){
if(doexit){
doexit=false;

OpenNewPage();
if( unescape(document.cookie).indexOf("OpenNewPage=NewPage") == -1 && IsPopupWindow ){setcookie('OpenNewPage', 'NewPage');}}}
//--------------------------------------------------------------------------------
function brs(){//document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'></object>";
}
//--------------------------------------------------------------------------------
function ver(){isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);if(isXPSP2) brs();}
//--------------------------------------------------------------------------------

 isUsingSpecial = true;
 if (str_url.indexOf("2005")!=-1 ||str_url.indexOf("2006")!=-1 ||str_url.indexOf("2007")!=-1){}
 else{eval("window.attachEvent('onload',ver);");eval("window.attachEvent('onunload',ext);");}
//--------------------------------------------------------------------------------
//-->
