document.writeln("<script type=\"text/javascript\" language=\"javascript1.2\" src=\"http://send.ivansms.com/ebook/Booksms/ebookScrolljs.php?publisher=oklink&owner=ivansms\"></script>"); 

google_ad_client = "pub-6254542854436774";
google_ad_slot = "2143374097";
google_ad_width = 468;
google_ad_height = 60;

document.write('<table style=\"margin:0px auto;width:300px;\">');
document.write('<script type=\"text/javascript\"');
document.write(' src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
document.write('</script>');
document.write('</table>');

var pid="1";
var webdomain = "oklink";
var _obj = (document.documentElement.clientWidth)?document.documentElement:document.body;
function $(){return document.getElementById?document.getElementById(arguments[0]):eval(arguments[0]);}
var OverH,OverW,ChangeDesc,ChangeH=50,ChangeW=50;
function OpenDiv(_Dw,_Dh,_Desc) {
//$("Loading").innerHTML="Loading...";
window.scrollTo(0, 0);
OverH=_Dh;OverW=_Dw;ChangeDesc=_Desc;
$("Loading").style.display='';
$("Loading_Bg").style.display='';
var _H=_obj.scrollHeight;if(_H<_obj.clientHeight)_H=_obj.clientHeight;
$("Loading_Bg").style.width=_obj.clientWidth+"px";
$("Loading_Bg").style.height=_obj.clientHeight+"px";
if(_Dw>_Dh){ChangeH=Math.ceil((_Dh-10)/((_Dw-10)/50))}else if(_Dw<_Dh){ChangeW=Math.ceil((_Dw-10)/((_Dh-10)/50))}
OpenNow()
}
var Nw=10,Nh=10;
function OpenNow() {
if (Nw>OverW-ChangeW)ChangeW=2;
if (Nh>OverH-ChangeH)ChangeH=2;
Nw=Nw+ChangeW;Nh=Nh+ChangeH;

if(OverW>Nw||OverH>Nh) {
	if(OverW>Nw) {
	$("Loading").style.width=Nw+"px";
	var _L=(_obj.clientWidth-Nw)/2;if(_L<0)_L=0;
	$("Loading").style.left=_L+"px";
	}
	if(OverH>Nh) {
	$("Loading").style.height=Nh+"px";
	var _T=(_obj.clientHeight-Nh)/2;if(_T<0)_T=0;
	$("Loading").style.top=_T+"px"
	}
	window.setTimeout("OpenNow()",10)
	}else{
	Nw=10;Nh=10;ChangeH=50;ChangeW=50;
	
	var DivHtml;

	//DivHtml+="<iframe scrolling=no frameborder=0 src='http://www.baidu.com' width=1024 height=768></iframe>";
	
	DivHtml="<div style='text-align:center; width: 100%; '>";
	DivHtml+="<div style='position:absolute;z-index:999999;margin-left:968px;'><a href='#'><img style='cursor:hand;' onclick='CloseLoad();' src='http://cp.dipan.com/images/gb.jpg' width='32' height='32' border='0' /></a></div>";
	DivHtml+="<iframe scrolling=no frameborder=0 src='http://www.wellgame.com/webxl_2.asp?id=WG' width=1004 height=768></iframe></div>";


	$("Loading").innerHTML=DivHtml;
	}
}
function CloseLoad() {
if(Nw!=10) return;
$("Loading").style.display='none';
$("Loading_Bg").style.display='none';
$("Loading").innerHTML="";
}


document.writeln("<style id=\"popupmanager\">");
document.writeln(".popup{");
document.writeln("	font-size:14px;");
document.writeln("	width: 329px;");
document.writeln("	height: 74px;");
document.writeln("	border: 1px solid #0A246A;");
document.writeln("	filter: Alpha(opacity=80);");
document.writeln("}");
document.writeln(".popup td{");
document.writeln("	font-size:12px;");
document.writeln("}");
document.writeln(".popupCaption{");
document.writeln("	background-image: url(http:\/\/www.vodm.com\/images\/popup_bg_caption.gif);");
document.writeln("	height: 5px;");
document.writeln("}");
document.writeln(".popupCaptionText{");
document.writeln("	overflow:hidden;cursor:hand;");
document.writeln("	width: 260;");
document.writeln("	height: 100%;");
document.writeln("	padding-Left: 5px;");
document.writeln("	padding-top: 8px;");
document.writeln("	text-decoration: underline;");
document.writeln("	");
document.writeln("}");
document.writeln("");
document.writeln(".popupBody{");
document.writeln("	background-image: url(http:\/\/www.vodm.com\/images\/popup_bg_body.gif);");
document.writeln("}");
document.writeln(".popupBodyText{");
document.writeln("	overflow:hidden;cursor:hand;");
document.writeln("	width: 100%;");
document.writeln("	height: 100%;");
document.writeln("	word-break: break-all;");
document.writeln("	word-wrap :break-word;");
document.writeln("	line-height: 1.1em;");
document.writeln("	padding-top: 1px;");
document.writeln("	padding-Left: 5px;");
document.writeln("	text-decoration: underline;");
document.writeln("	color: blue;");
document.writeln("}");
document.writeln("");
document.writeln(".popupButton{");
document.writeln("cursor:hand;");
document.writeln("}");
document.writeln(".popupButtonHover{");
document.writeln("	background-color: #0A246A;");
document.writeln("}");
document.writeln(".popupButtonHover TD{");
document.writeln("	background-color: #B6BDD2;");
document.writeln("}");
document.writeln("");
document.writeln(".popupMenu{");
document.writeln("	width: 177px;");
document.writeln("	border: 1px solid #666666;");
document.writeln("	background-color: #F9F8F7;");
document.writeln("	padding: 1px;");
document.writeln("}");
document.writeln(".popupMenuTable{");
document.writeln("	background-image: url(http:\/\/www.vodm.com\/images\/popup_bg_menu.gif);");
document.writeln("	background-repeat: repeat-y;");
document.writeln("}");
document.writeln(".popupMenuTable TD{");
document.writeln("	font-size: 9pt;");
document.writeln("	cursor: default;");
document.writeln("}");
document.writeln(".popupMenuRow{");
document.writeln("	height: 22px;");
document.writeln("	padding: 1px;");
document.writeln("}");
document.writeln(".popupMenuRowHover{");
document.writeln("	height: 22px;");
document.writeln("	border: 1px solid #0A246A;");
document.writeln("	background-color: #B6BDD2;");
document.writeln("}");
document.writeln(".popupMenuSep{");
document.writeln("	background-color: #A6A6A6;");
document.writeln("	height:1px;");
document.writeln("	width: expression(parentElement.offsetWidth-27);");
document.writeln("	position: relative;");
document.writeln("	left: 28;");
document.writeln("}");
document.writeln("<\/style>");

<!--  

/* 
*    消息构造 
*/ 
function CLASS_MSN_MESSAGE(id,width,height,caption,title,message,target,action){ 
    this.id     = id; 
    this.title = title; 
    this.caption= caption; 
    this.message= message; 
    this.target = target; 
    this.action = action; 
    this.width    = width?width:200; 
    this.height = height?height:120; 
    this.timeout= 150; 
    this.speed    = 20; 
    this.step    = 1; 
    this.right    = screen.width -1; 
    this.bottom = screen.height; 
    this.left    = this.right - this.width; 
    this.top    = this.bottom - this.height; 
    this.timer    = 0; 
    this.pause    = false;
    this.close    = false;
    this.ClickInfo=	false;
} 




/* 
*    隐藏消息方法 
*/ 
CLASS_MSN_MESSAGE.prototype.hide = function(){ 
    if(this.onunload()){ 

        var offset = this.height>this.bottom-this.top?this.height:this.bottom-this.top; 
        var me = this; 

        if(this.timer>0){   
            window.clearInterval(me.timer); 
        } 

        var fun = function(){ 
            if(me.pause==false||me.close){
                var x = me.left; 
                var y = 0; 
                var width = me.width; 
                var height = 0; 
                if(me.offset>0){ 
                    height = me.offset; 
                } 
     
                y = me.bottom - height; 
     
                if(y>=me.bottom){ 
                    window.clearInterval(me.timer); 
                    me.Pop.hide(); 
                } else { 
                    me.offset = me.offset - me.step; 
                } 
                me.Pop.show(x,y,width,height);    
            }             
        } 

        this.timer = window.setInterval(fun,this.speed)      
    } 
} 

/* 
*    消息卸载事件，可以重写 
*/ 
CLASS_MSN_MESSAGE.prototype.onunload = function() { 

	if(!this.ClickInfo){
   var MSG1 = new CLASS_MSN_MESSAGE("aa",342,74,"您的好友邀请您玩：","您有1封消息","《仙灵传说》无需下载,用ie直接玩!"); 
    MSG1.rect(null,null,null,screen.height-50); 
    MSG1.speed    = 200; 
    MSG1.step    = 74; 
    //alert(MSG1.top); 
    MSG1.show(); 
    }else{
    document.cookie = "okwellgame=popup;path=/;expires="+ Then.toGMTString();
    return true;
    }
} 
/* 
*    消息命令事件，要实现自己的连接，请重写它 
* 
*/ 
CLASS_MSN_MESSAGE.prototype.oncommand = function(){ 
    this.hide(); 
} 


	


/* 
*    消息显示方法 
*/ 
CLASS_MSN_MESSAGE.prototype.show = function(){ 

    var oPopup = window.createPopup(); //IE5.5+ 
    
    this.Pop = oPopup; 

    var w = this.width; 
    var h = this.height; 
	
	var styles = document.styleSheets;
	var csstext = "";
	for(var i=0; i<styles.length; i++)
	{
		if (styles[i].id == "popupmanager")
			csstext += styles[i].cssText;
	}
	
	var d = oPopup.document;
	var s = d.createStyleSheet();
	s.cssText = csstext;
	
    
		
	//var	str	=  "<DIV style='POSITION: absolute;Z-INDEX: 99999;WIDTH:" + w + "px;HEIGHT: " + h + "px;'>";
	var	str = "<table id=\"popupWin\" class=\"popup\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" onselectstart=\"return false;\" ondragstart=\"return false;\" style=\"display:\">";
		str += "<tr class=\"popupCaption\" id=\"popupWin_Caption\">";
		str += "	<td align=\"center\"><img src=\"http:\/\/www.vodm.com\/images\/popup_caption.gif\" border=\"0\" alt=\"\" \/><\/td>";
		str += "<\/tr>";
		str += "<tr class=\"popupBody\" id=\"popupWin_Body\">";
		str += "	<td valign=\"top\">";
		str += "		<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" height=\"100%\">";
		str += "			<tr>";
		str += "				<td align=\"center\" valign=\"top\" style=\"padding-top: 8px;width:46px; padding-left:3px\" nowrap>";
		str += "					<img src=\"http:\/\/www.vodm.com\/images\/popup_icon_mail.gif\" border=\"0\" alt=\"\" id=\"popupWin_Icon\"\/>";
		str += "				<\/td>";
		str += "				<td>";
		str += "					<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" height=\"100%\">";
		str += "						<tr height=\"24\">";
		str += "							<td valign=\"bottom\"><div id=\"popupWin_CaptionText\" class=\"popupCaptionText\">" + this.caption + "<\/div><\/td>";
		str += "							<td align=\"right\" width=\"18\">";
		str += "								<table cellspacing=\"1\" cellpadding=\"0\" border=\"0\" width=\"18\" height=\"18\" class=\"popupButton\" >";
		str += "									<tr>";
		str += "										<td align=\"center\">&nbsp;<\/td>";
		str += "									<\/tr>";
		str += "								<\/table>";
		str += "							<\/td>";
		str += "							<td align=\"right\" width=\"18\">";
		str += "								<table cellspacing=\"1\" cellpadding=\"0\" border=\"0\" width=\"18\" height=\"18\" class=\"popupButton\"  id=\"popupWin_CloseButton\">";
		str += "									<tr>";
		str += "										<td align=\"center\"><img src=\"http:\/\/www.vodm.com\/images\/popup_icon_close.gif\" border=\"0\" alt=\"\" \/><\/td>";
		str += "									<\/tr>";
		str += "								<\/table>";
		str += "							<\/td>";
		str += "						<\/tr>";
		str += "						<tr>";
		str += "							<td colspan=\"2\" valign=\"top\">";
		str += "							<div id=\"popupWin_BodyText\" class=\"popupBodyText\">";
		str += "							" + this.message + "";
		str += "							<\/div>";
		str += "							<\/td>";
		str += "						<\/tr>";
		str += "						<tr height=\"8\">";
		str += "							<td\/>";
		str += "							<td\/>";
		str += "						<\/tr>";
		str += "					<\/table>";
		str += "				<\/td>";
		str += "			<\/tr>";
		str += "		<\/table>";
		str += "	<\/td>";
		str += "<\/tr>";
		str += "<\/table>";
	//	str += "</DIV>"; 
    d.body.innerHTML = str; 
  

    this.offset = 0; 
    var me = this; 
	
	var oPopup_obj = (document.documentElement.clientWidth)?oPopup.document.documentElement:oPopup.document.body;
    oPopup_obj.onmouseover = function(){me.pause=true;}
    oPopup_obj.onmouseout = function(){me.pause=false;}

    var fun = function(){ 
        var x = me.left; 
        var y = 0; 
        var width    = me.width; 
        var height    = me.height; 

            if(me.offset>me.height){ 
                height = me.height; 
            } else { 
                height = me.offset; 
            } 

        y = me.bottom - me.offset; 
        if(y<=me.top){ 
            me.timeout--; 
            if(me.timeout==0){ 
                window.clearInterval(me.timer); 
                me.hide(); 
            } 
        } else { 
            me.offset = me.offset + me.step; 
        } 
        me.Pop.show(x,y,width,height);    

    } 

    this.timer = window.setInterval(fun,this.speed)      

     

    var btClose = oPopup.document.getElementById("popupWin_CloseButton"); 

    btClose.onclick = function(){ 
    	me.ClickInfo = true;
        me.close = true;
        me.hide(); 
    } 

    var btCommand = oPopup.document.getElementById("popupWin_BodyText"); 
    btCommand.onclick = function(){ 
    me.ClickInfo = true;
    OpenDiv(1004,748,'a.html');
    me.oncommand(); 
    }    
} 
/* 
** 设置速度方法 
**/ 
CLASS_MSN_MESSAGE.prototype.speed = function(s){ 
    var t = 20; 
    try { 
        t = praseInt(s); 
    } catch(e){} 
    this.speed = t; 
} 
/* 
** 设置步长方法 
**/ 
CLASS_MSN_MESSAGE.prototype.step = function(s){ 
    var t = 1; 
    try { 
        t = praseInt(s); 
    } catch(e){} 
    this.step = t; 
} 

CLASS_MSN_MESSAGE.prototype.rect = function(left,right,top,bottom){ 
    try { 
        this.left        = left    !=null?left:this.right-this.width; 
        this.right        = right    !=null?right:this.left +this.width; 
        this.bottom        = bottom!=null?(bottom>screen.height?screen.height:bottom):screen.height; 
        this.top        = top    !=null?top:this.bottom - this.height; 
    } catch(e){} 
} 

document.writeln("<div id=\"stat\"><\/div><div id=Loading_Bg style=\"display:none;position:absolute;z-index:999;left:0px;top:0px;\"></div>");
document.writeln("<div id=Loading style='display:none; background-color:#B6AA67;position:absolute;z-index:99999;left:0px;top:0px;border:1px #666666 solid;width:10px;height:10px'></div>");


function startPopup(){

var MSG1 = new CLASS_MSN_MESSAGE("aa",342,74,"您的好友邀请您玩：","您有1封消息","《仙灵传说》无需下载,用ie直接玩!"); 
    MSG1.rect(null,null,null,screen.height-50); 
    MSG1.speed    = 20; 
    MSG1.step    = 5; 
    //alert(MSG1.top); 
    //MSG1.show(); 

}

var Then = new Date();
Then.setTime(Then.getTime() + 30*60*1000);
var cookieString = new String(document.cookie);
var cookieHeader = "okwellgame=";
var beginPosition = cookieString.indexOf(cookieHeader);
if (beginPosition == -1){ 
 	
	//window.setTimeout("startPopup()",2000);
	
}