var t_id=setInterval(animate,10);var pos=0;var dir=2;var len=0;function animate()
{var elem=document.getElementById('progress');if(elem!=null){if(pos==0)len+=dir;if(len>32||pos>249)pos+=dir;if(pos>249)len-=dir;if(pos>249&&len==0)pos=0;elem.style.left=pos;elem.style.width=len;}}
function remove_loading(){this.clearInterval(t_id);var targelem=document.getElementById('loader_container');targelem.style.display='none';targelem.style.visibility='hidden';}
setTimeout("remove_loading()",7000);function ShowMessage(msg){$("uu_message").innerHTML=msg;$("MSIEalert").style.display="block";setTimeout("ShowMessageDispose()",3000);}
function ShowMessageDispose(){$("MSIEalert").style.display="none";}
function MsgNetErr(){ShowMessage("悠悠书盟动态消息提示::网络异常,请稍候再试! ... 三秒后自动后自动关闭.");}
function MsgFavoriteDone(){ShowMessage("悠悠书盟动态消息提示::书籍收藏成功! ... 三秒后自动后自动关闭.");}
function MsgADDone(){var msg="悠悠书盟动态消息提示::您刚刚点击了广告,本站不对站外信息承担任何连带责任!";$("uu_message").innerHTML=msg;$("MSIEalert").style.display="block";setTimeout("ShowMessageDispose()",20000);}
function MsgCommendDone(){$.Ajax.get("/myaspx/user/user_commend.aspx",function(x){if(x.responseText==0){ShowMessage("悠悠书盟动态消息提示::<font color='red'>您今日的推荐票已经用完,再次投票不会赠送积分~!</font>. ... 三秒后自动后自动关闭.");}else{ShowMessage("悠悠书盟动态消息提示::书籍投票成功,系统已经为您增加积分[无推荐票时不增加]. ... 三秒后自动后自动关闭.");}});}
function LoadUserInfo(){$("user_score").innerHTML="Loading...";setTimeout("LoadUserInfoStep2()",1000);}
function LoadUserInfoStep2(){$.Ajax.update("/myaspx/user/user_score.aspx","user_score");}
function Empty(){}
function get_url(v1,v2){if(typeof(v1)=='undefined'||typeof(v2)=='undefined')
　　return false;var url="/php/Download/download-a.php?act="+v2+"&id="+v1;$.Ajax.update(url,"DU");}
function XunleiClickCheck(xa){$.Ajax.get("/MyAspx/Book/Download-C.aspx",function(x){if(x.responseText=="1"){return OnDownloadClick_Simple(xa,2,4);}else if(x.responseText=="0"){alert("您的积分不足，请参看用户指南免费获取积分！");window.location.href='/html/5.html';}else{window.location.href='http://www.uutxt.com/User/Login.aspx';}});}
function FlashgetClickCheck(xa,xb){$.Ajax.get('/MyAspx/Book/Download-C.aspx',function(x){if(x.responseText=='1'){ConvertURL2FG(xa,xb,5647);}else if(x.responseText=='0'){alert('您的积分不足，请参看用户指南免费获取积分！');window.location.href='/html/5.html';}else{window.location.href='http://www.uutxt.com/User/Login.aspx';}});}
function loadad(name){		var placeholder = document.getElementById(name);		var adhtml  = document.getElementById("span_" + name);		if(adhtml == null) return(false);		placeholder.innerHTML = adhtml.innerHTML;		adhtml.innerHTML = "";		return(true);	}