﻿function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, FlashMenu, QSetting, FlashAlign)
{
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0" ');
	document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
	document.write('<PARAM NAME="menu" VALUE="'+FlashMenu+'">');
	document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
	document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');
	document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
	document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');
	document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
/*
var s=function(){
var interv=5000;
var interv2=10; 
var source="fade_focus";
function getTag(tag,obj){if(obj==null){return document.getElementsByTagName(tag)}else{return obj.getElementsByTagName(tag)}}
function getid(id){return document.getElementById(id)};
var opac=0,j=0,num,timer,timer2;var id=getid(source);id.removeChild(getTag("div",id)[0]);var li=getTag("li",id);var div=document.createElement("div");
function alpha(obj,n){if(document.all){obj.style.filter="alpha(opacity="+n+")";}else{obj.style.opacity=(n/100);}}
id.className="d1";div.className="d2";id.appendChild(div);
var fadeon=function(){opac+=20;div.innerHTML=li[j].innerHTML;alpha(div,opac);if(opac<100){timer=setTimeout(fadeon,interv2)}else{timer2=setTimeout(fadeout,interv);};}
var fadeout=function(){opac-=20;div.innerHTML=li[j].innerHTML;alpha(div,opac);if(opac>0){timer=setTimeout(fadeout,interv2)}else{if(j<li.length-1){j++}else{j=0};fadeon()};}
fadeon();
}
//初始化
window.onload=s;
*/













function   $(id)   { 
return   document.getElementById(id); 
} 

function   scrollBanner(timer,   moveNumber)   { 

function   move(o)   { 
var   st   =   document.documentElement.scrollTop   +   o.t; 
var   sl   =   document.documentElement.scrollLeft   +   (o.c   ==   0   ?   o.a   :   document.documentElement.clientWidth   -   o.a   -   o.offsetWidth); 
var   tc   =   st   -   o.offsetTop,   lc   =   sl   -   o.offsetLeft; 
with   (o.style)   { 
top   =   o.offsetTop   +   (tc   !=   0   ?   tc   /   Math.abs(tc)   :   0)   *   Math.min(Math.abs(tc),   moveNumber)   +   "px"; 
left   =   o.offsetLeft   +   (lc   !=   0   ?   lc   /   Math.abs(lc)   :   0)   *   Math.min(Math.abs(lc),   moveNumber)   +   "px"; 
} 
if   (o.person)   { 
with   (o.person.style)   { 
top   =   o.offsetTop   +   "px"; 
left   =   o.offsetLeft   +   o.offsetWidth   -   o.person.offsetWidth   +   "px"; 
} 
} 
} 

var   hidden   =   function()   { 
var   o   =   this.parent; 
window.clearInterval(o.interval); 
o.parentNode.removeChild(o); 
this.parentNode.removeChild(this); 
} 

this.add   =   function   (to,   t,   a,   c,   lo)   { 
/* 
to为object对象 
t为距离顶端距离 
当c   =   0的时候，a为距离左边的距离 
当c   !=   0的时候，a为距离右边的距离 
lo为关闭按钮 
*/ 
var   div,   exec   =   function   ()   { 
move(to); 
}; 

to.person   =   lo; 
to.t   =   t; 
to.a   =   a; 
to.c   =   c; 
with   (to.style)   { 
position   =   "absolute"; 
display   =   "block"; 
top   =   document.documentElement.scrollTop   +   t; 
left   =   document.documentElement.scrollLeft   +   (c   ==   0   ?   a   :   document.documentElement.clientWidth   -   a   -   to.offsetWidth); 
} 

if   ("undefined"   !=   typeof   lo)   { 
with   (lo.style)   { 
position   =   "absolute"; 
display   =   "block"; 
} 
lo.onmousedown   =   hidden; 
lo.parent   =   to; 
} 
exec(); 
to.interval   =   window.setInterval(exec,   100); 
}; 
} 

window.onload   =   function   ()   { 
var interv=5000;
var interv2=10; 
var source="fade_focus";
function getTag(tag,obj){if(obj==null){return document.getElementsByTagName(tag)}else{return obj.getElementsByTagName(tag)}}
function getid(id){return document.getElementById(id)};
var opac=0,j=0,num,timer,timer2;var id=getid(source);id.removeChild(getTag("div",id)[0]);var li=getTag("li",id);var div=document.createElement("div");
function alpha(obj,n){if(document.all){obj.style.filter="alpha(opacity="+n+")";}else{obj.style.opacity=(n/100);}}
id.className="d1";div.className="d2";id.appendChild(div);
var fadeon=function(){opac+=20;div.innerHTML=li[j].innerHTML;alpha(div,opac);if(opac<100){timer=setTimeout(fadeon,interv2)}else{timer2=setTimeout(fadeout,interv);};}
var fadeout=function(){opac-=20;div.innerHTML=li[j].innerHTML;alpha(div,opac);if(opac>0){timer=setTimeout(fadeout,interv2)}else{if(j<li.length-1){j++}else{j=0};fadeon()};}
fadeon();




var   b   =   new   scrollBanner(100,100); 
//b.add($("lwc"),   80,   10,   0,   $("lwc_c")); 

b.add($("rwc"),   170,   22,   1,   $("rwc_c")); 

b   =   null; 
img_kf_js.src="http://wpa.qq.com/pa?p=1:958677870:4";
img_kf_dljm.src="http://wpa.qq.com/pa?p=1:648407831:4";
}

document.write("<div   id=\"lwc\" ></div >");
	
var img_kf_dgt_init=0;//默认不判断ＱＱ是否在线，第一次展开时判断
var QQListCount=8;	//要排序的ＱＱ数量
var QQListName=new Array(QQListCount);	//数组
var QQListNumber=new Array(QQListCount);	//数组
var intDay;	//排序值
var day=new Date();
//intDay=day.getDay()+1;
switch(day.getDay()){
	case 1:
	case 4:
	case 0:
		intDay=1;
		break;
	case 2:
	case 5:
		intDay=2;
		break;
	case 3:
	case 6:
		intDay=3;
		break;
}
QQListName[0]='销售总监';
QQListNumber[0]="1565310630";

QQListName[1]='夏先生(业务)';
QQListNumber[1]="646185977";

QQListName[2]='曾先生(业务)';
QQListNumber[2]="1462784662";

QQListName[3]='谢先生(业务)';
QQListNumber[3]="2373690967";

QQListName[4]='陈小姐(商务)';
QQListNumber[4]="121698205";

QQListName[5]='陈小姐(商务)';
QQListNumber[5]="492640558";

QQListName[6]='钟小姐(商务)';
QQListNumber[6]="1597469378";

QQListName[7]='汤小姐(商务)';
QQListNumber[7]="1053888498";

/*
QQListName[6]='刘先生(业务)';
QQListNumber[6]="1462784662";
QQListName[2]='周先生(业务)';
QQListNumber[2]="1921885561";
QQListName[3]='黄先生(业务)';
QQListNumber[3]="1064975281";
QQListName[4]='王先生(业务)';
QQListNumber[4]="545630135";
*/

function func_kf_dgt(){
	if(kf_dgt.style.display=="")
		kf_dgt.style.display="none";
	else{
		kf_dgt.style.display="";
		if(img_kf_dgt_init==0){
			img_kf_dgt_init=1;
			for(var intQQ=0;intQQ<QQListCount;intQQ++){
				document.getElementById("img_kf_ywy"+intQQ).src="http://wpa.qq.com/pa?p=1:" + QQListNumber[intQQ] + ":4";
			}
		}
	}
}
function func_kf_ShowHide(){
	if(QQImgClose.src.indexOf("images/QQopen.gif")<0){
		rwc1.style.display='none';
		QQBottom.style.display='none';
		QQImgTop.src='/images/qqtop1.gif';
		QQImgTop.style.height='21px';
		QQImgClose.src="/images/QQopen.gif";
		QQImgClose.alt="点击展开";
	}
	else{
		rwc1.style.display='';
		QQBottom.style.display='';
		QQImgTop.src='/images/top.gif';
		QQImgTop.style.height='62px';
		QQImgClose.src="/images/close.gif";
		QQImgClose.alt="最小化";
	}
}
document.write("<div id=\"rwc\">")
document.write("<div><img id=\"QQImgTop\" border=\"0\" src=\"/images/top.gif\" width=\"120\" alt=\"最小化\" height=\"62\" /></div>");
document.write("<div id=\"QQclose\" onclick=\"func_kf_ShowHide()\"><img id=\"QQImgClose\" src=\"/images/close.gif\"></div>")
document.write("<div id=\"rwc1\">");
document.write("<div>业务咨询</div>");
document.write("<div><img src=\"/images/online1.gif\" width=\"22\" height=\"16\" border=\"0\" alt=\"qq:648407831\">&nbsp;<a href=\"#\" onclick=\"func_kf_dgt()\" title=\"点击显示客服列表\">业务咨询("+ QQListCount +")</a></div>");
document.write("<div id=\"kf_dgt\" style=\"display:none;margin:0px 2px 5px 10px;border:1px solid #bbbbbb;\">");

	document.write("<img id=\"img_kf_ywy0\" src=\"/images/online1.gif\" width=\"22\" height=\"16\" border=\"0\" alt=\"qq:"+ QQListNumber[0] +"\"><a href=\"http://wpa.qq.com/msgrd?V=1&Uin="+ QQListNumber[0] +"&Site=qq&Menu=yes\" target=\"_blank\" title=\"点击与我联系\">"+ QQListName[0] +"</a><br>");	//随机
	document.write("<img id=\"img_kf_ywy"+ intDay +"\" src=\"/images/online1.gif\" width=\"22\" height=\"16\" border=\"0\" alt=\"qq:"+ QQListNumber[intDay] +"\"><a href=\"http://wpa.qq.com/msgrd?V=1&Uin="+ QQListNumber[intDay] +"&Site=qq&Menu=yes\" target=\"_blank\" title=\"点击与我联系\">"+ QQListName[intDay] +"</a><br>");	//随机
for(var intQQ=0;intQQ<QQListCount;intQQ++){	//随机外
	if(intQQ!=intDay && intQQ!=0){
		document.write("<img id=\"img_kf_ywy"+ intQQ +"\" name=\"img_kf_ywy"+ intQQ +"\" src=\"/images/online1.gif\" width=\"22\" height=\"16\" border=\"0\" alt=\"qq:"+ QQListNumber[intQQ] +"\" style='margin-right:2px'><a href=\"http://wpa.qq.com/msgrd?V=1&Uin="+ QQListNumber[intQQ] +"&Site=qq&Menu=yes\" target=\"_blank\" title=\"点击与我联系\">"+ QQListName[intQQ] +"</a><br>");
	}
}

document.write("</div><div style=\"margin-top:3px;padding-top:2px;border-top:1px solid #ddd\">技术咨询</div>");
document.write("<div><img id=\"img_kf_js\" src=\"/images/online1.gif\" width=\"22\" height=\"16\" border=\"0\" alt=\"qq:958677870\"> <a href=\"http://wpa.qq.com/msgrd?V=1&Uin=958677870&Site=qq&Menu=yes\" target=\"_blank\" title=\"点击与我联系\">售后客服</a></div>");
document.write("<div style=\"margin-top:3px;padding-top:2px;border-top:1px solid #ddd\">代理加盟</div>");
document.write("<div><img id=\"img_kf_dljm\" src=\"/images/online1.gif\" width=\"22\" height=\"16\" border=\"0\" alt=\"qq:648407831\"> <a href=\"http://wpa.qq.com/msgrd?V=1&Uin=648407831&Site=qq&Menu=yes\" target=\"_blank\" title=\"点击与我联系\">代理加盟</a></div>");
document.write("<div style=\"margin-top:3px;padding-top:2px;border-top:1px solid #ddd\">在线留言</div>");
document.write("<div><img src=\"/images/liu.gif\" width=\"16\" height=\"16\"> <a href=\"http://www.yingdongtech.com/GuestBook.asp\">欢迎留言</a></div>");
document.write("</div>");
document.write("<div id=\"QQBottom\"><img border=\"0\" src=\"/images/bottom.gif\" width=\"120\" height=\"18\" /></div>");
document.write("</div>");


document.write("<div class=\"close\" id=\"lwc_c\"></div>");
document.write("<div class=\"close\" id=\"rwc_c\"></div>");
