﻿



document.write('<div id="ade" name="ade" style="position:absolute;right:0;height:220px;overflow:hidden;padding:0px;top:1300px;" >')

	if (AC_FL_RunContent == 0) {
		alert("此页需要 AC_RunActiveContent.js");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '300',
			'height', '220',
			'src', 'chat/nxto_e_l',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'nxto_e_l',
			'bgcolor', '#ffffff',
			'name', 'nxto_e_l',
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'chat/nxto_e_l',
			'salign', ''
			); //end AC code
	}


document.write('</div>')


var p_nxto=0;
var q_nxto=0;
var cl_nxto=1


function rightBottomAd_nxto(){
 var abe = document.getElementById("ade");
 var xh=abe.offsetHeight;

p_nxto=(document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop)+document.documentElement.clientHeight-xh;

q_nxto=Number(abe.style.top.replace('px',''));
if(q_nxto>p_nxto){
q_nxto=q_nxto+(p_nxto-q_nxto)/5;
 abe.style.top = q_nxto+"px";

 }
else if(q_nxto<=p_nxto){
 q_nxto=q_nxto+(p_nxto-q_nxto)/5;
 abe.style.top = q_nxto+"px";
 }
 setTimeout(function(){rightBottomAd_nxto();},20);
}

rightBottomAd_nxto();
var msgx=setTimeout(msg_nxto,3000)
var oWindow_nxto;



function msg_nxto(){
var abe= getID_nxto("ade")
var bt=getID_nxto("bt")

//if(abe.style.display=="")abe.style.display="none"
//else{abe.style.display=""}
clearTimeout(msgx)
if(cl_nxto==1){
abe.style.height=20+"px";cl_nxto=0;
//bt.innerText="[+]"
}
else{abe.style.height=220+"px";abe.style.width=300+"px";cl_nxto=1;
//bt.innerText="[X]";
//msgx=setTimeout(msg_nxto,7000)
}
}

function msgtip_nxto(){
var abe= document.getElementById("ade")
var bt=document.getElementById("bt")
//if(abe.style.display=="")abe.style.display="none"
//else{abe.style.display=""}
clearTimeout(msgx)
abe.style.height=220+"px";cl_nxto=1;
//bt.innerText="[X]";
//msgx=setTimeout(msg,5000)
}


function getID_nxto(name){
var e=document.getElementById(name);
return e;
//(navigator.appName.indexOf("Microsoft") != -1)?e:e.getElementsByTagName("embed")[0];
} 

function OpenPD_nxto(evnt,obj,w,h) 
{

    var evnt=window.event || evnt;
    evnt.returnValue=false;
    var isFF=!document.all;
    var width=w; 
    var height=h;

if (typeof(oWindow_nxto)=="object")
{
    if (oWindow_nxto.closed)
    {
        return OpenWin_nxto(obj.href,width,height);
    }
    else
    {
        oWindow_nxto.focus();
    }
}
else
{
    return OpenWin_nxto(obj.href,width,height);
}

    
}

function OpenWin_nxto(url,w,h)
{
    var left=(screen.width-w)/2;
    var top=(screen.height-h)/2;
    oWindow=window.open(url,"Nxto","width="+w+",height="+h+",top="+top+",left="+left+",toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no");
    return false;
}



