﻿function CloseQQ()
{
left2.style.display="none";
left1.style.display="block";
return true; 
}
function CloseQQBlock()
{
left2.style.display="block";
left1.style.display="none";
return true; 
}
lastScrollY = 0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("leftDiv").style.top = parseInt(document.getElementById("leftDiv").style.top)+percent+"px";
document.getElementById("rightDiv").style.top = parseInt(document.getElementById("rightDiv").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
//下面这段删除后，对联将不跟随屏幕而移动。
window.setInterval("heartBeat()",1);

//显示样式
document.writeln("<style type=\"text\/css\">");
document.writeln("#leftDiv,#rightDiv{height:100px;#fff;position:absolute;}");
document.writeln(".itemFloat{height:auto;line-height:5px}");
document.writeln("<\/style>"); 

document.writeln("<div style=\"width: 1010px; margin:0 auto;\">");
//以下为主要内容
document.writeln("<div id=\"leftDiv\" style=\"top:330px;z-index:6;margin:0 auto;z-index:6;\">");

//------左侧各块开始
//document.writeln("<div id=\"left2\" class=\"itemFloat\" style=\"z-index:1;\">");
//document.writeln("<a target=_blank href=web_gift.aspx ><img border=0 src='images/toonyin_jfhl.png' ></a><br><br>"); 
//document.writeln("<a target=_blank href=http://yueli.toonyin.com/jianyi.aspx><img border=0 src='images/yijian.gif'></a>"); 
//document.writeln("<\/div>");
//------左侧各块结束

document.writeln("<\/div>");

//------右侧各块开始
document.writeln("<div id=\"rightDiv\" style=\"top:160px;right:0px;z-index:6;\">");

document.writeln("<a target=blank  href=http://b.qq.com/webc.htm?new=0&sid=4007059868&eid=218808P8z8p8R8x8q8p8R&o=www.toonyin.com&q=7, _blank, height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no ><img border=0 SRC=images/qq.png width=91  height=152 /></a>");
 
//document.writeln("<br />");
//document.writeln("<a target=_blank href=web_gift.aspx ><img border=0 src='images/toonyin_jfhl.png' ></a>"); 

document.writeln("<\/div>");
//------右侧各块结束

document.writeln("<\/div>");
 
document.writeln("<\/div>");
 

function selectTag(showContent,selfObj){
// 操作标签
var tag = document.getElementById("tags").getElementsByTagName("li");
var taglength = tag.length;
for(i=0; i<taglength; i++){
	tag[i].className = "";
}
selfObj.parentNode.className = "selectTag";
// 操作内容
for(i=0; j=document.getElementById("tagContent"+i); i++){
	j.style.display = "none";
}
document.getElementById(showContent).style.display = "block";
}

