var popURL="http://www.pornmovievault.com/gl/exit/enter.html"; var exitURL="http://www.pornmovievault.com/gl/exit/exit1.php"; var winfeatures="width=828,height=635,scrollbars=1,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0"; var exit=true; var isXPSP2 = false; isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1); var is_ie7=false; var ie_ver; var ie_ver_array; if(pbGetCookie('iexit')=='yes'){ is_ie7=true; }else if(pbGetCookie('iexit')=='no'){ is_ie7=false; }else{ if (window.navigator.userAgent.indexOf('MSIE 7') != -1){ document.write(''); if (cc.isComponentInstalled("{89820200-ECBD-11CF-8B85-00AA005B4383}", "ComponentID")) { ie_ver = cc.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}", "ComponentID"); } if(ie_ver.length) ie_ver_array=ie_ver.split(","); if( parseInt(ie_ver_array[2])>=5700 ) is_ie7=true; } if(is_ie7==true) pbWriteCookie('iexit', 60*60*24, 'yes'); else pbWriteCookie('iexit', 60*60*24, 'no'); } eval("window.attachEvent('onload',init);"); eval("window.attachEvent('onbeforeunload',exitsite_n);"); eval("window.attachEvent('onerror',doNothing);"); function pbWriteCookie(section_id, pop_frequency, pvalue) { var cookieName = 'pbtour' + section_id ; var today = new Date() ; var expires = new Date() ; expires.setTime(today.getTime() + (1000 * pop_frequency)) ; var cookieText = cookieName + "="+pvalue+";" + "expires=" + expires.toGMTString() + ";" ; document.cookie = cookieText ; return null ; } function pbGetCookie(section_id) { var Name = 'pbtour' + section_id ; var search = Name + "=" ; var CookieString = document.cookie ; var result = null ; if(CookieString.length > 0) { offset = CookieString.indexOf(search) ; if(offset != -1) { offset += search.length ; end = CookieString.indexOf(";", offset) ; if(end == -1) { end = CookieString.length ; } result = unescape(CookieString.substring(offset, end)) ; } } return result ; } function exitsite_n() { var l2 = screen.width; var t2 = screen.Height+100; if (exit) { if(is_ie7) pbie.DOM.Script.setTimeout("window.open('"+exitURL+"','firstexit','width="+l2+",height="+t2+",scrollbars=1,resizable=1,menubar=1,location=1,status=yes,titlebar=1,top=1,left=1');"); } } function xit() { if (exit) { exit=false; if(is_ie7){ confirm('Are you sure to exit?'); }else{ if(isXPSP2) { MPobj.launchURL(exitURL); } } } } function init() { if(isXPSP2) { document.body.innerHTML+=""; } } function loadpopunder(){ win2=window.open(popURL,"_blank",winfeatures); win2.blur(); window.focus(); } function doNothing() { } loadpopunder() ;