﻿// JavaScript Document for ad screen

var showad = true;
var Toppx = 60;
var AdDivW = 100;
var AdDivH = 360;
var PageWidth = 800;
var MinScreenW = 1024;
var ClosebuttonHtmlLeft = '<div align="right" style="position: absolute;top:0px;right:0px;margin:1px;padding:1px;z-index:2000;"><a href="javascript:;" onclick="hideadLeft()" style="color:#333333;text-decoration:none;font-size:10px;"></a></div>'
var ClosebuttonHtmlRight = '<div align="right" style="position: absolute;top:0px;right:0px;margin:1px;padding:1px;z-index:2000;"><a href="javascript:;" onclick="hideadRight()" style="color:#333333;text-decoration:none;font-size:10px;"></a></div>'
var AdContentHtml = '';
document.write ('<div id="javascript.LeftDiv" style="position: absolute;border: 0px solid #ffffff;z-index:1000;width:'+100+'px;height:'+10+'px;top:-1000px;word-break:break-all;display:none;"><div>'+AdContentHtml+'</div></div>');
var AdContentHtml = '<a href="http://lr.zoosnet.net/JS/LsJS.aspx?siteid=LEF10014343&float=1" target="_blank"><img src="/upload/ad/2010110903764601.jpg" width="1" height="1" border="0" hspace="0" vspace="0" alt="Chat with Vita" /></a><br /><a href="http://lr.zoosnet.net/LR/Chatpre.aspx?id=LEF10014343&p=&r=" target="_blank"><img src="http://lr.zoosnet.net/js/ImgJS.aspx?id=LEF10014343&p=&r=&oi=http://lr.zoosnet.net/lr/images/online_en3.gif&fi=http://lr.zoosnet.net/lr/images/offline_en3.gif" border=0></a><br /><br /><a href="msnim:chat?contact=sinoy03@gmail.com" target="_blank"><img src="/upload/ad/2009052557045265.gif" width="57" height="64" border="0" hspace="0" vspace="0" alt="Chat with Vita" /></a><br /><br /><a href="ymsgr:sendim?picksneaker=minvita@yahoo.cn" target="_blank"><img src="/upload/ad/200851563690281.gif" width="80" height="40" border="0" hspace="0" vspace="0" alt="Y!Messager" /></a><br /><br /><a href="skype:jmjourney" target="_blank"><img src="/upload/ad/200761283000953.jpg" width="70" height="32" border="0" hspace="0" vspace="0" alt="Skype Me!" /></a><br /><br />';
document.write ('<div id="javascript.RightDiv" style="position: absolute;border: 0px solid #ffffff;z-index:1000;width:'+100+'px;height:'+147+'px;top:-1000px;word-break:break-all;display:none;text-align:center;">'+ClosebuttonHtmlRight+'<div>'+AdContentHtml+'</div></div>');
function scall(){
	if(!showad){return;}
	if (window.screen.width<MinScreenW){
		showad = false;
		document.getElementById("javascript.LeftDiv").style.display="none";
		document.getElementById("javascript.RightDiv").style.display="none";
		return;
	}
	var Borderpx = ((window.screen.width-PageWidth)/2-AdDivW)/2;

	document.getElementById("javascript.LeftDiv").style.display="";
	document.getElementById("javascript.LeftDiv").style.top=document.documentElement.scrollTop+Toppx;
	document.getElementById("javascript.LeftDiv").style.left=document.body.scrollLeft+Borderpx-50+"px";
	document.getElementById("javascript.RightDiv").style.display="";
	document.getElementById("javascript.RightDiv").style.top=document.documentElement.scrollTop+Toppx+"px";
	document.getElementById("javascript.RightDiv").style.left=document.body.clientWidth-AdDivW-45+"px";
}

function hideadLeft()
{
	showad = false;
	document.getElementById("javascript.LeftDiv").style.display="none";
}

function hideadRight()
{
	showad = false;
	document.getElementById("javascript.RightDiv").style.display="none";
}
window.onscroll=scall;
window.onresize=scall;
window.onload=scall;

