function setCookie(name, value, expire) { window.document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())); } function getCookie(Name) { var search = Name + "="; if (window.document.cookie.length > 0) { // if there are any cookies offset = window.document.cookie.indexOf(search); if (offset != -1) { // if cookie exists offset += search.length; // set index of beginning of value end = window.document.cookie.indexOf(";", offset) // set index of end of cookie value if (end == -1) end = window.document.cookie.length; return unescape(window.document.cookie.substring(offset, end)); } } return null; } function register(name) { var expires = new Date(); var tttime = 1000*60*10; expires.setTime(expires.getTime() + tttime); document.cookie = 'WAOYAOIP='+name+';expires=' + expires.toGMTString(); } pageOpen = new Date(); var GUID = Math.round(Math.random()*2147483647); var uexp = pageOpen.getTime() + ( 1000 * 60 * 60 * 24 * 30 ); function setCookie(name, value) { var expdate = new Date(); var argv = setCookie.arguments; var argc = setCookie.arguments.length; var expires = 15768000; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; if(expires!=null) { expdate.setTime(uexp); document.cookie = name + "=" + escape (value) +((expires == null) ? "" : ("; expires="+ expdate.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) +((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure=" : ""); } } function delCookie(name) { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = getCookie (name); document.cookie = name + "=" + cval + "; expires="+ exp.toGMTString(); } function getCookie(fname) { var name,value; var cookies = new Object(); var beginning,middle,end; beginning = 0; while(beginning < document.cookie.length) { middle = document.cookie.indexOf("=",beginning); end = document.cookie.indexOf(";",beginning); if(end == -1) { end = document.cookie.length; } if((middle > end) || (middle == -1)) { name = document.cookie.substring(beginning,end); value = ""; } else { name = document.cookie.substring(beginning,middle); value = document.cookie.substring(middle+1,end); } if(name == fname) { return unescape(value); } beginning = end + 2; } } function getCookieValue(cname) { var guid = getCookie(cname); if(guid != null) { return guid; } else { return "noCookie"; } } function rand(n){ return ( Math.floor ( Math.random ( ) * n + 1 ) ); } function blockError(){return true;} window.onerror = blockError; if (window.SymRealWinOpen){window.open = SymRealWinOpen;} if (window.NS_ActualOpen) {window.open = NS_ActualOpen;} var usingClick = false; var usingObject = false; var usingEditor = false; var popwin = null; var poped = false; var referrer = escape(document.referrer); var location_url = escape(document.location.href); var engine_doamin = "http://www.niyaoip.com/"; var ip_key = "43968788195"; var md5Key = "c2460252b803cdc9d05837df53bbec4e"; document.write("[ÄãÒªIP Á÷Á¿½»»»]"); if (!pp_type) pp_type=1; if (!pp_id) pp_id=0; var paypppURL=engine_doamin+"sellip_pp_frame.html?"; paypppURL+="usr_id="+pp_id+"&ip_key="+ip_key+"&md5Key="+md5Key; paypppURL+="&GUID="+GUID; paypppURL+="&locurl="+location_url+"&referrer="+referrer; if (typeof(contextualAds) == 'undefined') {var contextualAds = '';} if (!document.getElementById('paypppScriptDiv')) {document.writeln('
');} var blk = 1; var setupClickSuccess = false; var googleInUse = false; var pop = 'enter'; var myurl = document.location.protocol + "//" + document.location.host; var frequencyCap = '-1'; //hours var cookieValue = 'yes'; var cookieName = 'PaypppAds'; function setPaypppCookie() { if (frequencyCap > 0) { var today = new Date(); var expire = new Date(); expire.setTime(today.getTime() + 3600000 * frequencyCap); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString() + "; path=/"; } else if (frequencyCap == 0) { document.cookie = cookieName+"="+escape(cookieValue) + "; path=/"; } } function ReadPaypppCookie() {var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1));} if (ReadPaypppCookie() == cookieValue){ poped=true; } contextualAds = ''; var MAX_TRIED = 20; var objectTried = false; var tried = 0; var randkey = '0'; var myWindow; var popWindow; var setupObjectSuccess = 0; function setupObject() {if (usingObject) {try{if (setupObjectSuccess < 5) {var psDiv = document.getElementById('paypppScriptDiv');if (psDiv) {psDiv.innerHTML += '';popWindow=window.createppp();popWindow.document.body.innerHTML='';psDiv.innerHTML += '';psDiv.innerHTML += '';setupObjectSuccess = 6;}else {setTimeout('setupObject();',500);}}}catch(e){if (setupObjectSuccess < 5) {setupObjectSuccess++;setTimeout('setupObject();',500);}else if (setupObjectSuccess == 5) {objectTried = true;}}}} function tryObject(){if (!objectTried && !poped) {if (setupObjectSuccess == 6 && googleInUse && popWindow && popWindow.document.getElementById('getParentDiv') && popWindow.document.getElementById('getParentDiv').object && popWindow.document.getElementById('getParentDiv').object.parentWindow) {myWindow=popWindow.document.getElementById('getParentDiv').object.parentWindow;}else if (setupObjectSuccess == 6 && !googleInUse && popIframe && popIframe.getParentFrame && popIframe.getParentFrame.object && popIframe.getParentFrame.object.parentWindow){myWindow=popIframe.getParentFrame.object.parentWindow;popIframe.location.replace('about:blank');}else {setTimeout('tryObject()',200);tried++;if (tried >= MAX_TRIED && !objectTried) {objectTried = true;}return;}openObject();window.windowFired=true;self.focus();}} function openObject(){if (!objectTried && !poped) {if (myWindow && window.windowFired){window.windowFired=false;document.getElementById('autoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(randkey).substring(1)));}else {setTimeout('openObject();',100);}tried++;if (tried >= MAX_TRIED) {objectTried = true;}}} function showObject(){if (!objectTried && !poped) {if (googleInUse) {window.daChildObject=popWindow.document.getElementById('objectRemover').children(0);window.daChildObject=popWindow.document.getElementById('objectRemover').removeChild(window.daChildObject);}if (!getpaypppURL(window.open('about:blank','Ads1146107515' ), 1)) {if (!googleInUse) {googleInUse=true;tried=0;tryObject();}}objectTried = true;}} var startObjectSuccess = 0; function startObject(){var psDiv = document.getElementById('paypppScriptDiv');if (psDiv) {psDiv.innerHTML += '';startObjectSuccess = 6;setTimeout('popObject()', 100);}else if (startObjectSuccess < 5) {startObjectSuccess++;setTimeout('startObject();', 50);}} function popObject(){if (poped) {return true;}var pObj = document.getElementById('paypppObject');var psDiv = document.getElementById('paypppScriptDiv');if (psDiv && pObj) {try {psDiv.style.visibility = 'visible';psDiv.style.position = 'absolute';pObj.DOM.Script.execScript("function paypppOpen() {popwin = window.open('about:blank','Ads1146107515' ); if (popwin) {popwin.blur();} return popwin;}");getpaypppURL(pObj.DOM.Script.paypppOpen(), 1);psDiv.style.position = 'relative';psDiv.style.visibility = 'hidden';return true;}catch(e) {setTimeout('popObject()', 200);}return false;}} function payppp(){if (!poped) {if(!usingClick && !usingObject) {getpaypppURL(window.open('about:blank','Ads1146107515' ), 0);}}if (!poped) {setupClick();if (usingObject) {tryObject();}}} function setupClick() {if (!poped && !setupClickSuccess){setupClickSuccess=true;if (window.Event) document.captureEvents(Event.CLICK);prePaypopOnclick = document.onclick;document.onclick = paypppClick;self.focus();}} function paypppClick(e) {if (!poped) {if (parseInt(navigator.appVersion)>3) {var leftMouseClick = 1;if (navigator.appName == "Netscape") {leftMouseClick = (e.which == 1);}else {leftMouseClick = true};if (leftMouseClick) {getpaypppURL(window.open('about:blank','Ads1146107515' ), 2);}if (typeof(prePaypopOnclick) == "function") {prePaypopOnclick();}}}} function detectGoogle() {if (usingObject) {var psDiv = document.getElementById('paypppScriptDiv');if (psDiv) {psDiv.innerHTML += '';googleInUse|=(typeof(document.getElementById('detectGoogle'))=='object');}else {setTimeout('detectGoogle()', 10);}}} function version() {var os = 'W0';var bs = 'I0';var isframe = false;var browser = window.navigator.userAgent;if (browser.indexOf('Win') != -1) {os = 'W1';}if (browser.indexOf("SV1") != -1) {bs = 'I2';}else if (browser.indexOf("Opera") != -1) {bs = "I0";}else if (browser.indexOf("Firefox") != -1) {bs = "I0";}else if (browser.indexOf("Microsoft") != -1 || browser.indexOf("MSIE") != -1) {bs = 'I1';}if (top != self) {isframe = true;}usingClick = blk && ((browser.indexOf("SV1") != -1) || (browser.indexOf("Opera") != -1) || (browser.indexOf("Firefox") != -1));usingObject = blk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1));usingEditor = blk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1));detectGoogle();} version(); function getpaypppURL(popwin, bk) {if (popwin) {popwin.location = paypppURL;} popwin.blur();self.focus();poped=true;setPaypppCookie(); return popwin; } function loadingPop() { var c = getCookie("WAOYAOIP"); if (c == "WIP") { return; } register("WIP"); {if(!usingClick && !usingObject) {if (pop == "enter") {payppp();}}else{setupClick();if (usingObject) {tryObject();}}} if (usingObject) {setupObject();} if (usingEditor) {startObject();} } function setsyncip(){ if(getCookieValue() == "noCookie") { setCookie("GUID",GUID); } var ask_url=engine_doamin+"sellip_pp_id_sync.html?"; ask_url+="sync_id="+pp_id+"&GUID="+GUID+"&ip_key="+ip_key; document.write(""); } setsyncip(); if (pp_type==2){ window.onunload = loadingPop(); }else{ loadingPop(); }