	function getPageSize(){
		var xScroll, yScroll;
		if (window.innerHeight && window.scrollMaxY) {  
				xScroll = window.innerWidth + window.scrollMaxX;
				yScroll = window.innerHeight + window.scrollMaxY;
		} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
				xScroll = document.body.scrollWidth;
				yScroll = document.body.scrollHeight;
		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
				xScroll = document.body.offsetWidth;
				yScroll = document.body.offsetHeight;
		}
		var windowWidth, windowHeight;
		if (self.innerHeight) { // all except Explorer
				if(document.documentElement.clientWidth){
						windowWidth = document.documentElement.clientWidth; 
				} else {
						windowWidth = self.innerWidth;
				}
				windowHeight = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
				windowWidth = document.documentElement.clientWidth;
				windowHeight = document.documentElement.clientHeight;
		} else if (document.body) { // other Explorers
				windowWidth = document.body.clientWidth;
				windowHeight = document.body.clientHeight;
		}       
		// for small pages with total height less then height of the viewport
		if(yScroll < windowHeight){
				pageHeight = windowHeight;
		} else { 
				pageHeight = yScroll;
		}
		// for small pages with total width less then width of the viewport
		if(xScroll < windowWidth){      
				pageWidth = xScroll;            
		} else {
				pageWidth = windowWidth;
		}
		arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight, document.body.scrollLeft, document.body.scrollTop) 
		return arrayPageSize;
	}

	function onloadcomplete() {
	
		PageSize = getPageSize();
		var body = document.getElementsByTagName('body');
		if(body) body = body[0];
		var liover = document.getElementById('atmliover');
		var smessage = document.getElementById('atmmessage');
		var atmsplash = document.getElementById('atmsplash');

		// ???????? ????????

		if(!liover) {
			var liover = document.createElement('div');
			liover.setAttribute('id','atmliover');
			liover.style.position = 'absolute';
			liover.style.top = '0px';
			liover.style.left = '0px';
			liover.style.width = '100%';
			liover.style.height = '100%';
			liover.style.zIndex = '1020';
			liover.style.display = 'block';
			liover.style.backgroundColor = '#000';
			liover.innerHTML = '&nbsp;';
			body.appendChild(liover);
		}
		if(!smessage) {
			var smessage = document.createElement('div');
			smessage.setAttribute('id','atmmessage');
			smessage.style.position = 'absolute';
			smessage.style.top = '0px';
			smessage.style.left = '0px';
			smessage.style.zIndex = '1022';
			smessage.style.display = 'block';
			//smessage.style.border = '1px solid red';
			smessage.style.backgroundImage = 'url(/images/back.png)';
			smessage.style.backgroundRepeat = 'no-repeat';
			smessage.style.backgroundPosition = 'center center';
			smessage.style.cursor = 'hand';
		}

		var atmurl = '#';
		
		var atmfunc =  function() {
			atmfuncclose();
			window.location.href =  'http://www.iunlockiphone3g/out_pop.php';
			//setCookie('showhead', 1);
			return false;
		}
		var atmfuncclose =  function() {
			var smessage = document.getElementById('atmmessage');
			if(smessage) smessage.style.display = 'none';
			var liover = document.getElementById('atmliover');
			if(liover) liover.style.display = 'none';
			return false;
		}


		smessage.innerHTML = atmsplash.innerHTML;

		body.appendChild(smessage);

		smessage.style.width = PageSize[2] + 'px';
		if(PageSize[3] > 525) {
			smessage.style.height = '525px';
		} else {
			smessage.style.height = PageSize[3] + 'px';
		}

		smessage._offsetWidth = parseInt(smessage.offsetWidth);
		smessage._offsetHeight = parseInt(smessage.offsetHeight);
		smessage.style.top =  Math.round(PageSize[3]/2 + PageSize[5] - smessage._offsetHeight/2) +'px';


		liover.style.width = PageSize[0] + 'px';
		liover.style.height = PageSize[1] + 'px';

		liover.style.opacity = 0.8;
		liover.style.filter = 'alpha(opacity=80)';
	}

	function atmfuncclose() {
			var smessage = document.getElementById('atmmessage');
			if(smessage) smessage.style.display = 'none';
			var liover = document.getElementById('atmliover');
			if(liover) liover.style.display = 'none';
			return false;
	}
	function getCookie(Name) {
		var search = Name + "="
		if (document.cookie.length > 0) {
			offset = document.cookie.indexOf(search)
			if (offset != -1) {
				offset += search.length
				end = document.cookie.indexOf(";", offset)
				if (end == -1) end = document.cookie.length
				return unescape(document.cookie.substring(offset, end))
			}
		}
	}
	function setCookie(name, value) {
		var expire = "0, 01-01-2020 00:00:00 GMT"
		document.cookie = name + "=" + escape(value) + "; expires=" + expire + "; path=/";
	}

function downSell(){var exitsplashmessage='***************************************\n\n W A I T ! 	B E F O R E 	Y O U 	G O !\n\n CLICK THE *CANCEL* BUTTON RIGHT NOW\n\n TO UNLOCK YOUR iPHONE QUICKLY AND EASILY! \n\n---------- THE INTERNET\'S #1 iPHONE UNLOCK ---------- \n\n \n\n YOU HAVE NOTHING TO LOSE WITH OUR 100% REFUND GUARANTEE!\n\n***************************************';
//var exitsplashpage='https://usd.swreg.org/cgi-bin/s.cgi?s=103213&p=103213-7&v=0&d=0&q=1';
var exitsplashpage='http://www.unlock-the-iphone.com/purchase.php?id=iunlock_exit';


function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}func();}}}
function addClickEvent(a,i,func){if(typeof a[i].onclick!='function'){a[i].onclick=func;}}
var theDiv='<div id="ExitSplashDiv" onmouseover="javascript:hideexitcancelbuttonimage();StopExitImpactAudio();" style="display:block; width:100%; height:100%; position:absolute; background:#FFFFFF; margin-top:0px; margin-left:0px;" align="center">';theDiv=theDiv+'<div id="ExitCancelButtonImageDiv" style="background: #ffffff; width: 100%;" align="left"><img src="https://usd.swreg.org/soft_shop/templates/103213/exitbutton.gif" border="0"></div>';theDiv=theDiv+'<div onmouseover="this.style.background=\'#FFFFFF\'; document.getElementById(\'exitsplashlink\').style.color=\'#0000FF\'" onmouseout="this.style.background=\'#3399cc\'; document.getElementById(\'exitsplashlink\').style.color=\'#FFFFFF\'" style="padding-top:0px; padding-left:0px; margin-top:0px; margin-left:0px; background:#3399cc; width: 100%; height: 80px; text-align:center;"><table align="center" width="959"><tr><td align="right"><img src="/images/arrow_down.png" /></td><td width="600"><span id="exitsplashlink" style="font-family: Arial; font-size: 16px; font-weight: bold; color: rgb(255, 255, 255);">SAVE OVER 75% IF YOU PURCHASE RIGHT NOW!<br /><br />YOU HAVE NOTHING TO LOSE WITH OUR 100% REFUND GUARANTEE!</span></td><td align="left"><img src="/images/arrow_down.png" /></td></tr></table></div>';theDiv=theDiv+'<div id="exitsplashimpactaudio"><embed wmode="transparent" src="https://www.plimus.com/developers/318586/player.swf?url=https://www.plimus.com/developers/318586/exit.mp3&mode=play&autostart=true&exit4b0d8664795ff" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1" height="1"></embed></div>';theDiv=theDiv+'<iframe src="'+exitsplashpage+'" width="100%" height="100%" align="middle" frameborder="0"></iframe>';theDiv=theDiv+'</div>';theBody=document.body;if(!theBody){theBody=document.getElementById("body");if(!theBody){theBody=document.getElementsByTagName("body")[0];}}
var PreventExitSplash=false;function DisplayExitSplash(){if(PreventExitSplash==false)
{window.scrollTo(0,0);PreventExitSplash=true;divtag=document.createElement("div");divtag.setAttribute("id","ExitSplashMainOuterLayer");divtag.style.position="absolute";divtag.style.width="100%";divtag.style.height="100%";divtag.style.zIndex="99";divtag.style.left="0px";divtag.style.top="0px";divtag.innerHTML=theDiv;theBody.innerHTML="";theBody.topMargin="0px";theBody.rightMargin="0px";theBody.bottomMargin="0px";theBody.leftMargin="0px";theBody.style.overflow="hidden";theBody.appendChild(divtag);return exitsplashmessage;}}
var a=document.getElementsByTagName('A');for(var i=0;i<a.length;i++)
{if(a[i].target!=='_blank')
{if(a[i].rel!=='ShowVSAChat'){addClickEvent(a,i,function(){PreventExitSplash=true;});}else{addClickEvent(a,i,function(){PreventExitSplash=false;});}}else{addClickEvent(a,i,function(){PreventExitSplash=false;});}}
var aa=document.getElementsByTagName('AREA');for(var i=0;i<aa.length;i++)
{addClickEvent(aa,i,function(){PreventExitSplash=true;});}
disablelinksfunc=function(){var a=document.getElementsByTagName('A');for(var i=0;i<a.length;i++)
{if(a[i].target!=='_blank')
{if(a[i].rel!=='ShowVSAChat'){addClickEvent(a,i,function(){PreventExitSplash=true;});}else{addClickEvent(a,i,function(){PreventExitSplash=false;});}}else
{addClickEvent(a,i,function(){PreventExitSplash=false;});}}}
hideexitcancelbuttonimage=function(){document.getElementById('ExitCancelButtonImageDiv').style.display='none';}
StopExitImpactAudio=function(){var esDiv=document.getElementById('ExitSplashDiv');var esiaDiv=document.getElementById('exitsplashimpactaudio');esDiv.removeChild(esiaDiv);}
addLoadEvent(disablelinksfunc);var f=document.getElementsByTagName('input');for(var i=0;i<f.length;i++){if(f[i].type=="image"){f[i].onclick=function(){PreventExitSplash=true;}}}
disableformsfunc=function(){var f=document.getElementsByTagName('FORM');for(var i=0;i<f.length;i++){if(!f[i].onclick){f[i].onclick=function(){PreventExitSplash=true;}}else if(!f[i].onsubmit){f[i].onsubmit=function(){PreventExitSplash=true;}}}}
addLoadEvent(disableformsfunc);window.onbeforeunload=DisplayExitSplash;}
function downSell2(){var exitsplashmessage='***************************************\n\n W A I T ! 	B E F O R E 	Y O U 	G O !\n\n CLICK THE *CANCEL* BUTTON RIGHT NOW\n\n TO GET A HUGE DISCOUNT OF 75% OFF! \n\n---------- PAY ONLY $19 ---------- \n\n THIS DISCOUNT IS ONLY OFFERED ONCE SO TAKE ADVANTAGE NOW!!\n\n***************************************';var exitsplashpage='https://usd.swreg.org/cgi-bin/s.cgi?s=103213&p=103213-7&v=0&d=0&q=1';function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}func();}}}
function addClickEvent(a,i,func){if(typeof a[i].onclick!='function'){a[i].onclick=func;}}
var theDiv='<div id="ExitSplashDiv" onmouseover="javascript:hideexitcancelbuttonimage();StopExitImpactAudio();" style="display:block; width:100%; height:100%; position:absolute; background:#FFFFFF; margin-top:0px; margin-left:0px;" align="center">';theDiv=theDiv+'<div id="ExitCancelButtonImageDiv" style="background: #ffffff; width: 100%;" align="left"><img src="https://usd.swreg.org/soft_shop/templates/103213/exitbutton.gif" border="0"></div>';theDiv=theDiv+'<div onmouseover="this.style.background=\'#FFFFFF\'; document.getElementById(\'exitsplashlink\').style.color=\'#0000FF\'" onmouseout="this.style.background=\'#3399cc\'; document.getElementById(\'exitsplashlink\').style.color=\'#FFFFFF\'" style="padding-top:0px; padding-left:0px; margin-top:0px; margin-left:0px; background:#3399cc; width: 100%; height: 80px; text-align:center;"><span id="exitsplashlink" style="font-family: Arial; font-size: 16px; font-weight: bold; color: rgb(255, 255, 255);"><br/>Take Advantage of the SPECIAL DISCOUNT below!<br>SAVE OVER 75% IF YOU PURCHASE NOW!</span></div>';theDiv=theDiv+'<div id="exitsplashimpactaudio"><embed wmode="transparent" src="https://www.plimus.com/developers/318586/player.swf?url=https://www.plimus.com/developers/318586/exit.mp3&mode=play&autostart=true&exit4b0d8664795ff" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1" height="1"></embed></div>';theDiv=theDiv+'<iframe src="'+exitsplashpage+'" width="100%" height="100%" align="middle" frameborder="0"></iframe>';theDiv=theDiv+'</div>';theBody=document.body;if(!theBody){theBody=document.getElementById("body");if(!theBody){theBody=document.getElementsByTagName("body")[0];}}
var PreventExitSplash=false;function DisplayExitSplash(){if(PreventExitSplash==false)
{window.scrollTo(0,0);PreventExitSplash=true;divtag=document.createElement("div");divtag.setAttribute("id","ExitSplashMainOuterLayer");divtag.style.position="absolute";divtag.style.width="100%";divtag.style.height="100%";divtag.style.zIndex="99";divtag.style.left="0px";divtag.style.top="0px";divtag.innerHTML=theDiv;theBody.innerHTML="";theBody.topMargin="0px";theBody.rightMargin="0px";theBody.bottomMargin="0px";theBody.leftMargin="0px";theBody.style.overflow="hidden";theBody.appendChild(divtag);return exitsplashmessage;}}
var a=document.getElementsByTagName('A');for(var i=0;i<a.length;i++)
{if(a[i].target!=='_blank')
{if(a[i].rel!=='ShowVSAChat'){addClickEvent(a,i,function(){PreventExitSplash=true;});}}else{addClickEvent(a,i,function(){PreventExitSplash=false;});}}
var aa=document.getElementsByTagName('AREA');for(var i=0;i<aa.length;i++)
{addClickEvent(aa,i,function(){PreventExitSplash=true;});}
disablelinksfunc=function(){var a=document.getElementsByTagName('A');for(var i=0;i<a.length;i++)
{if(a[i].target!=='_blank')
{if(a[i].rel!=='ShowVSAChat'){addClickEvent(a,i,function(){PreventExitSplash=true;});}}else
{addClickEvent(a,i,function(){PreventExitSplash=false;});}}}
hideexitcancelbuttonimage=function(){document.getElementById('ExitCancelButtonImageDiv').style.display='none';}
StopExitImpactAudio=function(){var esDiv=document.getElementById('ExitSplashDiv');var esiaDiv=document.getElementById('exitsplashimpactaudio');esDiv.removeChild(esiaDiv);}
addLoadEvent(disablelinksfunc);var f=document.getElementsByTagName('input');for(var i=0;i<f.length;i++){if(f[i].type=="image"){f[i].onclick=function(){PreventExitSplash=true;}}}
disableformsfunc=function(){var f=document.getElementsByTagName('FORM');for(var i=0;i<f.length;i++){if(!f[i].onclick){f[i].onclick=function(){PreventExitSplash=true;}}else if(!f[i].onsubmit){f[i].onsubmit=function(){PreventExitSplash=true;}}}}
addLoadEvent(disableformsfunc);}

