function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.bgColor = clrOver; }}
function mOut(src,clrIn){ if (!src.contains(event.toElement)) { src.bgColor = clrIn; }}
function onlistover(src){src.style.color="#ff3300"}
function onlistout(src){src.style.color=""}
function thisMovietitle(movieName) {var isIE = navigator.appName.indexOf("Microsoft") != -1;return (isIE) ? window[movieName] : document[movieName];}
//----------------------------------------------------------------------
var xxid;
var titleshowxx;
var prvexxid;
var fid = null;
var showlb = null;
function showtitle(id,xinxi,fls,fids,w,h,t,l,lb) {
	//alert(lb);
	bb = false;
	xxid = id; titleshowxx = xinxi; fid = fids; showlb = lb;
	if(lb == "zimulu"){flink = fls}else{flink = "img/flash/title_"+fls+".swf"}
	if (prvexxid != "" && prvexxid != null && prvexxid != "diangeids" && document.getElementById(prvexxid)){document.getElementById(prvexxid).innerHTML = '';}
	if (showlb != "" && showlb != null && showlb != "toum" && showlb != "zimulu"){
		document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+fid+"' style='position: absolute; margin: "+t+"px "+l+"px; z-index:1000;'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='"+flink+"' /><param name='quality' value='high' /><embed src='"+flink+"' quality='high' width='"+w+"' height='"+h+"' name='"+fid+"' allowscriptaccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
	} else {
		document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+fid+"' style='position: absolute; margin: "+t+"px "+l+"px; z-index:1000;'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='"+flink+"' /><param name='quality' value='high' /><PARAM name='wmode' value='transparent' /><embed src='"+flink+"' quality='high' width='"+w+"' height='"+h+"' name='"+fid+"' allowscriptaccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' /></object>";
	}
	prvexxid = xxid;
}
function showstart() {window.document[fid].asFunc(xxid,titleshowxx,showlb);}
function showclose(id) {if (document.getElementById(id)) {document.getElementById(id).innerHTML = '';}}
function showcopystart() {document.getElementById(titleshowxx).select();var str = document.getElementById(titleshowxx).value;window.document[fid].asFunc(xxid,str);}
function gethide(hideid,hidestr) {if (document.getElementById(hideid)) {document.getElementById(hideid).innerHTML = hidestr;}}
function Timestr(inputid,times) {if (document.getElementById(inputid)) {document.getElementById(inputid).value = times;}}
//------------------------------------------------------------------------------------------------------------
//mail
function mailstart() {var uuu = location.href; window.document["mailsddd"].asFunc(uuu);}
function mailcontent(mstr){if (document.getElementById("mails")) {document.getElementById("mails").innerHTML = mstr;}}
//mailpage
function mailpagetart() {var uuuu = location.href; window.document["mailpagesd"].asFunc(uuuu);}
//ly、热贴
function showshget(id, xxx) {window.document[id].asFunc(xxx);}
function showshstr(id, xxx){
	if(id == "tabs1"){
		xinxi = xxx.split("|*|")
		document.getElementById(id).innerHTML = xinxi[0];
		document.getElementById(xinxi[1]).innerHTML = xinxi[2];
	}else{
		if(document.getElementById(id)) {document.getElementById(id).innerHTML = xxx;}
	}
}

function showtitlesx(id,xinxi,fls,fids,w,h,t,l,lb){var uuu = location.href; window.document["mailsddd"].asFunc(uuu);showtitle(id,xinxi,fls,fids,w,h,t,l,lb)}
//----------------------------------------------------------------------
function showtitlelylw(src,id,tuxx) {
	src.style.border = "solid 1px #ff9900";src.style.cursor = "pointer";
	showtitle(id,tuxx,"lwshow","lwshowsd",430,225,0,-30,"");
}
function showtitlelyout(src) {src.style.border = "";}
//----------------------------------------------------------------------
function dengl(){alert("Sorry！你必须登陆后才可以发表评论"); return false;}
function ShowIp(url){var url; window.open(url,'_blank','status=no,scrollbars=no,resizable=no,top=100,left=100,width=450,height=150'); }
function bzgl(url){window.open(url,'_blank','scrollbars=yes,resizable=yes,top=50,left=100,width=550,height=500,toolbar=no,menubar=no,location=no, status=no,modal=yes,')}
function guanli(url){var url; window.open(url,'_blank','status=no,scrollbars=yes,resizable=yes,top=50,left=100,width=550,height=500'); }
function vote(url){var url; window.open(url,'_blank','width=600,height=500,top=0,left=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no')}
//----------------------------------------------------------------------
function dgliststr() {showtitle("diangeids","","dglist_index","dglistd",980,350,40,-5,"dglists")}
var neirong;
function music_play(str){
	neirong = str;
	var w = 700;
	var h = 525;
	var LeftPosition = 0;
	var TopPosition = 0;
	window.open("musicplay.html","music","height="+h+",width="+w+",top="+TopPosition+",left="+LeftPosition+",scrollbars=no,resizable=no")
}
//----------------------------------------------------------------------
function listaddclose(){
document.getElementById('list').style.display='none';
document.getElementById('listline').style.display='none';
document.getElementById('listnr').innerHTML='';
document.getElementById('listadd').innerHTML='<a href="musiclist.asp?lb=add" target="musiclists" title="给好友点歌">点歌</a>';
}
//----------------------------------------------------------------------
function fucCheckLength(strTemp){
	var i,sum;
	sum=0;
	for(i=0;i<strTemp.length;i++)
	{
		if ((strTemp.charCodeAt(i)>=0) && (strTemp.charCodeAt(i)<=255))
			sum=sum+1;
		else
			sum=sum+2;
	}
	return sum;
}

function showLen(obj){
document.getElementById("reviewLen").value=fucCheckLength(obj.value);
}
//----------------------------------------------------------------------
function set(mylink){
window.open(mylink,'news','top=110,left=500,width=380,height=245,scrollbars=no,resizable=yes')
}
function diary(mylink){
window.open(mylink,'news','top=0,left=0,width=400,height=300,resizable=yes,scrollbars=yes')
}
function UserLogout(){
	if (confirm("如果确定，那么将清除你的登录记忆信息\n\n如果不想清除登录信息，点击“取消”关闭窗口")){
		return true;
	}else{
		window.opener=null;window.close();
		return false;
	}
}
//*************************************************************************************** -->
var flag=true;
function DrawImage(ImgD){
    var image=new Image();
    image.src=ImgD.src;
    if(image.width>0 && image.height>0){
        flag=true;
        if(image.width>=760){
            ImgD.width=760;
            ImgD.height=(image.height*760)/image.width;
        }else{
            ImgD.width=image.width;
            ImgD.height=image.height;
        }
    }
}
function DrawImagepf(ImgD){
    var image=new Image();
    image.src=ImgD.src;
    if(image.width>0 && image.height>0){
        if(image.height>=35){
            ImgD.height=35;
            ImgD.width=(image.width*35)/image.height;
        }else{
            ImgD.width=image.width;
            ImgD.height=image.height;
        }
    }
}
//----------------------------------------------------------------------
function getrt(id1,id2,ii){
	document.getElementById(id2).innerHTML = "<br><br><br><div align=center style='color:#ff0000;font-size:14px;'><IMG SRC='img/loading2.gif' align=absMiddle BORDER=0><br><br>请稍候......</div>";
	showshget('shsd','getrt|'+id1+'|'+id2+'|'+ii);
}