<!-- 
// JS脚本
function news(id,w,h)
{
window.open("shownews.asp?news_id="+id,"news","width="+w+",height="+h+",resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
function dj(id,w,h)
{
window.open("showdj.asp?dj_id="+id,"dj","width="+w+",height="+h+",resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}
function down(id,w,h)
{
window.open("showdown.asp?soft_id="+id,"down","width="+w+",height="+h+",resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
function art(id,w,h)
{
window.open("showart.asp?art_id="+id,"art","width="+w+",height="+h+",resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
function js(id,w,h)
{
window.open("showjs.asp?js_id="+id,"js","width="+w+",height="+h+",resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no");
}
function link() 
{
win = window.open("","link","width=150,height=150,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no")
} 
function vote() 
{
win = window.open("","vote","width=600,height=350,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no")
} 
// 滚动脚本
var rollspeed=30
var myInter;
function MarqueeV(){
	var ooRollV=document.getElementById("oRollV");
	var ooRollV1=document.getElementById("oRollV1");
	var ooRollV2=document.getElementById("oRollV2");
	if(ooRollV2.offsetTop-ooRollV.scrollTop<=0) {
		ooRollV.scrollTop-=ooRollV1.offsetHeight;
	}else{
		ooRollV.scrollTop++;
	}
}
function StartRollV() {
	var ooRollV=document.getElementById("oRollV");
	var ooRollV1=document.getElementById("oRollV1");
	var ooRollV2=document.getElementById("oRollV2");
	if (ooRollV) {
		if (parseInt(ooRollV.style.height)>=ooRollV2.offsetTop) {
			ooRollV.style.height = ooRollV2.offsetTop;
			return;
		}
		ooRollV2.innerHTML=ooRollV1.innerHTML;
		myInter=setInterval(MarqueeV,rollspeed);
		ooRollV.onmouseover=function() {clearInterval(myInter)};
		ooRollV.onmouseout=function() {myInter=setInterval(MarqueeV,rollspeed)};
	}
}
function MarqueeH(){
	var ooRollH=document.getElementById("oRollH");
	var ooRollH1=document.getElementById("oRollH1");
	var ooRollH2=document.getElementById("oRollH2");
	if(ooRollH2.offsetLeft-ooRollH.scrollLeft<=0) {
		ooRollH.scrollLeft-=ooRollH1.offsetWidth;
	}else{
		ooRollH.scrollLeft++;
	}
}
function StartRollH() {
	var ooRollH=document.getElementById("oRollH");
	var ooRollH1=document.getElementById("oRollH1");
	var ooRollH2=document.getElementById("oRollH2");
	if (ooRollH) {
		if (parseInt(ooRollH.style.width)>=ooRollH2.offsetLeft) {
			oRollH.style.width = oRollH2.offsetLeft;
			return;
		}
		ooRollH2.innerHTML=ooRollH1.innerHTML;
		myInter=setInterval(MarqueeH,rollspeed);
		ooRollH.onmouseover=function() {clearInterval(myInter)};
		ooRollH.onmouseout=function() {myInter=setInterval(MarqueeH,rollspeed)};
	}
}


// 图片脚本--------------------------
function lanyuimg(img,url,alt,blank,highlight)
{
	if (blank==null)
		blank=false;
	if (highlight==null)
		highlight=false;
	with(document){
		write("<table class='lanyuimg'>");
		write("<tr><td>");
		write("<a href='");
		write(url);
		if (blank)
			write("' target='_blank'>");
		else
			write("'>");
		write("<img src='");
		write(img);
		write("' title='");
		write(alt);
		write("' ");
		if (highlight){
			if (thumbHWidth>0){
				write(" width='");
				write(thumbHWidth);
				write("' ");
			}
			if (thumbHHeight>0){
				write(" height='");
				write(thumbHHeight);
				write("' ");
			}
		}else{
			if (thumbWidth>0){
				write(" width='");
				write(thumbWidth);
				write("' ");
			}
			if (thumbHeight>0){
				write(" height='");
				write(thumbHeight);
				write("' ");
			}
		}
		write("></a></td></tr></table>");
	}
}
// 连接图片脚本--------------------------
function lanyulg(url,img,w,h,alt,blank)
{
	if (blank==null)
		blank=false;
	with(document){
		write("<a href='");
		write(url);
		if (blank)
			write("' target='_blank'>");
		else
			write("'>");
		write("<img src='");
		write(img);
		write("'");
                write(" width='");
		write(w);
		write("' ");
                write(" height='");
		write(h);
		write("' ");
                write("border='0' title='");
		write(alt);
		write("' ");
		write("></a>");
	}
}
// FLASH动画脚本--------------------------
function lanyuflash(file, w, h)
{
		document.write("<div style=\"padding:5px\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" width=\"");
		document.write(w);
		document.write("\" height=\"");
		document.write(h);
		document.write("\"><param name=\"movie\" value=\"");
		document.write(file);
		document.write("\"> <param name=\"quality\" value=\"high\"><embed src=\"");
		document.write(file);
		document.write("\" loop=\"false\" menu=\"false\" quality=\"high\" width=\"");
		document.write(w);
		document.write("\" height=\"");
		document.write(h);
		document.write("\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></embed></object></div>");
}
// 超连接脚本--------------------------
function lanyuurl(url,alt,size,blank)
{
	if (blank==null)
		blank=false;
	with(document){
		write("<a href='");
		write(url);
		write("' title='");
		write(alt);
		if (blank)
			write("' target='_blank'>");
		else
			write("'>");
		write(size);
		write("</a>");
	}
}
// 带图片超连接脚本--------------------------
function lanyuimgurl(img,url,alt,size,blank)
{
	if (blank==null)
		blank=false;
	with(document){
		write(" <img src='");
		write(img);
		write("'>");
		write(" <a href='");
		write(url);
		write("' title='");
		write(alt);
		if (blank)
			write("' target='_blank'>");
		else
			write("'>");
		write(size);
		write("</a>");
	}
}
// 跳窗脚本--------------------------
function lanyuopen(wd,id,w,h,alt,size)
{

	with(document){
		write("<a href='javascript:");
		write(wd);
		write("(");
		write(id);
		write(",");
		write(w);
		write(",");
		write(h);
		write(")");
		write("' title='");
		write(alt);
		write("'>");
		write(size);
		write("</a>");
	}
}
// 小表上--------------------------
function lanyutabletop(size,m)
{
	with(document){
		write("<DIV class=lframe><TABLE cellSpacing=0 cellPadding=0 width='100%'><TBODY><TR><TD class='tl'></TD><TD class='tm'><SPAN class='tt'>");
		write(size);
		write("</SPAN></TD><TD class='tr'></TD></TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width='95%'><TBODY><TR><TD class='");
                write(m);
		write("'></TD><TD class='mm'>");
	}
}
// 小表下--------------------------
function lanyutablebottom(m)
{

	with(document){
		write("</TD><TD class='");
                write(m);
                write("'></TD></TR></TBODY></TABLE><table width='95%' cellspacing='0' cellpadding='0'><tr><td class='bl'></td><td class='bm'>&nbsp;</td><td class='br'></td></tr></table></div>");
	}
}
// 大表--------------------------
function lanyutable(size)
{
	with(document){
		write("<TABLE cellSpacing=0 cellPadding=0 width='100%'><TBODY><TR><TD class=tl></TD><TD class=tm><TABLE cellSpacing=0 cellPadding=0 width='100%'><TBODY><TR><TD><SPAN class=tt>");
		write(size);
		write("</SPAN></TD></TR></TBODY></TABLE></TD><TD class=tr></TD></TR></TBODY></TABLE>");
	}
}
// -->