﻿function mouseover(btn){
		$(btn).children(".titletip").addClass("db").parents("a").addClass("hover");
}
function mouseout(btn){
		$(btn).children(".titletip").removeClass("db").parents("a").removeClass("hover");
}
function mouseclick(btn){
		$(btn).addClass("focused").children(".titletip").removeClass("db");
		$("#plugin_notifications").addClass("db");
		$("#plugin_bar_right").addClass("bdg");
}
function mouseclose(btn){
		$("#Gbook_btn").removeClass("focused")
		$("#plugin_notifications").removeClass("db");
		$("#plugin_bar_right").removeClass("bdg");
}

function srcMarquee(){
this.ID = document.getElementById(arguments[0]);
if(!this.ID){this.ID = -1;return;}
this.Direction = this.Width = this.Height = this.DelayTime = this.WaitTime = this.Correct = this.CTL = this.StartID = this.Stop = this.MouseOver = 0;
this.Step = 1;
this.Timer = 30;
this.DirectionArray = {"top":0 , "bottom":1 , "left":2 , "right":3};
if(typeof arguments[1] == "number")this.Direction = arguments[1];
if(typeof arguments[2] == "number")this.Step = arguments[2];
if(typeof arguments[3] == "number")this.Width = arguments[3];
if(typeof arguments[4] == "number")this.Height = arguments[4];
if(typeof arguments[5] == "number")this.Timer = arguments[5];
if(typeof arguments[6] == "number")this.DelayTime = arguments[6];
if(typeof arguments[7] == "number")this.WaitTime = arguments[7];
if(typeof arguments[8] == "number")this.ScrollStep = arguments[8]
this.ID.style.overflow = this.ID.style.overflowX = this.ID.style.overflowY = "hidden";
this.ID.noWrap = true;
this.IsNotOpera = (navigator.userAgent.toLowerCase().indexOf("opera") == -1);
if(arguments.length >= 7)this.Start();
}
srcMarquee.prototype.Start = function(){
if(this.ID == -1)return;
if(this.WaitTime < 800)this.WaitTime = 800;
if(this.Timer < 20)this.Timer = 20;
if(this.Width == 0)this.Width = parseInt(this.ID.style.width);
if(this.Height == 0)this.Height = parseInt(this.ID.style.height);
if(typeof this.Direction == "string")this.Direction = this.DirectionArray[this.Direction.toString().toLowerCase()];
this.HalfWidth = Math.round(this.Width / 2);
this.BakStep = this.Step;
this.ID.style.width = this.Width;
this.ID.style.height = this.Height;
if(typeof this.ScrollStep != "number")this.ScrollStep = this.Direction > 1 ? this.Width : this.Height;
var msobj = this;
var timer = this.Timer;
var delaytime = this.DelayTime;
var waittime = this.WaitTime;
msobj.StartID = function(){msobj.Scroll()}
msobj.Continue = function(){
if(msobj.MouseOver == 1){
setTimeout(msobj.Continue,delaytime);
     }
     else{ clearInterval(msobj.TimerID);
msobj.CTL = msobj.Stop = 0;
msobj.TimerID = setInterval(msobj.StartID,timer);
     }
    }
msobj.Pause = function(){
msobj.Stop = 1;
clearInterval(msobj.TimerID);
setTimeout(msobj.Continue,delaytime);
    }
msobj.Begin = function(){
   msobj.ClientScroll = msobj.Direction > 1 ? msobj.ID.scrollWidth : msobj.ID.scrollHeight;
   if((msobj.Direction <= 1 && msobj.ClientScroll <msobj.Height) || (msobj.Direction > 1 && msobj.ClientScroll <msobj.Width))return;
   msobj.ID.innerHTML += msobj.ID.innerHTML;
   msobj.TimerID = setInterval(msobj.StartID,timer);
   if(msobj.ScrollStep < 0)return;
   msobj.ID.onmousemove = function(event){
       if(msobj.ScrollStep == 0 && msobj.Direction > 1){
var event = event || window.event;
if(window.event){
if(msobj.IsNotOpera){msobj.EventLeft = event.srcElement.id == msobj.ID.id ? event.offsetX - msobj.ID.scrollLeft : event.srcElement.offsetLeft - msobj.ID.scrollLeft + event.offsetX;}
else{msobj.ScrollStep = null;return;}
}
else{msobj.EventLeft = event.layerX - msobj.ID.scrollLeft;}
msobj.Direction = msobj.EventLeft > msobj.HalfWidth ? 3 : 2;
msobj.AbsCenter = Math.abs(msobj.HalfWidth - msobj.EventLeft);
msobj.Step = Math.round(msobj.AbsCenter * (msobj.BakStep*2) / msobj.HalfWidth);
}
}
msobj.ID.onmouseover = function(){
if(msobj.ScrollStep == 0)return;
msobj.MouseOver = 1;
clearInterval(msobj.TimerID);
}
msobj.ID.onmouseout = function(){
if(msobj.ScrollStep == 0){
if(msobj.Step == 0)msobj.Step = 1;
return;
}
msobj.MouseOver = 0;
if(msobj.Stop == 0){


clearInterval(msobj.TimerID);
msobj.TimerID = setInterval(msobj.StartID,timer);
}}}
setTimeout(msobj.Begin,waittime);
}
srcMarquee.prototype.Scroll = function(){
switch(this.Direction){
case 0:
this.CTL += this.Step;
if(this.CTL >= this.ScrollStep && this.DelayTime > 0){
this.ID.scrollTop += this.ScrollStep + this.Step - this.CTL;
this.Pause();
return;
}
else{
if(this.ID.scrollTop >= this.ClientScroll){this.ID.scrollTop -= this.ClientScroll;}
this.ID.scrollTop += this.Step;
}
break;
case 1:
this.CTL += this.Step;
if(this.CTL >= this.ScrollStep && this.DelayTime > 0){
this.ID.scrollTop -= this.ScrollStep + this.Step - this.CTL;
this.Pause();
return;
}
else{
if(this.ID.scrollTop <= 0){this.ID.scrollTop += this.ClientScroll;}
this.ID.scrollTop -= this.Step;
}
break;
case 2:
this.CTL += this.Step;
if(this.CTL >= this.ScrollStep && this.DelayTime > 0){
this.ID.scrollLeft += this.ScrollStep + this.Step - this.CTL;
this.Pause();
return;
}
else{
if(this.ID.scrollLeft >= this.ClientScroll){this.ID.scrollLeft -= this.ClientScroll;}
this.ID.scrollLeft += this.Step;
}
break;
case 3:
this.CTL += this.Step;
if(this.CTL >= this.ScrollStep && this.DelayTime > 0){
this.ID.scrollLeft -= this.ScrollStep + this.Step - this.CTL;
this.Pause();
return;
}
else{
if(this.ID.scrollLeft <= 0){this.ID.scrollLeft += this.ClientScroll;}
this.ID.scrollLeft -= this.Step;
}
break;
}
} 
var rNum
rNum = Math.random()
rNum = Math.round(rNum*100)

document.writeln("<style>");
document.writeln("#plugin"+rNum+" * { margin:0; padding:0 }");
document.writeln("#plugin"+rNum+" a { text-decoration:none }");
document.writeln("#plugin"+rNum+" img { border:0 none; }");
document.writeln("body #plugin"+rNum+" { bottom:0; color:#111111; font-size:12px; padding:0; position:fixed; right:0; width:100%; z-index:99; }");
document.writeln("*html body #plugin"+rNum+"{position: absolute; _top:expression(eval(document.compatMode && document.compatMode==\'CSS1Compat\') ? documentElement.scrollTop   +(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop +(document.body.clientHeight-this.clientHeight));} ");
document.writeln("");
document.writeln("#plugin_ui"+rNum+" { background:transparent url(../../template/plugin/min_icons.gif) repeat-x scroll 0 0; margin-left:15px; margin-right:15px; overflow:visible !important; position:relative; height:25px; display:block; border-left:1px solid #B5B5B5; }");
document.writeln("#plugin_bar"+rNum+" { display:block; background-position:left top; background-repeat:repeat-x; height:25px; padding:0; }");
document.writeln("#plugin_bar_left"+rNum+" { display:inline; }");
document.writeln("#plugin"+rNum+" .plugin_section"+rNum+" { float:left; height:22px; margin-top:1px; padding:0; }");
document.writeln("#plugin"+rNum+" .plugin_bar_btn"+rNum+"  { border-right:1px solid #B5B5B5; padding-left:4px; color:#333333; cursor:pointer; height:25px; padding:0 6px; position:relative; float:left; margin-top:1px; }");
document.writeln("#plugin"+rNum+" #plugin_bar_right .plugin_bar_btn"+rNum+"  { border-left:1px solid #B5B5B5; border-right:none }");
document.writeln("#plugin"+rNum+" .plugin_bar_btn"+rNum+"  .in_btn { border-top:1px solid white; padding:3px 0; }");
document.writeln("#plugin"+rNum+" .plugin_bar_btn"+rNum+"  a { text-decoration:none; outline-style:none; color:#005EAC; font-weight:bold; line-height:20px; }");
document.writeln("#plugin"+rNum+" .plugin_bar_btn"+rNum+"  .favi_apps { float:left; margin:0 4px 0 0; background:url(../../template/plugin/min_icons.gif) 0 -180px no-repeat; height:16px; width:16px; }");
document.writeln("#plugin"+rNum+" #icon_panel"+rNum+" { float:left; padding:0; width:158px; border-right:1px solid #B5B5B5; }");
document.writeln("#plugin"+rNum+" #channel_icon_panel"+rNum+" { border-left:1px solid #B5B5B5; }");
document.writeln("#plugin_bar"+rNum+" #channel_icon_panel"+rNum+" div.icon_elem"+rNum+" { float:left; position:relative; top:1px; }");
document.writeln("#plugin"+rNum+" #channel_icon_panel"+rNum+" .icon_elem"+rNum+" a { display:block; height:16px; padding:4px 5px 5px; width:16px; }");
document.writeln(".min_ico { background-image:url(../../template/plugin/min_icons.gif); background-repeat:no-repeat; height:16px; width:16px; }");
document.writeln(".ico_job { background-position:0 -40px; }");
document.writeln(".ico_Venture { background-position:0 -60px; }");
document.writeln(".ico_Gsite { background-position:0 -80px; }");
document.writeln(".ico_b2b { background-position:0 -100px; }");
document.writeln(".ico_bbs { background-position:0 -120px; }");
document.writeln(".ico_zone { background-position:0 -140px; }");
document.writeln(".ico_Gbook { background-position:0 -160px; }");
document.writeln("#plugin"+rNum+" .titletip { background:transparent url(../../template/plugin/min_icons.gif) no-repeat scroll right bottom; bottom:27px; display:none; padding-bottom:4px; position:absolute; right:6px; z-index:20; }");
document.writeln("#plugin"+rNum+" #plugin_bar_left"+rNum+" .titletip { background:transparent url(../../template/plugin/min_icons.gif) no-repeat scroll left bottom; left:6px; right:auto; }");
document.writeln("#plugin"+rNum+" .titletip strong { background:#282828 none repeat scroll 0 0; color:#FFFFFF; display:block; font-weight:normal; padding:4px 8px; text-align:center; white-space:nowrap; }");
document.writeln("#quankey_ads"+rNum+" .tit{ line-height:27px; color:#43719B; font-weight:bold; margin:0 5px; float:left}");
document.writeln("#quankey_ads"+rNum+" #Scroll{ float:left}");
document.writeln("#quankey_ads"+rNum+" ul { margin:0 5px; padding:0;OVERFLOW: hidden; HEIGHT: 25px }");
document.writeln("#quankey_ads"+rNum+" li { line-height:25px; height:25px; list-style:none }");
document.writeln("#quankey_ads"+rNum+" li a { color:#494846; border-bottom:1px solid #494846 }");
document.writeln("#quankey_ads"+rNum+" li a:hover { border-bottom:1px solid #333; color:#333 }");
document.writeln("#plugin_bar_right { float:right; height:25px;border-right:1px solid #B5B5B5;}");
document.writeln(".bdg {border-right:1px solid #333!important;}");
document.writeln("#plugin"+rNum+" .plugin_bar_btn"+rNum+" .focused { border-bottom:1px solid #333333; }");
document.writeln("#plugin"+rNum+" #plugin_bar_right .plugin_section"+rNum+" { float:right; }");
document.writeln("#plugin"+rNum+" .plugin_menu_opts_wrapper { background:transparent none repeat scroll 0 0; border:medium none; bottom:25px; _bottom:28px; margin:0; padding:0; position:absolute; right:0; z-index:14; }");
document.writeln("#plugin"+rNum+" #plugin_bar_right .plugin_menu_opts { width:200px; background:#FFFFFF none no-repeat scroll right bottom; border-color:#333333 #333333 black; border-style:solid; border-width:1px; cursor:auto; padding:0; }");
document.writeln("#plugin"+rNum+" #plugin_ui"+rNum+" .focused { background-color:#FFFFFF; border-color:#333333; color:#333333; margin:-1px 0 1px; z-index:15; }");
document.writeln("#plugin"+rNum+" .plugin_menu_opts { border-style:solid; cursor:auto; }");
document.writeln("#plugin_bar"+rNum+" .plugin_menu_opts h2 { background-color:#526EA6; border-color:#254588 #254588 #526EA6; border-style:solid; border-width:1px; color:#FFFFFF; cursor:pointer; font-size:12px; margin:-1px -1px 0; padding:0; position:relative; width:100%; display:block }");
document.writeln("#plugin_bar"+rNum+" .plugin_menu_opts h2 span { display:block; padding:3px 8px; }");
document.writeln("#plugin_bar"+rNum+" .plugin_menu_opts h2 .plugin_minimize { background-color:#ADBED8; float:right; height:2px; overflow:hidden; position:absolute; right:5px; top:10px; width:9px; }");
document.writeln("#plugin_bar"+rNum+" .plugin_menu_opts .Gbook_panel { width:190px; margin:5px; line-height:150% }");
document.writeln("#plugin_bar"+rNum+" .plugin_menu_opts .Gbook_panel p { text-align:center; }");
document.writeln("#plugin_bar"+rNum+" .plugin_menu_opts .Gbook_panel .form_btn { margin-top:3px; background:#254588; border:none; width:40px; height:20px; line-height:20px; color:#fff }");
document.writeln("#plugin_bar"+rNum+" .plugin_menu_opts .Gbook_panel .text { width:185px; height:15px; }");
document.writeln("#plugin_bar"+rNum+" .plugin_menu_opts .Gbook_panel .textarea { width:185px; height:100px; }");
document.writeln("#plugin"+rNum+" .db { display:block!important}");
document.writeln("#plugin"+rNum+" .hover { background:#fff!important }");
document.writeln(".interval{ height:25px;clear:both}");
document.writeln("</style>");


document.writeln("<div id=\"plugin"+rNum+"\">");
document.writeln("	<div id=\"plugin_ui"+rNum+"\">");
document.writeln("		<div id=\"plugin_bar"+rNum+"\">");
document.writeln("			<div id=\"plugin_bar_left"+rNum+"\">");//////////////////////////////////////
document.writeln("				<div class=\"plugin_bar_btn"+rNum+"\"> <a href=\"#\" onmouseover=\"mouseover(this)\" onmouseout=\"mouseout(this)\"><div class=\"in_btn\"><img src=\"../../template/plugin/spacer.gif\" class=\"favi_apps\" alt=\"\"/>泉客网</div><div class=\"titletip\"><strong>泉客网首页</strong></div></a> </div>");
document.writeln("				<div id=\"icon_panel"+rNum+"\">");
document.writeln("					<div id=\"channel_icon_panel"+rNum+"\">");
document.writeln("						<div>");
document.writeln("							<div class=\"icon_elem"+rNum+"\"><a href=\"http://jobs.quankey.com\" onmouseover=\"mouseover(this)\" onmouseout=\"mouseout(this)\"><img src=\"../../template/plugin/spacer.gif\" class=\"min_ico ico_job\" alt=\"人才\"/><div class=\"titletip\"><strong>人才</strong></div></a></div>");
document.writeln("							<div class=\"icon_elem"+rNum+"\"><a href=\"http://cy.quankey.com\" onmouseover=\"mouseover(this)\" onmouseout=\"mouseout(this)\"><img src=\"../../template/plugin/spacer.gif\" class=\"min_ico ico_Venture\" alt=\"创业\"/><div class=\"titletip\"><strong>创业</strong></div></a></div>");
document.writeln("							<div class=\"icon_elem"+rNum+"\" ><a href=\"http://b2b.quankey.com\" onmouseover=\"mouseover(this)\" onmouseout=\"mouseout(this)\"><img src=\"../../template/plugin/spacer.gif\" class=\"min_ico ico_Gsite\" alt=\"商易通\"/><div class=\"titletip\"><strong>商易通</strong></div></a></div>");
document.writeln("							<div class=\"icon_elem"+rNum+"\" ><a href=\"http://b2b.quankey.com/supply.aspx\" onmouseover=\"mouseover(this)\" onmouseout=\"mouseout(this)\"><img src=\"../../template/plugin/spacer.gif\" class=\"min_ico ico_b2b\" alt=\"供求\"/><div class=\"titletip\"><strong>供求</strong></div></a></div>");
document.writeln("							<div class=\"icon_elem"+rNum+"\"><a href=\"http://bbs.quankey.com/\"  onmouseover=\"mouseover(this)\" onmouseout=\"mouseout(this)\"><img src=\"../../template/plugin/spacer.gif\" class=\"min_ico ico_bbs\" alt=\"论坛\"/><div class=\"titletip\"><strong>论坛</strong></div></a></div>");
document.writeln("							<div class=\"icon_elem"+rNum+"\" ><a href=\"http://common.quankey.com/zone/\" onmouseover=\"mouseover(this)\" onmouseout=\"mouseout(this)\"><img src=\"../../template/plugin/spacer.gif\" class=\"min_ico ico_zone\" alt=\"Zone\"/><div class=\"titletip\"><strong>Zone</strong></div></a></div>");
document.writeln("						</div>");
document.writeln("					</div>");
document.writeln("				</div>");
document.writeln("				<div class=\"plugin_section"+rNum+"\" id=\"quankey_ads"+rNum+"\">");
document.writeln("				<span class=\"tit\">泉客推荐:</span>");
document.writeln("				<div id=\"Scroll\">");
document.writeln("					<ul id=\"ScrollMe\">");

document.writeln("						<li><a href=\"#\">泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告</a></li>");
document.writeln("						<li><a href=\"#\">泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告</a></li>");
document.writeln("						<li><a href=\"#\">泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告</a></li>");
document.writeln("						<li><a href=\"#\">泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告泉客新闻广告</a></li>");

document.writeln("					</ul>");
document.writeln("				</div>");
document.writeln("				<SCRIPT>new srcMarquee(\"ScrollMe\",0,1,600,25,30,3000,3000,25)</SCRIPT>");
document.writeln("				</div>");
document.writeln("			</div>");
document.writeln("			<div id=\"plugin_bar_right\">");
document.writeln("				<div class=\"plugin_section"+rNum+" plugin_bar_btn"+rNum+"\" id=\"Gbook_btn\" onmouseover=\"mouseover(this)\" onmouseout=\"mouseout(this)\" onclick=\"mouseclick(this)\">");
document.writeln("					<div class=\"in_btn\"><img src=\"../../template/plugin/spacer.gif\" class=\"min_ico ico_Gbook\" alt=\"\"/></div>");
document.writeln("					<div class=\"titletip\"><strong>快捷留言</strong></div>");
document.writeln("				</div>");
document.writeln("				<div style=\"display:none;\" class=\"plugin_menu_opts_wrapper\" id=\"plugin_notifications\">");
document.writeln("					<div class=\"plugin_menu_opts\">");
document.writeln("						<div class=\"plugin_menu_opts_header\">");
document.writeln("							<div class=\"corner\"></div>");
document.writeln("						</div>");
document.writeln("						<h2 class=\"clearfix\" onmousedown=\"mouseclose(this)\"><span>快捷留言</span>");
document.writeln("							<div class=\"plugin_minimize\"></div>");
document.writeln("						</h2>");
document.writeln("						<div class=\"Gbook_panel\"> <span>标题</span>");
document.writeln("							<p>");
document.writeln("								<INPUT id=txtZZJZBDNR_BT class=text maxLength=20>");
document.writeln("								");
document.writeln("							</p>");
document.writeln("							<span>姓名</span>");
document.writeln("							<p>");
document.writeln("								<INPUT id=txtZZJZBDNR_XM class=text maxLength=10>");
document.writeln("							</p>");
document.writeln("							<span>邮箱</span>");
document.writeln("							<p>");
document.writeln("								<INPUT id=txtZZJZBDNR_YX class=text maxLength=20>");
document.writeln("							</p>");
document.writeln("							<span>电话</span>");
document.writeln("							<p>");
document.writeln("								<INPUT id=txtZZJZBDNR_DH class=text maxLength=20>");
document.writeln("							</p>");
document.writeln("							<span>内容</span>");
document.writeln("							<p>");
document.writeln("								<TEXTAREA id=txtZZJZBDNR_NR class=textarea rows=5 name=txtZZJZBDNR_NR></TEXTAREA>");
document.writeln("							</p>");
document.writeln("							<p>");
document.writeln("								<INPUT onclick=\"return send();\" value=提交 class=\"form_btn\" type=button>");
document.writeln("								&nbsp;&nbsp;");
document.writeln("								<INPUT value=重置 onclick='clearform();' class=\"form_btn\" type=reset>");
document.writeln("							</p>");
document.writeln("						</div>");
document.writeln("					</div>");
document.writeln("				</div>");
document.writeln("			</div>");
document.writeln("		</div>");
document.writeln("	</div>");
document.writeln("</div>");

