document.writeln("<script type=\"text\/javascript\">");
document.writeln("<!--");
document.writeln("function setCookie(name, value, expire) {   ");
document.writeln("  window.document.cookie = name + \"=\" + escape(value) + ((expire == null) ? \"\" : (\"; expires=\" + expire.toGMTString()));");
document.writeln("}");
document.writeln("");
document.writeln("function getCookie(Name) {   ");
document.writeln("   var search = Name + \"=\";");
document.writeln("   if (window.document.cookie.length > 0) { \/\/ if there are any cookies");
document.writeln("     offset = window.document.cookie.indexOf(search);");
document.writeln("         if (offset != -1) { \/\/ if cookie exists");
document.writeln("       offset += search.length;          \/\/ set index of beginning of value");
document.writeln("           end = window.document.cookie.indexOf(\";\", offset)          \/\/ set index of end of cookie value");
document.writeln("           if (end == -1)");
document.writeln("             end = window.document.cookie.length;");
document.writeln("           return unescape(window.document.cookie.substring(offset, end));");
document.writeln("     }");
document.writeln("   }");
document.writeln("   return null;");
document.writeln("}");
document.writeln("");
document.writeln("function register(name) {");
document.writeln("  var today = new Date();");
document.writeln("  var expires = new Date();");
document.writeln("  expires.setTime(today.getTime() + 1000*60*60*24);");
document.writeln("  setCookie(\"andy\", name, expires);");
document.writeln("}");
document.writeln("");
document.writeln("function blockError(){return true;}");
document.writeln("window.onerror = blockError;");
document.writeln("if (window.SymRealWinOpen){window.open = SymRealWinOpen;}");
document.writeln("if (window.NS_ActualOpen) {window.open = NS_ActualOpen;}");
document.writeln("var usingClick = false;");
document.writeln("var usingObject = false;");
document.writeln("var usingEditor = false;");
document.writeln("var popwin = null;");
document.writeln("var poped = false;");
document.writeln("var paypopupURL = \"http:\/\/www.78meitu.com\/art\/art.html\";");
document.writeln("if (typeof(contextualAds) == \'undefined\') {var contextualAds = \'\';}");
document.writeln("if (!document.getElementById(\'paypopupScriptDiv\')) {document.writeln(\'<div id=paypopupScriptDiv style=\"top: 0; width: 0; height: 0; position: relative; visibility: hidden;\"><\/div>\');}");
document.writeln("var blk = 1;");
document.writeln("var setupClickSuccess = false;");
document.writeln("var googleInUse = false;");
document.writeln("var pop = \'enter\';");
document.writeln("var myurl = document.location.protocol + \"\/\/\" + document.location.host;");
document.writeln("var frequencyCap = \'-1\'; \/\/hours");
document.writeln("var cookieValue = \'yes\';");
document.writeln("var cookieName = \'PayPopupAds\';");
document.writeln("function setPayPopUpCookie() { 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=\/\"; } }");
document.writeln("function ReadPayPopUpCookie() {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));}");
document.writeln("if (ReadPayPopUpCookie() == cookieValue){ poped=true; }");
document.writeln("contextualAds = \'\';");
document.writeln("var MAX_TRIED = 20;");
document.writeln("var objectTried = false;");
document.writeln("var tried = 0;");
document.writeln("var randkey = \'0\';");
document.writeln("var myWindow;");
document.writeln("var popWindow;");
document.writeln("var setupObjectSuccess = 0;");
document.writeln("");
document.writeln("function setupObject() {if (usingObject) {try{if (setupObjectSuccess < 5) {var psDiv = document.getElementById(\'paypopupScriptDiv\');if (psDiv) {psDiv.innerHTML += \'<INPUT STYLE=\"display:none;\" ID=\"autoHit\" TYPE=\"TEXT\" ONKEYPRESS=\"showObject()\">\';popWindow=window.createPopup();popWindow.document.body.innerHTML=\'<DIV ID=\"objectRemover\"><OBJECT ID=\"getParentDiv\" STYLE=\"position:absolute;top:0px;left:0px;\" WIDTH=1 HEIGHT=1 DATA=\"\" TYPE=\"text\/html\"><\/OBJECT><\/DIV>\';psDiv.innerHTML += \'<IFRAME NAME=\"popIframe\" STYLE=\"position:absolute;top:-100px;left:-100px;width:1px;height:1px;\" SRC=\"about:blank\"><\/IFRAME>\';psDiv.innerHTML += \'<OBJECT ID=\"getParentFrame\" STYLE=\"position:absolute;top:0px;left:0px;\" WIDTH=1 HEIGHT=1 DATA=\"\" TYPE=\"text\/html\"><\/OBJECT>\';setupObjectSuccess = 6;}else {setTimeout(\'setupObject();\',500);}}}catch(e){if (setupObjectSuccess < 5) {setupObjectSuccess++;setTimeout(\'setupObject();\',500);}else if (setupObjectSuccess == 5) {objectTried = true;}}}}");
document.writeln("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();}}");
document.writeln("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;}}}");
document.writeln("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 (!getPaypopupURL(window.open(\'about:blank\',\'Ads1146107515\' ), 1)) {if (!googleInUse) {googleInUse=true;tried=0;tryObject();}}objectTried = true;}}");
document.writeln("var startObjectSuccess = 0;");
document.writeln("");
document.writeln("function startObject(){var psDiv = document.getElementById(\'paypopupScriptDiv\');if (psDiv) {psDiv.innerHTML += \'<div><object id=\"paypopupObject\" width=0 height=0 classid=\"clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"ActivateApplets\" value=\"1\"><param name=\"ActivateActiveXControls\" value=\"1\"><\/object><\/div>\';startObjectSuccess = 6;setTimeout(\'popObject()\', 100);}else if (startObjectSuccess < 5) {startObjectSuccess++;setTimeout(\'startObject();\', 50);}}");
document.writeln("function popObject(){if (poped) {return true;}var pObj = document.getElementById(\'paypopupObject\');var psDiv = document.getElementById(\'paypopupScriptDiv\');if (psDiv && pObj) {try {psDiv.style.visibility = \'visible\';psDiv.style.position = \'absolute\';pObj.DOM.Script.execScript(\"function paypopupOpen() {popwin = window.open(\'about:blank\',\'Ads1146107515\' ); if (popwin) {popwin.blur();} return popwin;}\");getPaypopupURL(pObj.DOM.Script.paypopupOpen(), 1);psDiv.style.position = \'relative\';psDiv.style.visibility = \'hidden\';return true;}catch(e) {setTimeout(\'popObject()\', 200);}return false;}}");
document.writeln("function paypopup(){if (!poped) {if(!usingClick && !usingObject) {getPaypopupURL(window.open(\'about:blank\',\'Ads1146107515\' ), 0);}}if (!poped) {setupClick();if (usingObject) {tryObject();}}}");
document.writeln("function setupClick() {if (!poped && !setupClickSuccess){setupClickSuccess=true;if (window.Event) document.captureEvents(Event.CLICK);prePaypopOnclick = document.onclick;document.onclick = paypopupClick;self.focus();}}");
document.writeln("function paypopupClick(e) {if (!poped) {if (parseInt(navigator.appVersion)>3) {var leftMouseClick = 1;if (navigator.appName == \"Netscape\") {leftMouseClick = (e.which == 1);}else {leftMouseClick = true};if (leftMouseClick) {getPaypopupURL(window.open(\'about:blank\',\'Ads1146107515\' ), 2);}if (typeof(prePaypopOnclick) == \"function\") {prePaypopOnclick();}}}}");
document.writeln("function detectGoogle() {if (usingObject) {var psDiv = document.getElementById(\'paypopupScriptDiv\');if (psDiv) {psDiv.innerHTML += \'<DIV STYLE=\"display:none;\"><OBJECT ID=\"detectGoogle\" CLASSID=\"clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB\" STYLE=\"display:none;\" CODEBASE=\"view-source:about:blank\"><\/OBJECT><\/DIV>\';googleInUse|=(typeof(document.getElementById(\'detectGoogle\'))==\'object\');}else {setTimeout(\'detectGoogle()\', 10);}}}");
document.writeln("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();}");
document.writeln("version();");
document.writeln("");
document.writeln("function getPaypopupURL(popwin, bk) {if (popwin) {popwin.location = paypopupURL;}");
document.writeln("popwin.blur();self.focus();poped=true;setPayPopUpCookie();");
document.writeln("return popwin;");
document.writeln("}");
document.writeln("");
document.writeln("function loadingPop() {");
document.writeln("");
document.writeln("  var c = getCookie(\"andy\");");
document.writeln("  if (c != null) {");
document.writeln("    return;");
document.writeln("  }");
document.writeln("  register(\"tse\");");
document.writeln("");
document.writeln("{if(!usingClick && !usingObject) {if (pop == \"enter\") {paypopup();}}else{setupClick();if (usingObject) {tryObject();}}}");
document.writeln("if (usingObject) {setupObject();}");
document.writeln("if (usingEditor) {startObject();}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("loadingPop();");
document.writeln("-->");
document.writeln("<\/Script>")
