<!--
function checkSearch ( formsearch )
{
	if ( formsearch.q.value == '在这里搜索...' )
	{
		alert ("关键字不能为空！");
		formsearch.q.focus ();
		return false;
	}	
	if ( formsearch.q.value == '' )
	{
		alert ("关键字不能为空！");
		formsearch.q.focus ();
		return false;
	}	
}
document.writeln("<STYLE type=\"text/css\">");
document.writeln("#siderIMchat_main {");
document.writeln("	MARGIN:0; WIDTH: 158px;color:#333");
document.writeln("}");
document.writeln("#siderIMchat_main .top {");
document.writeln("	BACKGROUND: url(/kefu/siderIM_title.gif); HEIGHT: 34px");
document.writeln("}");
document.writeln("#siderIMchat_main .infobox {");
document.writeln("	TEXT-ALIGN: center; PADDING-BOTTOM: 5px; LINE-HEIGHT: 14px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: url(/kefu/siderIM_infobox.gif) #bdc5cb no-repeat; COLOR: #000; FONT-WEIGHT: 700; PADDING-TOP: 5px");
document.writeln("}");
document.writeln("#siderIMchat_main .bg {");
document.writeln("	PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: url(/kefu/siderIM_bg.gif); PADDING-TOP: 5px");
document.writeln("}");
document.writeln("#siderIMchat_main UL {");
document.writeln("	MARGIN:0");
document.writeln("}");
document.writeln("#siderIMchat_main UL LI {");
document.writeln("list-style:none;");
document.writeln("text-align:center;");
document.writeln("line-height:28px;");
document.writeln("}");
document.writeln("#siderIMchat_main .close {");
document.writeln("width:100%;");
document.writeln("text-align:center");
document.writeln("}");
document.writeln("#siderIMchat_main .bottom {");
document.writeln("	BACKGROUND: url(/kefu/siderIM_bottom.gif); HEIGHT: 9px; OVERFLOW: hidden");
document.writeln("}");
document.writeln("</STYLE>");
document.writeln("");
//-->



document.writeln("<div id=\'QuickMenu\' style=\'right:0px;top:117px;position:absolute;width:200px;z-index:1000\'>");

document.writeln("<div id=\'ServiceMenu'\ style=\'float:right;overflow: hidden;display:none;\'>");

document.writeln("<div style=\'margin:0;padding:0px;border:0px;overflow: hidden;\'>");


document.writeln("<DIV id=siderIMchat_main>");
document.writeln("");
document.writeln("<DIV class=top></DIV>");
document.writeln("");
document.writeln("<DIV class=infobox>悠久竭诚为您服务<BR>www.u9host.com</DIV>");
document.writeln("<!-- 中间开始-->");
document.writeln("<DIV class=\"bg \">");
document.writeln("<UL>");
document.writeln("<LI><a href=\"http://chat.53kf.com/company.php?arg=u9host&amp;style=1\" target=\"_blank\"><IMG border=\"0\" src=\"/kefu/miss.gif\" border=\"0\"></a>");
document.writeln("</LI>");
document.writeln("  <LI><a href='tencent://message/?uin=84797778&Site=U9host&Menu=yes' target='_blank'><IMG border=0 ");
document.writeln("  src=\"/kefu/qq_online.gif\"></A><BR></LI>");
document.writeln("  <LI><a href='tencent://message/?uin=896563588&Site=U9host&Menu=yes' target='_blank'><IMG border=0 ");
document.writeln("  src=\"/kefu/qq_online.gif\"></A><BR></LI>");
document.writeln("  <LI><a href='tencent://message/?uin=921531929&Site=U9host&Menu=yes' target='_blank'><IMG border=0 ");
document.writeln("  src=\"/kefu/qq_online.gif\"></A></LI>");
document.writeln("  </UL>");
document.writeln("<DIV class=\"close\"><SPAN class=lnk>因为信任,所以悠久</SPAN></DIV>");
document.writeln("</DIV>");
document.writeln("<!--中间结束-->");
document.writeln("");
document.writeln("<DIV class=bottom></DIV>");
document.writeln("");
document.writeln("</DIV>");


document.writeln("  </div></div>");

document.writeln("<div style=\'float:right;width:24px;margin:9px 0 0 0;border: 0px;cursor:pointer\'><img id=menutop onClick=\"javascript:ChangeMenu('ServiceMenu',160,400)\" border=0 height=100 src=/kefu/kefu.gif width=24></div>");
document.writeln("  </div></div>")



var QuickScrollYLast=0;
var QuickMenu=document.getElementById("QuickMenu")
window.setInterval("LoadMenu()",1);

function LoadMenu(){
    var QuickScrollYDefault;
    if(document.documentElement&&document.documentElement.scrollTop){
        QuickScrollYDefault=document.documentElement.scrollTop;
    }else if(document.body){
        QuickScrollYDefault=document.body.scrollTop;
    }else{
    }
    QuickPercent=.1*(QuickScrollYDefault-QuickScrollYLast);
    if(QuickPercent>0){
        QuickPercent=Math.ceil(QuickPercent);
    }else{
        QuickPercent=Math.floor(QuickPercent);
    }
    QuickMenu.style.top=parseInt(QuickMenu.style.top)+QuickPercent+"px";
    QuickScrollYLast=QuickScrollYLast+QuickPercent;
}

var MenuX;
var MenuY;
var MenuCloseX;
var MenuCloseY;
function ChangeMenu(id,menuwidth,menuheight){
    clearInterval(MenuX);
    clearInterval(MenuY);
    clearInterval(MenuCloseX);
    clearInterval(MenuCloseY);
    var o = document.getElementById(id);
    if(o.style.display == "none"){
        o.style.display = "block";
        o.style.width = "1px";
        o.style.height = "1px"; 
        MenuX = setInterval(function(){menuopenx(o,menuwidth,menuheight)},30);
        document.getElementById("menutop").src="/kefu/close.gif";
    }else{
        document.getElementById("menutop").src="/kefu/kefu.gif";
        MenuCloseY = setInterval(function(){menuclosex(o)},30);
    }
}
function menuopenx(o,x,y){/*--打开x--*/
    var menucx = parseInt(o.style.width);
    if(menucx < x){
        o.style.width = (menucx + Math.ceil((x-menucx)/5)) +"px";
    }else{
        clearInterval(MenuX);
        //MenuY = setInterval(function(){menuopeny(o,y)},30);
    }
    var menucy = parseInt(o.style.height);
    if(menucy < y){
        o.style.height = (menucy + Math.ceil((y-menucy)/5)) +"px";
    }else{
        clearInterval(MenuY); 
    }
}

function menuopeny(o,y){/*--打开y--*/ 
    var menucy = parseInt(o.style.height);
    if(menucy < y){
        o.style.height = (menucy + Math.ceil((y-menucy)/5)) +"px";
    }else{
        clearInterval(MenuY); 
    }
} 

function menuclosex(o){/*--打开x--*/
    var menucx = parseInt(o.style.width);
    if(menucx > 0){
        o.style.width = (menucx - Math.ceil(menucx/5)) +"px";
    }else{
        clearInterval(MenuCloseX);
        //MenuCloseX = setInterval(function(){menuclosey(o)},30);
    }
    var menucy = parseInt(o.style.height);
    if(menucy > 0){
        o.style.height = (menucy - Math.ceil(menucy/5)) +"px";
    }else{
        clearInterval(MenuCloseY); 
        o.style.display = "none";
    }
} 
function menuclosey(o){/*--打开y--*/ 
    var menucy = parseInt(o.style.height);
    if(menucy > 0){
        o.style.height = (menucy - Math.ceil(menucy/5)) +"px";
    }else{
        clearInterval(MenuCloseY); 
        o.style.display = "none";
    }
} 


