(function(){
		  TUI={
			elm:function(i){
				  return document.getElementById(i)
				 },
			getFlashMC:function(m){
				  return $.browser.msie?window[m]:document[m]
			  },
			getCacheJS:function(a,b,c,d){
				  if(jQuery.isFunction(b)){c=b;b=null}
				  jQuery.ajax({type:"GET",url:a,data:b||'',success:c||function(){},cache:true,dataType:d||"jsonp"})
			  },
			ajaxCache:{},
			getCache:function(b,c){
				  var d=TUI.ajaxCache,key=encodeURI(b);
				  if(d[key])c(d[key]);
				  else{$.get(b,function(a){d[key]=a;c(a)})}
			  },
			Class:{
				create:function(){
				  return function(a){
					  if(this instanceof arguments.callee){
						  if(typeof this.init=="function")
						  this.init.apply(this,a.callee?a:arguments)
					  }else return new arguments.callee(arguments)
				 }
				}
			},
			animate:function(a,o,p,b){
				var c=p.duration||p;
				var s=c/30;
				var e={};
				var n=[];
				for(var i in o){
				  if(!a.style[i])a.style[i]=0;
				  e[i]=(o[i]-parseFloat(a.style[i]))/s;
				  n.push(i)
				}
				var m=n[0];
				if(p.buffer)var f=Math.abs((o[m]-parseFloat(a.style[m]))/3);
				var l=n.length;
				var g=setInterval(function(){
					var u=parseFloat(a.style[m]);
					var d=o[m]-u;
					if(d<0)d=-d;
					if(e[m]>0&&d<e[m]||e[m]<0&&d<-e[m]){
						clearInterval(g);
						for(var k=0;k<l;k++){
							a.style[n[k]]=o[n[k]]+"px"
						}
						if(b)b();
						g=null;
						return false
					}
					for(var j=0;j<l;j++){
						m=n[j];
						u=parseFloat(a.style[m]);
						if(d<=f)e[m]=e[m]*p.buffer;
						a.style[m]=u+e[m]+"px"
					}
				},30);
				return g
			},
			pos:{
				scrollTop:function(){
					return self.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body&&document.body.scrollTop},
				scrollLeft:function(){
					return self.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body&&document.body.scrollLeft},
				windowHeight:function(){
					return self.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},
				 windowWidth:function(){
					 return self.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},
				 elementLeft:function(o){
					 for(var x=0;o;o=o.offsetParent)x+=o.offsetLeft;return x},
				 elementTop:function(o){
					 for(var y=0,i=o.parentNode;o;o=o.offsetParent)y+=o.offsetTop;
					 for(;i&&i!=document.body;i=i.parentNode)if(i.scrollTop)y-=i.scrollTop;
					 return y}
				},
			parseUrlHash:function(s){
				if(typeof s!="string")s=$(s).attr("href");
				s=s.replace(/^\S*#/,"");
				var a=s.replace(/[\/\?]*([^\?\/]+\=[^\?\/]+)*$/,"").split("/");
				var p=s.match(/[\/\?]*([^\?\/]+\=[^\?\/]+)$/);
				if(p==null)return a;p=p[1].split("&");
				for(var i=0,params={},l=p.length;i<l;i++){
					k=p[i].match(/(&|\?|)([^=]+)(=)?([^=]*)/);
					params[k[2]]=k[4]||null
				}
				a.push(params);
				return a[0]?a:[params]
			},
			rand:function(a){return parseInt(Math.random()*a)},
			getRequest:function(a,b){
				$(function(){
					var i=document.getElementById("TUI_requestTmp");
					if(!i){i=document.createElement("iframe");
					i.id="TUI_requestTmp";
					i.style.display="none";
					document.body.appendChild(i)}
					i.src=a+(a.match(/\?/)?"&":"?")+(typeof b=="string"?b:$.param(b))
				})
			},
			addElm:function(a,b,c){
				var b=b||{},elm=document.createElement(a);
				$.each(b,function(n){
					if(n=="className")elm.className=this;
					else $(elm).attr(n,this)});
				if(c)c.call(elm);return elm
			},
			juid:function(){
				return((new Date().getTime()*10000+Math.random(1)*10000).toString(32)+(new Date().getTime()*10000+Math.random(1)*10000).toString(32)).substr(0,11)
			}
		};
		TUI.swfobject=TUI.Class.create();
		TUI.swfobject.prototype={
			init:function(a,w,h,b,c,d){
				this.attr=$.extend(d,{src:a,width:w,height:h});
				this.params=c||{};
				this.flashvars=b||{}
				},
			load:function(a){
				this.attr.id=a;
				var b=document.getElementById(a);
				if(b)b.parentNode.innerHTML=this.getHTML();
				else document.write(this.getHTML())
			},
			getHTML:function(){
				var h="";
				var a=!(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length);
				h="<object id=\""+this.attr["id"]+"\""+(a?" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ":(" data=\""+this.attr["src"]+"\" "))+"width=\""+this.attr["width"]+"\" height=\""+this.attr["height"]+"\" style=\""+(this.attr["style"]||"")+"\">";
				if(a)h+="<param name=\"movie\" value=\""+this.attr["src"]+"\" />";
				var p=[],vars=[];
				for(var k in this.params)p.push("<param name=\""+k+"\" value=\""+this.params[k]+"\" />");
				for(var n in this.flashvars)vars.push(n+"="+this.flashvars[n]);
				if(vars.length>0)p.push("<param name=\"flashvars\" value=\""+vars.join("&")+"\" />");
				return h+p.join("")+"</object>"
			}
		};
		TUI.swfobject.getVersion=function(){
			var a=[0,0,0];
			if(navigator.plugins&&navigator.mimeTypes.length){
				var x=navigator.plugins["Shockwave Flash"];
				if(x&&x.description)a=x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")
			}else{
				if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){
					var b=1;var n=3;while(b){
						try{
							n++;
							b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+n);
							a=[n,0,0]
						}catch(e){
							b=null
						}
					}
				}else{
					try{
						var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")
					}catch(e){
						try{
							var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
							a=[6,0,21];
							b.AllowScriptAccess="always"
						}catch(e){
							if(a.major==6)return a
						}
						try{
							b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")
						}catch(e){}
					}
					if(b!=null){
						a=b.GetVariable("$version").split(" ")[1].split(",")
					}
				}
			}
		return a
		};
		TUI.noAboveFloater=function(a,p){
			p=p||document.body,status=a?"hidden":"";
			$(p).find("select").each(function(){
				this.style.visibility=status
			});
			$(p).find("object").each(hideElm);
			$(p).find("embed").each(hideElm);
			function hideElm(){
				this.style.position=a?"absolute":"";
				this.style.left=a?"-2000px":""
			}
		};
		TUI.maskAllPage=function(o,a,b){
			if(arguments.length==0)return document.getElementById('hd8_masklayer');
			if(o<0){document.body.removeChild(document.getElementById('hd8_masklayer'));
				if(!b)TUI.noAboveFloater(false);
				return false
			}
			if(!document.getElementById('hd8_masklayer')){
				var m=document.createElement('DIV');
				m.id='hd8_masklayer';
				m.style.width=document.body.offsetWidth+"px";
				m.style.height=document.body.offsetHeight+"px";
				m.style.position="absolute";
				m.style.top="0";
				m.style.left="0";
				m.style.zIndex="10000";
				document.body.appendChild(m)
			}else var m=document.getElementById('hd8_masklayer');
			if(!b)TUI.noAboveFloater(true);
			m.style.opacity=o;
			m.style.filter='alpha(opacity='+o*100+')';
			m.style.background=a||"#000000";return m
		};
		TUI.switchTabNoAjax=function(e){
			var f=e.tab,list=e.list,ct=null;
			if(!f[0])return false;
			$.each(f,function(){
				if(this.className.indexOf("current")!=-1)ct=this});
			if(!ct){
				ct=f[0];
				$(ct).addClass("current")
			}
			var c=TUI.parseUrlHash(ct.nodeName=="A"?ct:ct.getElementsByTagName("A")[0])[0];
			if(list)list[c-1].style.display="block";
			else TUI.elm(c).style.display="block";
			return{go:function(t,a){
				var n=TUI.parseUrlHash(t)[0];
				var b=list?list[--n]:TUI.elm(n);
				var d=list?list[--c]:TUI.elm(c);
				if(c==n||!b)return false;
				if(a)a.call(t,ct,d);
				d.style.display="none";
				c=list?(n+1):n;
				if(e.fade)$(b).fadeIn(e.fade);
				else b.style.display="block";
				$(ct).removeClass("current");
				if(ct.nodeName!="A")t=t.parentNode;
				ct=t;$(t).addClass("current");
				return false
				}
			}
		};
		$.cookie=function(a,b,c){
			if(typeof b!='undefined'){
				c=c||{};
				var d='';
				if(c.expires&&(typeof c.expires=='number'||c.expires.toGMTString)){
					var e;
					if(typeof c.expires=='number'){
						e=new Date();
						e.setTime(e.getTime()+(c.expires*24*60*60*1000))
					}else{e=c.expires}
					d='; expires='+e.toGMTString()
				}
				var f=c.path?'; path='+c.path:'';
				var g=c.domain?'; domain='+c.domain:'';
				var h=c.secure?'; secure':'';
				document.cookie=[a,'=',encodeURIComponent(b),d,f,g,h].join('')
			}else{
				var j=null;
				if(document.cookie&&document.cookie!=''){
					var k=document.cookie.split(';');
					for(var i=0;i<k.length;i++){
						var l=jQuery.trim(k[i]);
						if(l.substring(0,a.length+1)==(a+'=')){
							j=decodeURIComponent(l.substring(a.length+1));
							break
						}
					}
				}
				return j
			}
		};
		$.fn.eventProxy=function(c,d){
			d=$.extend({hasClass:{},hasId:{},hasAttr:{}},d);
			this.bind(c,function(e){
				var t=e.target;
				var a=d.hasId[t.id]||d.hasClass[t.className]||null;
				if(a)return a.call(t)||false;
				else{
					var b=true;
					$.each(d.hasAttr,function(n){
						if($(t).attr(n)){
							b=d.hasAttr[n].call(t)||false;return false
						}
					});
					return b
				}
				});
			return this
		};
		$.fn.diyselect=function(d){
			this.each(function(o){
				var c=$(this),cur=c.find(".diyselect_current")[0],t=c.find("input"),ul=c.find("ul")[0];t[0].onclick=null;
				$(t[0]).click(function(){
					if(ul.style.display!="block"){
						ul.style.display="block";
						$(document.body).bind("click",whenClick)
					}else whenClose()
				});
				function whenClick(e){
					var a=e.target,b=a.parentNode;
					if(!b.parentNode.parentNode){
						whenClose();
						return false
					}
					if(b.parentNode.parentNode==c[0]){
						t[0].value=a.innerHTML;
						if(t[1]){
							try{
								t[1].value=TUI.parseUrlHash(a)[0]
							}catch(ee){}
						}
						whenClose();
						cur.className="";
						b.className="diyselect_current";
						cur=b;
						if(typeof d=="function")return d.call(c[0],a)||false
					}else if(b.className!="diyselect")whenClose();
					return false
				}
				function whenClose(){
					ul.style.display="none";
					$(document.body).unbind("click",whenClick)
				}
			});
			return this
		};
		$.fn.hideDetail=function(n){
			this.each(function(){
				var s=this.innerHTML,m=(new Date).getTime();
				if(s.length>n){
					$(this).html(s.substr(0,n)+'<span>...</span><span style="display:none;">'+s.substr(n)+'</span><span  onclick="foldDetail'+m+'(this)" style="color:blue;cursor:pointer">详细剧情</span>');
					window['foldDetail'+m]=function(t){
						var h=t.parentNode.getElementsByTagName("SPAN");
						if(t.className=="fold"){
							h[0].style.display="inline";
							$(h[1]).hide();
							t.className="folded"
							t.innerHTML="详细剧情"
						}else{
							t.innerHTML="收缩剧情"
							$(h[0]).hide();
							h[1].style.display="inline";
							t.className="fold"
						}
						t.blur()
					}
				}
			});
			return this
		}
	})();
var GLOBAL_OPTION={domain:location.host,contextPath:"",book_domain:"bbs.soojs.com",uid:isLogined()?($.cookie("u_id")||0):0,user:$.cookie("u_user"),nick:$.cookie("u_nick"),juidStr:TUI.juid()};
var initTimestamp=new Date().getTime();
var getwords=function(w){
	var a={kili:"%u6674%u5929%u7535%u5F71%u7CFB%u7EDF",can_remove_from_list:"%u4F60%u786E%u5B9A%u8981%u5220%u9664%u8BB0%u5F55%u4E48？",save_ts:"%u4F60%u8FD8%u672A%u767B%u5F55%uFF0C%u6536%u85CF%u7684%u5F71%u7247%u53EA%u6709%u672C%u673A%u624D%u53EF%u4EE5%u770B%u89C1%u54E6%u3002%u6CE8%u518C%u7528%u6237%u5219%u53EF%u4EFB%u610F%u67E5%u770B%uFF0C%u8BF7%u5728%u9876%u90E8%u5BFC%u822A%u680F%u53F3%u4FA7%u6CE8%u518C%uFF01",add_to_mylist:"%u6DFB%u52A0%u5230%u6211%u7684%u6536%u85CF%u5939",hello:"你好，",logout:"%u9000%u51FA%u767B%u5F55",add_desktop:"%u563F%uFF5E%u5728%u4F60%u7684%u684C%u9762%u4E0A%u6DFB%u52A0%u6674%u5929%u7684%u5FEB%u6377%u65B9%u5F0F%u5427%uFF5E"};
	return unescape(a[w])
};
if(!$.cookie('juid'))$.cookie('juid',GLOBAL_OPTION.juidStr,{expires:365*100,domain:location.host,path:'/'});
else GLOBAL_OPTION.juidStr=$.cookie('juid');
function isLogined(){
	return($.cookie("u_user")&&$.cookie("u_nick"))
}

var myPlaylist={
	load:function(b){b()},
	init:function(p){
		var q=isLogined();
		{var d=$.cookie(p);var r=d?d.split("~"):[]}
		function record(a){
			if(typeof a=="string"){
				var b="!"+a;a={}
			}else var b="";
			if(q){
				a.type=p;
				if(p=="myList_want"){
					TUI.getRequest("http://"+GLOBAL_OPTION.domain+GLOBAL_OPTION.contextPath+"/Ajax/pList"+b+"/Index.Asp",a)
				}
			}else{
				var tsl=$.cookie('save_tsl');
				a.type=p;
				if(!tsl && p=="myList_want"){
					$.cookie('save_tsl','1',{expires:1,path:"/",domain:GLOBAL_OPTION.domain});
					alert(getwords("save_ts"))
				}
			} 
			$.cookie(p,(b?"":r.join("~")),{expires:(b?-1:360),path:"/",domain:GLOBAL_OPTION.domain})
		}
		return{
			addItem:function(a,b,c){
				var l=r.length,n=30,op={addId:a};
				this.removeItem(a,true);
				if(l>=n){
					try{
						op.deleteId=r.splice(0,1)[0].split("|")[0]
					}catch(e){}
				}
				r.push(a+"|"+b.substr(0,20).replace(/[~|]/g,"")+"|"+c);
				record(op)
			},
			removeItem:function(a,b){
				$.each(r,function(o){if((new RegExp("^"+a+"\\|")).test(this)){r.splice(o,1);return false}});
				if(!b)record({deleteId:a})
			},
			removeAllList:function(){
				r=[];
				record("clear")
			},
			inList:function(a){
				var b=false;
				$.each(r,function(o){
					if((new RegExp("^"+a+"\\|")).test(this)){
						b=true;return false
					}});
				return b
			},
			showList:function(a){
				try{
					if($("#"+p)[0])this.getHTML(r,$("#"+p),a)
				}catch(e){
					$.cookie(p,'',{expires:-1,path:"/",domain:GLOBAL_OPTION.domain})
				}
			},
			getHTML:function(b,c,d){
//				for(var a=b,h=[],g=GLOBAL_OPTION,j=1,l=a.length,i=l-1;i>=0;i--){
//					var e=((j++)%10==0&&i!=0)?'</ul><ul class="page">':'';
//					var f=a[i].split("|");
//					h.push('<li><a href="http://'+g.domain+g.contextPath+'/program/'+f[0]+'/">'+f[1]+'<span><input type="button" value="" class="remove" /></span></a></li>'+e)
//				}
				var s1=New_LookHistory()
				
				var h=[]
				h=s1.split("<li>")
				c.find("ul").remove(".page");
				var k=c.find(".next")[0];
				var m=c.find(".prev")[0];
				m.style.visibility="hidden";
				if(h.length>0&&s1!=""){
					k.style.visibility=(h.length<=11)?"hidden":"visible";
					c.find(".alert").hide();
					c[0].innerHTML+='<ul class="page current">'+s1+'</ul>'
				}else{
					k.style.visibility="hidden";
					c.find(".alert").show()
				}
				if(d)d()
			}
		}
	},
	fillList:function(n){
		while($("#myList_must .prev")[0].style.visibility!="hidden")$("#myList_must .prev")[0].click();
		this.toggleFold($("#myList_must .folder_name")[0],10-n)
	},
	toggleFold:function(t,n,a){
		var f=t.parentNode,fd=t.offsetHeight-1,ul=$(f).find(".current"),op,cb;
		if(ul[0])var d=(n&&n.constructor==Number)?(ul.find("li")[0].offsetHeight*n+fd):(ul[0].offsetHeight+fd);
		else var d=$(f).find("ul")[0].offsetHeight+fd;
		var b=n||!$(f).hasClass("opened");
		if(n===0||!b){
			op={height:fd};
			cb=function(){
				$(this).removeClass("opened");
				if(a)a.call(this,false)
			}
		}else{
			op={height:d};
			cb=function(){
				if(!$(this).hasClass("opened"))$(this).addClass("opened");
				if(a)a.call(this,true)
			}
		}
		$(f).animate(op,500,cb)
	}
};
var initMylistHook=function(d){

	var e=d?$(d).find(".hook"):$(".hook");
	e.each(function(){
		var f=(this.nodeName=="IMG")?this.parentNode:this;
		var a=$(f).find(".mylist_towant")[0];
		if(!a){
			a=TUI.addElm("INPUT",{
				value:"",type:"button",title:getwords("add_to_mylist")
			});
			f.appendChild(a)
		}
		
		var b=$(f).attr("href").match(/(program\/)(\d+)/);
		if(!b)return true;
		b=b[2];
		var c=(this.nodeName=="IMG")?f.title:$(f).text();
		if(listToWant.inList(b)){
			a.className="mylist_towant mylist_towant_chosen"
		}else{
			a.className="mylist_towant";
			$(f).mouseover(function(){$(a).addClass("mylist_towant_on")});
			$(f).mouseout(function(){$(a).removeClass("mylist_towant_on")});
			$(a).click(function(){addToMylist(b,c);$(this).addClass("mylist_towant_chosen");return false})
		}
	})
};
var addToMylist=function(a,b){
	listToWant.addItem(a,b,(new Date).getTime());
	listToWant.showList(function(){
		myPlaylist.toggleFold($("#myList_want .folder_name")[0],true,function(){
			myPlaylist.fillList($("#myList_want .current li").length)
		})
	});
};
(function(){
		  if(window.google&&google.gears){return}var a=null;
		  if(typeof GearsFactory!='undefined'){a=new GearsFactory()}
		  else{
			  try{
				  a=new ActiveXObject('Gears.Factory');
				  if(a.getBuildInfo().indexOf('ie_mobile')!=-1){a.privateSetGlobalObject(this)}
				  }catch(e){
					  if((typeof navigator.mimeTypes!='undefined')&&navigator.mimeTypes["application/x-googlegears"]){
						  a=document.createElement("object");
						  a.style.display="none";
						  a.width=0;
						  a.height=0;
						  a.type="application/x-googlegears";
						  document.documentElement.appendChild(a)
						}
					}
				}
				if(!a){return}
				if(!window.google){google={}}
				if(!google.gears){google.gears={factory:a}}
			})();
window.kiliGears={
	createShortcut:function(){
		if(!window.google||!google.gears)return false;
		if(!$.cookie('KILI_SHORTCUT')){
			var a=google.gears.factory.create("beta.desktop");
			a.createShortcut("HD8","http://"+GLOBAL_OPTION.domain,{"48x48":GLOBAL_OPTION.shortcut},getwords("add_desktop"));
			$.cookie('KILI_SHORTCUT',1,{expires:60,path:"/",domain:GLOBAL_OPTION.domain})
		}
	}
};

$(function(){
	$(".dtype").each(function(){
		var ul=$(this).find(".nav_sub")[0];
		this.onmouseover=function(){
			$("#x_menu").html(ul);
			$("#x_menu").animate({height:'toggle',opacity:'show'},"slow");};});
	myPlaylist.load(function(){
		window.listToSee=myPlaylist.init("myList_see");
		window.listToWant=myPlaylist.init("myList_want");
		if(typeof VIDEO_OPTION=="object")listToSee.addItem(VIDEO_OPTION.videoId,VIDEO_OPTION.title,(new Date).getTime());
		if($("#myList")[0]){
			listToSee.showList();
			listToWant.showList();
			$("#myList").click(function(e){
				var b=e.target;
				if(b.nodeName=="SPAN")b=b.parentNode;
				var d=b.className;
				if(b.nodeName=="INPUT"){if(d.indexOf("mylist_towant")!=-1)return true;
				if(d.indexOf("remove")!=-1){
					if(confirm(getwords("can_remove_from_list"))){
						var f=b.parentNode.parentNode;
						var g=f.parentNode.parentNode.parentNode;
						var h=(g.id=="myList_see")&&listToSee||(g.id=="myList_want")&&listToWant;
						h.removeItem(f.href.match(/(program\/)(\d+)/)[2]);
						h.showList();
						myPlaylist.toggleFold($(g).find(".folder_name")[0],true,function(){
							myPlaylist.fillList($(g).find(".current li").length)});
						if(g.id=="myList_want")initMylistHook()
					}
					return false
				}else if(d.indexOf("clear")!=-1){
					if(confirm(getwords("can_remove_from_list"))){
						var f=b.parentNode.parentNode;
						var h=(f.parentNode.id=="myList_see")&&listToSee||(f.parentNode.id=="myList_want")&&listToWant;
						New_qt_deleteCookie()
						h.removeAllList();
						h.showList();
						myPlaylist.toggleFold(f,true,function(){
							myPlaylist.fillList($(f.parentNode).find(".current li").length)});
						if(f.parentNode.id=="myList_want")initMylistHook()
					}
					return false
				}
				var c=0,span=b.parentNode,p=$(span.parentNode.parentNode).find(".page");
				$.each(p,function(o){
					if(this.className.indexOf("current")!=-1){
						c=o;return false
					}
				});
				var i=$(span).find(".prev");
				var j=$(span).find(".next");
				if(p.length==1)return false;
				if(d.indexOf("next")!=-1){
					var k=c+1;
					$(p[c]).removeClass("current").hide();
					$(p[k]).fadeIn(500).addClass("current");
					if(c==0)i[0].style.visibility="visible";
					if(c==p.length-2)j[0].style.visibility="hidden"
				}else if(d.indexOf("prev")!=-1){
					var k=c-1;
					$(p[c]).removeClass("current").hide();
					$(p[k]).fadeIn(500).addClass("current");
					if(c==p.length-1)j[0].style.visibility="visible";
					if(c==1)i[0].style.visibility="hidden"
				}
				myPlaylist.toggleFold(span.parentNode,true,function(){
					if(span.parentNode.parentNode.id!="myList_must")myPlaylist.fillList($(p[k]).find("li").length)
					});
				return false
				}else if(d.indexOf("folder_name")!=-1){
					var t=b.parentNode.id;
					var l=!$("#myList_want").hasClass("opened")&&!$("#myList_see").hasClass("opened");
					myPlaylist.toggleFold(b,false,function(a){
						if(t=="myList_see"){
							var n=a?$("#myList_see .current li").length:$("#myList_want .current li").length;
							myPlaylist.fillList(n)
						}else if(t=="myList_want"){
							var n=a?$("#myList_want .current li").length:$("#myList_see .current li").length;
							myPlaylist.fillList(n)
						}
					});
					if(!l){
						if(t=="myList_see")myPlaylist.toggleFold($("#myList_want .folder_name")[0]);
						else if(t=="myList_want")myPlaylist.toggleFold($("#myList_see .folder_name")[0])
					}
					return false
				}
				return true
			});
			(function(){
				var n=$("#myList_want .current li").length;
				myPlaylist.toggleFold($("#myList_want .folder_name")[0],n<5?true:5,function(){myPlaylist.fillList(n<5?n:5)})
			})()
		}
		initMylistHook()
		});
	kiliGears.createShortcut();
	TUI.getCacheJS("http://"+GLOBAL_OPTION.domain+GLOBAL_OPTION.contextPath+"/Ajax/ViewUrlServlet.js",false,false,"script")});

$(".dtype").each(function(){
	var ul=$(this).find(".nav_sub")[0];
	this.onmouseover=function(){
		$("#x_menu").html(ul);
		$("#x_menu").animate({height:'toggle',opacity:'show'},"slow");
	};
});

function ResumeError() { 
	return true; 
} 
//window.onerror = ResumeError;
