﻿<!--
//format:gname
document.write("<style type='text/css'>");
document.write(".main_head {	BACKGROUND: url(/js/images/img3-5_2.png) no-repeat}");
document.write("* HTML .main_head {	FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/js/images/img3-5_2.png',sizingMethod='crop'); BACKGROUND: none transparent scroll repeat 0% 0%}");
document.write("* + HTML .main_head {	BACKGROUND: url(/js/images/img3-5_2.png) no-repeat}");
document.write(".info {	PADDING-BOTTOM: 10px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BACKGROUND: url(/js/images/img3-5_3.png) repeat-y; PADDING-TOP: 5px}");
document.write("* HTML .info {	FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/js/images/img3-5_3.png',sizingMethod='crop'); BACKGROUND-REPEAT: repeat-y}");
document.write("* + HTML .info {	PADDING-BOTTOM: 10px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BACKGROUND: url(/js/images/img3-5_3.png) repeat-y; PADDING-TOP: 5px}");
document.write(".down_kefu {	WIDTH: 157px; BACKGROUND: url(/js/images/img3-5_4.png) no-repeat; HEIGHT: 8px}");
document.write("* HTML .down_kefu {	FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/js/images/img3-5_4.png',sizingMethod='crop'); WIDTH: 157px; BACKGROUND-REPEAT: repeat-y; HEIGHT: 8px}");
document.write("* + HTML .down_kefu {	WIDTH: 157px; BACKGROUND: url(/js/images/img3-5_4.png) no-repeat; HEIGHT: 8px}");
document.write(".Obtn {	MARGIN-TOP: 44px; WIDTH: 32px; BACKGROUND: url(/js/images/img3-5_1.png) no-repeat; FLOAT: left; HEIGHT: 139px; MARGIN-LEFT: -5px}");
document.write("* HTML .Obtn {	FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/js/images/img3-5_1.png',sizingMethod='crop'); WIDTH: 32px; BACKGROUND: none transparent scroll repeat 0% 0%; FLOAT: left; HEIGHT: 139px}");
document.write("* + HTML .Obtn {	MARGIN-TOP: 104px; WIDTH: 32px; BACKGROUND: url(/js/images/img3-5_1.png) no-repeat; FLOAT: left; HEIGHT: 139px; MARGIN-LEFT: -5px}");
document.write(".qqtable SPAN {	PADDING-BOTTOM: 5px; LINE-HEIGHT: 20px; PADDING-LEFT: 0px; WIDTH: 100px; PADDING-RIGHT: 0px; COLOR: #ff6600; FONT-SIZE: 13px; FONT-WEIGHT: bold; PADDING-TOP: 5px}");
document.write(".qqtable A {	TEXT-DECORATION: none}");
document.write(".qqtable A:hover {	TEXT-DECORATION: none}");
document.write(".qun {	BORDER-BOTTOM: #ffd2bf 1px solid; BORDER-LEFT: #ffd2bf 1px solid; PADDING-BOTTOM: 5px; LINE-HEIGHT: 20px; BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 0px; WIDTH: 100px; PADDING-RIGHT: 0px; FONT-SIZE: 12px; BORDER-TOP: #ffd2bf 1px solid; BORDER-RIGHT: #ffd2bf 1px solid; PADDING-TOP: 5px}");
document.write(".qun SPAN {	COLOR: #ff6600; FONT-SIZE: 13px; FONT-WEIGHT: bold}");
document.write("</style>");

var guoguo=function (id,_top,_left){
	var me=id.charAt?document.getElementById(id):id, d1=document.body, d2=document.documentElement;
	d1.style.height=d2.style.height='100%';me.style.top=_top?_top+'px':0;me.style.left=_left+"px";//[(_left>0?'left':'left')]=_left?Math.abs(_left)+'px':0;
	me.style.position='absolute';
	setInterval(function (){me.style.top=parseInt(me.style.top)+(Math.max(d1.scrollTop,d2.scrollTop)+_top-parseInt(me.style.top))*0.1+'px';},10+parseInt(Math.random()*20));
	return arguments.callee;
};
function writeQqStr(contactlist,hiddenStyle)
{
	if(hiddenStyle=="mirada"){
		document.write("<DIV id='xixi' onmouseover=toBig() onclick=toSmall()>");
	}else{
		document.write("<DIV id='xixi' onmouseover=toBig() onmouseout=toSmall()>");
	}
	document.write("<TABLE style='FLOAT: left' border=0 cellSpacing=0 cellPadding=0 width=157>");
	document.write("  <TBODY>");
	document.write("  <TR>");
	document.write("    <TD class=main_head height=39 vAlign=top>&nbsp;</TD></TR>");
	document.write("  <TR>");
	document.write("    <TD class=info vAlign=top>");
	document.write("      <TABLE class=qqtable border=0 cellSpacing=0 cellPadding=0 width=120  align=center>");
	document.write("        <TBODY>  ");              
	document.write("        <TR>");
	document.write("          <TD height=15  vAlign=top><TABLE  border=0 cellSpacing=0 cellPadding=0 align=center width=120>");
	document.write(contactlist);
	document.write("          </table></TD></TR>");
	document.write("        <TR>");
	document.write("          <TD height=20></TD></TR>");
	document.write("        <TR>");
	document.write("          <TD align=middle>&nbsp;</TD></TR></TBODY></TABLE></TD></TR>");
	document.write("  <TR>");
	document.write("    <TD class=down_kefu vAlign=top></TD></TR></TBODY></TABLE>");
	document.write("<DIV class=Obtn></DIV></DIV>");
	guoguo('xixi',100,-152);
}
function getOnlineService(gname,qq,msn,skype,msnstyle){
    var ss = '<tr><TD height=35 vAlign=middle align=left colspan="2" style="width:90px;text-align:center;height:22px;background-color:#BAEFFA;font-size:12px;">'+gname+'</td></tr>';
    if(qq!="undefined"&&qq!=""){
		var qqs = qq.split("|");
		for(var i=0;i<qqs.length;i++){
		    var cc = qqs[i].split("#");
		    ss += '<tr><TD height=15 vAlign=middle align=left><img src="http://wpa.qq.com/pa?p=1:'+cc[1]+':17"></td><TD height=10 vAlign=middle align=left style="padding-top:7px;"><A style="height:10px;font-size:11px;" href="http://wpa.qq.com/msgrd?v=3&uin='+cc[1]+'&site=qq&menu=yes" >'+cc[0]+'</A></td></tr>';
		}
	}
	if(msn!="undefined"&&msn!=""){
		var ms = msn.split("|");
		for(var i=0;i<ms.length;i++){
		    var cc = ms[i].split("#");
		    if(msnstyle=="mirada"){
		    	ss += '<tr><TD height=15 vAlign=middle align=left>'+cc[1]+"</td><TD height=10 vAlign=middle align=left style='padding-top:7px;'>"+cc[0]+'</A></td></tr>';
		    }else{
				ss += '<tr><TD height=15 vAlign=middle align=left><img src="/images/qq/msn.gif" border="0"></td><TD height=10 vAlign=middle align=left style="padding-top:7px;"><A style="height:10px;font-size:11px;" href="msnim:chat?contact='+cc[1]+'" >'+cc[0]+'</A></td></tr>';
			}
		}
	}
	if(skype!="undefined"&&skype!=""){
		var ms = skype.split("|");
		for(var i=0;i<ms.length;i++){
		    var cc = ms[i].split("#");
			ss += '<tr><TD height=15 vAlign=middle align=left><img src="http://mystatus.skype.com/bigclassic/'+cc[1]+'" style="border: none;" width="30" height="30" alt="My status" /></td><TD height=10 vAlign=middle align=left style="padding-top:7px;"><A style="height:25px;font-size:11px;" href="skype:'+cc[1]+'?call" >'+cc[0]+'</A></td></tr>';
		}
	}
	return ss;
}
//qqs:new Array(new Array(gname,qq,msn))
//qq:cname#qq|cname#qq|...
//qq:cname#msn|cname#msn|...
function parseQQStr(qqs,msnstyle){
    var str="";
    if(qqs!="undefined"&&qqs!=""){
	    for(var i=0;i<qqs.length;i++){
	       var gg = qqs[i];
	       str += getOnlineService(gg[0],gg[1],gg[2],gg[3],msnstyle);
	    }
    }
    return str;
}

/*
window.onload=function (){
guoguo
('xixi',100,-152)
}
*/
lastScrollY=0; 

var InterTime = 1;
var maxWidth=-1;
var minWidth=-152;
var numInter = 8;

var BigInter ;
var SmallInter ;

function Big()
{
	var o =  document.getElementById("xixi");
	var i = parseInt(o.style.left);
	if(parseInt(o.style.left)<maxWidth)
	{
		i = parseInt(o.style.left);
		i += numInter;	
		o.style.left=i+"px";	
		if(i==maxWidth)
			clearInterval(BigInter);
	}
}
function toBig()
{
	clearInterval(SmallInter);
	clearInterval(BigInter);
	BigInter = setInterval(Big,InterTime);
}
function Small()
{
	var o =  document.getElementById("xixi");
	var i = parseInt(o.style.left);
	if(parseInt(o.style.left)>minWidth)
	{
		i = parseInt(o.style.left);
		i -= numInter;
		o.style.left=i+"px";
		
		if(i==minWidth)
			clearInterval(SmallInter);
	}
}
function toSmall()
{
	clearInterval(SmallInter);
	clearInterval(BigInter);
	SmallInter = setInterval(Small,InterTime);
	
}

//-->
