var Tabs={init:function(a){if(void 0==a||!$.isArray(a)||a.length<=0)return!1;this.eleArrays=a;this._bind()},_bind:function(){var a,b;for(key in this.eleArrays){a=$($.trim(this.eleArrays[key].tabSelector));b=$($.trim(this.eleArrays[key].dataSelector));if(!a[0]&&!b[0])return!1;b&&b.length>0&&$(b[0]).css("display","");a.click(function(){a.removeClass("current");$(this).addClass("current");var d=$.inArray(this,a);b.css("display","none");b.eq(d).css("display","")})}return!0}},Filter={init:function(){this.conditions=
$(".filter .item");this.conditions.length!=0&&this.bind()},bind:function(){this.conditions.each(function(){var a=$(this);a.find("li").each(function(){$(this).find("a").click(function(){var b=a.find("li.current");b.length!=0&&b.removeClass("current");$(this).parent().addClass("current");return!1})})})}},Selector={init:function(){this.selectors=$(".selector");this.selectors.length!=0&&this.bind()},bind:function(){$.each(this.selectors,function(){var a=$(this).find(".selected"),b=$(this).find(".options"),
d=b.attr("index"),c=$(this).find(".options").find("li"),e=b.find("[index="+d+"]");a.click(function(){b.toggle();return!1});$.each(c,function(){$(this).attr("index")==d&&$(this).addClass("current");$(this).find("a").click(function(){var c=$(this).parent(),g=c.attr("index");g!=d&&(a.html($(this).text()),e.removeClass("current"),c.addClass("current"),d=g,e=c,b.hide());return!1})})})}},ViewBy={init:function(){var a=$(".viewby");if(a.length!=0)this.bys=a.find("li"),this.vcoll=$("#vcoll"),this.pcoll=$("#pcoll"),
this.by=a.find(".current"),this.bind()},bind:function(){var a=this;this.bys.each(function(){$(this).click(function(){if($(this).attr("viewby")!=a.by.attr("viewby")){$(this).addClass("current");var b=$(this).attr("viewby");a.vcoll.length!=0&&(b=="list"?a.vcoll.addClass("colllist1w").removeClass("collgrid4w"):a.vcoll.addClass("collgrid4w").removeClass("colllist1w"));a.pcoll.length!=0&&(b=="list"?a.pcoll.addClass("colllist1w").removeClass("collgrid4w"):a.pcoll.addClass("collgrid4w").removeClass("colllist1w"));
a.by.length!=0&&a.by.removeClass("current")}a.by=$(this);writeCookie("viewby",a.by.attr("viewby"),8640)})})}},PartPop={init:function(){this.pophandles=$(".v .v_part");this.globalpop=$("#globalpop");this.pophandles.length!=0&&this.bind()},bind:function(){var a=this;$.each(this.pophandles,function(){var b=$(this).find(".handle"),d=$(this).find(".pop");$(this).mouseover(function(){a.globalpop.length==0&&a.create();$.each(d.find("img"),function(){var a=$(this).attr("_src");a&&($(this).attr("src",a),$(this).removeAttr("_src"))});
a.globalpop.html(d.html());var c=b.offset(),e=c.top-4,f=c.left+20;c.left+280+5>parseInt($(window).width())&&(f=c.left-280);a.globalpop.css({top:e,left:f});a.globalpop.show()});$(this).mouseout(function(){a.globalpop.hide()})})},create:function(){if(this.globalpop.length==0)this.globalpop=$('<div id="globalpop" class="pop"></div>'),$(document.body).append(this.globalpop),this.globalpop.mouseover(function(){$(this).show()}),this.globalpop.mouseout(function(){$(this).hide()})}},SpeedSelector={init:function(){this.filedir=
"/img/favicon/";this.config={youku:{name:"\u4f18\u9177",file:"youku.png"},qiyi:{name:"\u5947\u827a",file:"qiyi.png"},tudou:{name:"\u571f\u8c46",file:"tudou.png"},sina:{name:"\u65b0\u6d6a",file:"sina.png"},sohu:{name:"\u641c\u72d0",file:"sohu.png"},ifeng:{name:"\u51e4\u51f0",file:"ifeng.png"},letv:{name:"\u4e50\u89c6",file:"letv.png"},"56":{name:"56",file:"56.png"},joy:{name:"\u6fc0\u52a8",file:"joy.png"},cntv:{name:"CNTV",file:"cntv.png"},qq:{name:"\u817e\u8baf",file:"vqq.png"},pptv:{name:"PPTV",
file:"pptv.png"},"null":{name:"\u4f18\u9177",file:"youku.png"}};var a=this;$(".source .check").each(function(){$(this).append('<img src="'+a.filedir+a.config[$(this).attr("name")].file+'" />');SpeedSelector.selectSite($(this).find("input"),!1)});$(".works .p_title span").each(function(){$(this).html('<img src="'+a.filedir+a.config[$(this).attr("name")].file+'" />')});this.selectors=$(".gotoplay .source");this.selectors.length!=0&&this.bind()},bind:function(){var a=this;$.each(this.selectors,function(){var b=
$(this),d=$(this).find(".check"),c=$(this).find(".other"),e=c.find("li");$(this).click(function(){c.length!=0&&e.length!=0&&(c.css("display")=="none"?a.showother(b,c):a.hideother(b,c));return!1});$(document).bind("click",function(){a.hideother(b,c)});$.each(e,function(){$(this).click(function(){var e=$(this).attr("name"),g=d.attr("name");e!=g&&(d.find("img").attr("src",a.filedir+a.config[e].file),d.attr({title:a.config[e].name,name:e}),c.find(".current").removeClass("current"),$(this).removeClass("hover").addClass("current"),
a.hideother(b,c));var e=$(this).find("label"),g=$(this).parent().parent().parent().parent(),h=g.find(".linkpanels");$.each(h,function(){$(this).css("display","none")});g.find("."+e.attr("id")).css("display","");SpeedSelector.selectSite(e,!0);return!1}).mouseover(function(){var a=$(this).attr("name"),b=d.attr("name");a!=b&&$(this).addClass("hover")}).mouseout(function(){var a=$(this).attr("name"),b=d.attr("name");a!=b&&$(this).removeClass("hover")})})})},showother:function(a,b){a.css("zIndex",10);
b.show()},hideother:function(a,b){a.css("zIndex",5);b.hide()},sortother:function(a){var b=a.find("li");if(!(void 0==b||null==b||b.size()<2)){for(var d,c=0;c<b.length;c++){d=!1;for(var e=b.length-2;e>=c;e--)parseInt($(b[e+1]).find("div").attr("class").substring(11))>parseInt($(b[e]).find("div").attr("class").substring(11))&&(d=b[e+1],b[e+1]=b[e],b[e]=d,d=!0);if(!d)break}c=!1;for(e=0;e<b.length;e++)!c&&$(b[e]).attr("name")=="tudou"&&(c=!0),c&&e<b.length-1&&(d=b[e+1],b[e+1]=b[e],b[e]=d);b.appendTo(a)}},
selectSite:function(a,b){var d=this,c=a.parent().parent().parent().parent().parent().parent();c.find(".p_status span.status").html(a.attr("title"));c.find(".p_ishd span").attr("class","ico__"+a.attr("stype"));c.find(".p_ishd span").attr("title",a.attr("stypename"));a.attr("title").length+a.attr("stype").length==0?c.find(".p_status span.bg").attr("class","bgd"):c.find(".p_status span.bgd").attr("class","bg");if(b){var e={_log_type:2,_log_pos:a.attr("_log_pos"),_log_ct:a.attr("_log_ct"),_log_directpos:8};
sokuClickStat(e)}e=c.find(".linkpanels");$.each(e,function(){if($(this).css("display")!="none"){var a=$(this).find("ul").find("li").find("a");if(a.length>0){var b=$(a[0]).attr("href"),e=$(a[0]).attr("site"),a=c.find(".btnplay_large a");a.attr("href",b);a.attr("site",e);c.find(".p_link_site a").attr("href",b);b=b.indexOf("tudou.com")!=-1||b.indexOf("letv.com")!=-1||b.indexOf("sohu.com")!=-1||b.indexOf("ku6.com")!=-1?"_self":"_blank";a.attr("target",b);b=c.find(".source .other");d.sortother(b)}}})}},
PanelExpand={init:function(){this.handles=$(".linkpanel .handle");this.handles.length!=0&&this.bind()},bind:function(){$.each(this.handles,function(){var a=$(this).parent().parent().find(".panelexpand");a.find("ul.linkpanel li.aim")[0]&&a.show();$(this).click(function(){$(this).toggleClass("handleexpand");a.toggle();$.trim($(this).text())=="\u5168\u90e8"?$(this).html("<span>\u6536\u8d77</span>"):$(this).html("<span>\u5168\u90e8</span>");return!1})})}},PersonWorks={init:function(){$(".item .figure .detail").each(function(){var a=
$(this),b=a.find(".tb ul li"),d=a.find(".workscoll");d&&d.length>0&&$(d[0]).css("display","");b.click(function(){b.removeClass("current");$(this).addClass("current");var a=$.inArray(this,b);d.css("display","none");d.eq(a).css("display","");d.eq(a).find("img").each(function(){$(this).attr("src",$(this).attr("original"))})})})}},DirectPanel={init:function(){this.status="hide";this.handle=$(".dhandle");this.panel=$(".dpanel");this.handle.length&&this.panel.length&&this.bind()},bind:function(){var a=
this;this.handle.click(function(){if(a.status=="hide"){a.panel.show();a.handle.addClass("dhandle_expand");var b=a.handle.find(".button").html().replace("\u67e5\u770b","\u9690\u85cf");a.handle.find(".button").html(b);a.status="show"}else a.panel.hide(),a.handle.removeClass("dhandle_expand"),b=a.handle.find(".button").html().replace("\u9690\u85cf","\u67e5\u770b"),a.handle.find(".button").html(b),a.status="hide"})}},FeedBack={init:function(){this.win=$(".feedwin");this.handle=this.win.find(".handle");
this.handle_hide=this.win.find(".close");if(this.win.length){var a=navigator.userAgent.toLowerCase().match(/ipad|iphone|ipod|itouch/i),b=$(document.body).attr("scrollHeight");a&&this.win.css("top",b-280);this.win.show();"yes"==readCookie("go_change")&&this.handle.addClass("handle_active").attr("title","");this.bind()}},bind:function(){var a=this.win,b="hide",d=function(){a.stop().animate({width:32},"fast","",function(){b="hide"})},c=function(){a.stop().animate({width:312},"fast","",function(){b="show"})};
$("#message").click(function(){$("#message").attr("value","");$("#message").css("color","#000000");$(this).unbind("click")});this.handle_hide.click(function(){$(".feedwin .feed .like").removeClass("selected");$(".feedwin .feed .unlike").removeClass("selected");$(".feedwin  .feed .step3").css("display","none");$("#state").attr("value","");$("#message").attr("value","\u503e\u542c\u60a8\u7684\u5efa\u8bae(100\u5b57\u4ee5\u5185)");$("#message").css("color","#909090");$("#message").click(function(){$("#message").attr("value",
"");$("#message").css("color","#000000");$(this).unbind("click")});$(".feedwin .handle").click();$(".feedwin").find(".feed").hide();writeCookie("go_change","yes",12)});this.handle.click(function(){$(".feedwin").find(".feed").toggle();$.each($(".feedwin .step"),function(){$(this).css("display","block")});$(this).addClass("handle_active").attr("title","");b=="show"?d():c();$(".feedwin .feed .like").removeClass("selected");$(".feedwin .feed .unlike").removeClass("selected");$(".feedwin  .feed .step3").css("display",
"none");$("#message").css("color","#909090");$("#message").attr("value","\u503e\u542c\u60a8\u7684\u5efa\u8bae(100\u5b57\u4ee5\u5185)");$("#state").attr("value","");$("#message").click(function(){$("#message").attr("value","");$("#message").css("color","#000000");$(this).unbind("click")});$(".feedwin .feed  .input button").html("\u63d0\u4ea4");$(".feedwin .feed  .input button").unbind("click");$(".feedwin .feed  .input button").click(function(){commitFeedbak();writeCookie("go_change","yes",12)});writeCookie("go_change",
"yes",12)});$(".feedwin .feed .like").click(function(){$("#state").attr("value",1);$(this).addClass("selected");$(".feedwin .feed .unlike").removeClass("selected")});$(".feedwin .feed .unlike").click(function(){$("#state").attr("value",0);$(this).addClass("selected");$(".feedwin .feed .like").removeClass("selected")})},onunload:function(){var a=navigator.userAgent.toLowerCase();(/chrome/.test(a)||!/safari/.test(a))&&a.indexOf("gecko")>-1?document.documentElement.scrollWidth==0&&this.clearCookie():
(window.event.screenX-window.screenLeft>document.documentElement.scrollWidth-20&&window.event.clientY<0||window.event.altKey)&&this.clearCookie()},clearCookie:function(){writeCookie("go_change","no",24);writeCookie("go_out","no",24)},clear:function(){var a=$("#session_mark").val();if(a){var b=readCookie("session_mark");if($.trim(b)==""||a!=b)writeCookie("go_change","no",24),writeCookie("go_out","no",24),writeCookie("session_mark",a,24)}}},ViewPoints={init:function(){this.viewpoints=$(".viewpoint");
this.viewpoints.length!=0&&this.bind()},bind:function(){$.each(this.viewpoints,function(){var a=$(this).find(".handle"),b=$(this).find(".panel");$(document).bind("click",function(){b.hide()});a.click(function(){b.toggle();return!1})})}};
function commitFeedbak(){if($("#state").attr("value")!="1"&&$("#state").attr("value")!="0")return alert("\u8bf7\u9009\u62e9\u662f\u5426\u559c\u6b22"),!1;var a="";$("#message").attr("value")!="\u503e\u542c\u60a8\u7684\u5efa\u8bae(100\u5b57\u4ee5\u5185)"&&(a=$("#message").attr("value"));if(a.length>100)return alert("\u60a8\u7684\u8f93\u5165\u5df2\u7ecf\u8d85\u51fa\u9650\u5236\uff0c\u8bf7\u4fee\u6539\uff01"),!1;$.ajax({url:"/service/feedback",type:"POST",data:"keyword="+encodeURI($("#keyword").val())+
"&state="+$("#state").val()+"&url="+encodeURI(window.location.href)+"&message="+encodeURI(a)});$(".feedwin .feed  .input button").html("\u6b63\u5728\u63d0\u4ea4");$(".feedwin .feed  .input button").unbind("click");$.each($(".feedwin .step"),function(){$(this).css("display","none")});$(".feedwin  .feed .step3").css("display","block");$(".feedwin .feed .like").removeClass("selected");$(".feedwin .feed .unlike").removeClass("selected");$("#state").attr("value","");$("#message").attr("value","\u503e\u542c\u60a8\u7684\u5efa\u8bae(100\u5b57\u4ee5\u5185)");
$("#message").css("color","#909090");$("#message").click(function(){$("#message").attr("value","");$("#message").css("color","#000000");$(this).unbind("click")});setTimeout(function(){$(".feedwin .handle").click();$(".feedwin").find(".feed").hide()},500)}function ltrim(a){return a.replace(/^(\s*|\u3000*)/,"")}function rtrim(a){return a.replace(/(\s*|\u3000*)$/,"")}function trim(a){return ltrim(rtrim(a))}var library=0,result_count=0;
function dosearch(a){if(trim(a.keyword.value.replace(/[\/_]/g," "))=="")return a.keyword.value="",alert("\u5173\u952e\u8bcd\u4e0d\u80fd\u4e3a\u7a7a"),a.keyword.focus(),!1;var b=a.from.value,d=encodeURIComponent(a.keyword.value.replace(/[\/_]/g," "));if(a.socondition&&a.socondition[1].id=="outer"&&a.socondition[1].checked)a="/v?keyword="+d,b>0&&(a+="&from="+b);else{(b=a.searchdomain.value)||(b="http://www.soku.com");var c=a.sbts;a.searchType.value=="bar"&&c!=void 0&&c.value!=""&&(d=d+"_sbt_"+c.value);
a=b+"/search_"+a.searchType.value+"/q_"+d}location.href=a;return!1}function donewsearch(a){if(trim(a.keyword.value.replace(/[\/_]/g," "))=="")return a.keyword.value="",alert("\u5173\u952e\u8bcd\u4e0d\u80fd\u4e3a\u7a7a"),a.keyword.focus(),!1;a="/v?keyword="+encodeURIComponent(a.keyword.value.replace(/[\/_]/g," "));location.href=a;return!1}
function checkTextArea(a){obj=document.getElementById("message");if(obj.value.length>a)return alert("\u60a8\u7684\u8f93\u5165\u5df2\u7ecf\u8d85\u51fa\uff1a"+a+" \u9650\u5236"),!1;return!0}
function search_show(a,b,d){document.getElementById(a+"SearchType").value=b;document.getElementById(a+"Sel").style.display="none";document.getElementById(a+"Slected").innerHTML=d.innerHTML;document.getElementById(a+"q").focus();var d=document.getElementById("soswitch"),c=document.getElementById("sorelated"),e=document.getElementById("searchextend0");if(e!=void 0&&b=="bar"&&a=="head"){e.style.display="block";if(c)c.style.display="none";if(d)d.style.display="none"}else if(e!=void 0&&a=="head"){e.style.display=
"none";if(c)c.style.display="";if(d)d.style.display=""}e=document.getElementById("searchextend1");if(e!=void 0&&(b=="video"||b=="playlist")&&a=="head"){if(e.style.display="block",c)c.style.display="none"}else if(e!=void 0&&a=="head"&&(e.style.display="none",c))c.style.display="";d=document.getElementById("searchextend2");if(e!=void 0&&b=="user"&&a=="head"){if(d.style.display="block",c)c.style.display="none"}else if(e!=void 0&&a=="head"&&(d.style.display="none",c))c.style.display="";try{window.clearTimeout(timer)}catch(f){}return!1}
function csbt(a,b){a.value==b.value?(a.checked=!1,b.value="bar"):b.value=a.value}function drop_mouseover(){try{window.clearTimeout(timer)}catch(a){}}function drop_mouseout(a){$(a+"Sel").style.display=="block"&&(timer=setTimeout("drop_hide('"+a+"')",1E3))}function drop_hide(a){$(a+"Sel").style.display="none"}
function showEpisode(a,b){for(var d=0;d<b;d++)a==d?($("index_"+d).addClassName("current"),$("items"+d).addClassName("current").style.display=""):($("index_"+d).removeClassName("current"),$("items"+d).removeClassName("current").style.display="none")}function clicklog(a,b){if(!a)return!1;var d=new Image;b||(b="");d.src="http://log.so.youku.com/click?log_type=soku_click&type=video&url="+encodeURIComponent(a)+"&keyword="+b+"&source=soku"}var _glogParam={site:1};
function sokuClickStat(a,b){if($(a).attr("needstat")!="f"){var d=[],c=!1,e;if(a.nodeType){if($(a).attr("_log_type"))d.push("?type="+$(a).attr("_log_type"));else return;$(a).attr("_log_pos")&&d.push("&pos="+$(a).attr("_log_pos"));$(a).attr("_log_ct")&&d.push("&ct="+$(a).attr("_log_ct"));$(a).attr("_log_directpos")&&d.push("&directpos="+$(a).attr("_log_directpos"));$(a).attr("_log_url")&&(e=encodeURIComponent($(a).attr("_log_url")),c=!0)}else{if(a._log_type)d.push("?type="+a._log_type);else return;
a._log_pos&&d.push("&pos="+a._log_pos);a._log_ct&&d.push("&ct="+a._log_ct);a._log_directpos&&d.push("&directpos="+a._log_directpos);a._log_url&&(e=encodeURIComponent(a._log_url),c=!0)}!c&&a.href&&(e=encodeURIComponent(a.href));e&&!e.match(/^javascript(.*)/i)&&d.push("&url="+e);a.keyword?d.push("&keyword="+a.keyword):_glogParam.keyword&&d.push("&keyword="+_glogParam.keyword);_glogParam.site&&d.push("&site="+_glogParam.site);_glogParam.curpage&&d.push("&curpage="+_glogParam.curpage);d.push("&rand"+
Math.round(Math.random()*2147483647));d="http://lstat.youku.com/sokuClick.php"+d.join("");c=new Image;c.src=d;c.onload=function(){};b&&clicklog(e,_glogParam.keyword)}}var winList=null,winVideo=null;
function openVideo(a,b){var d=window.outerWidth||findsize("width"),c=window.outerHeight-165||findsize("height"),e=window.screenLeft||window.screenX||0,f=window.screenTop-100||window.screenY;document.all&&(c+=125);d="left="+((e-8>0?e-8:0)+165)+", top="+f+", location=yes, scrollbars=yes, resizable=yes, toolbar=yes, menubar=yes, directories=yes, status=yes, copyhistory=no, width="+(d-180)+", height="+c;if(winList==null||winList=="undefined")winList=document.createElement("iframe"),winList.id="winList";
if(a)winList.setAttribute("frameborder","no"),winList.setAttribute("border","0"),winList.setAttribute("scrolling","0"),document.body.appendChild(winList),document.body.style.marginLeft="165px",winList.src=a;winVideo=window.open(b,"soVideo",d);winVideo.focus()}
function findsize(a){var b=0,d=0;if(window.innerWidth)b=window.innerWidth;else if(document.body&&document.body.clientWidth)b=document.body.clientWidth;if(window.innerHeight)d=window.innerHeight;else if(document.body&&document.body.clientHeight)d=document.body.clientHeight;if(document.documentElement&&document.documentElement.clientHeight&&document.documentElement.clientWidth)d=document.documentElement.clientHeight,b=document.documentElement.clientWidth;if(a=="width")return b;else if(a=="height")return d}
function focusWin(){document.all||this.blur();try{winVideo.focus()}catch(a){}}String.prototype.GetValue=function(a){a=this.substr(this.indexOf("?")+1).match(RegExp("(^|&)"+a+"=([^&]*)(&|$)"));if(a!=null)return unescape(a[2]);return null};
function sokuHz(){var a=location.href,b=a.GetValue("cp"),a=a.GetValue("cpp");if(null!=b&&b!=""&&"undefined"!=b&&null!=a&&a!=""&&"undefined"!=a)b="http://hz.youku.com/red/redir.php?tp=1&cp="+b+"&cpp="+a,b+="&rand"+Math.round(Math.random()*2147483647),a=new Image,a.src=b,a.onload=function(){}}
function readCookie(a){var b="";a+="=";if(document.cookie.length>0&&(offset=document.cookie.indexOf(a),offset!=-1)){offset+=a.length;end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;b=unescape(document.cookie.substring(offset,end))}return b}function writeCookie(a,b,d){var c="";d!=null&&(c=new Date((new Date).getTime()+d*36E5),c="; expires="+c.toGMTString());document.cookie=a+"="+escape(b)+c}
var VideoWall={init:function(a){this.queue=[];this.points={grade1:[{x:740,y:125,w:16,h:10,f:0.2},{x:51,y:304,w:16,h:10,f:0.2},{x:718,y:239,w:16,h:10,f:0.2},{x:50,y:179,w:16,h:10,f:0.2},{x:25,y:522,w:16,h:10,f:0.2},{x:722,y:525,w:16,h:10,f:0.2}],grade2:[{x:557,y:120,w:32,h:20,f:0.4},{x:722,y:196,w:32,h:20,f:0.4},{x:48,y:350,w:32,h:20,f:0.4},{x:500,y:501,w:32,h:20,f:0.4},{x:244,y:508,w:32,h:20,f:0.4},{x:12,y:206,w:32,h:20,f:0.4},{x:122,y:142,w:32,h:20,f:0.4},{x:715,y:136,w:32,h:20,f:0.4},{x:744,y:375,
w:32,h:20,f:0.4},{x:4,y:371,w:25,h:15,f:0.4},{x:389,y:57,w:35,h:21,f:0.4},{x:290,y:16,w:20,h:12,f:0.4},{x:509,y:531,w:32,h:20,f:0.4},{x:16,y:449,w:32,h:20,f:0.4},{x:700,y:285,w:32,h:20,f:0.4},{x:46,y:457,w:32,h:20,f:0.4},{x:430,y:534,w:32,h:20,f:0.4},{x:722,y:511,w:32,h:20,f:0.4},{x:228,y:129,w:32,h:20,f:0.4},{x:72,y:213,w:25,h:15,f:0.4}],grade3:[{x:141,y:498,w:48,h:30,f:0.6},{x:111,y:107,w:48,h:30,f:0.6},{x:202,y:511,w:48,h:30,f:0.6},{x:397,y:500,w:48,h:30,f:0.6},{x:34,y:124,w:48,h:30,f:0.6},{x:701,
y:381,w:48,h:30,f:0.6},{x:446,y:20,w:16,h:10,f:0.6},{x:189,y:525,w:28,h:18,f:0.6},{x:8,y:331,w:48,h:30,f:0.6},{x:33,y:375,w:48,h:30,f:0.6},{x:694,y:201,w:48,h:30,f:0.6},{x:712,y:347,w:48,h:30,f:0.6},{x:340,y:68,w:16,h:10,f:0.6},{x:731,y:284,w:48,h:30,f:0.6},{x:26,y:479,w:48,h:30,f:0.6},{x:422,y:35,w:25,h:16,f:0.6},{x:36,y:310,w:48,h:30,f:0.6},{x:621,y:509,w:48,h:30,f:0.6},{x:295,y:124,w:48,h:30,f:0.6},{x:462,y:125,w:48,h:30,f:0.6},{x:677,y:507,w:48,h:30,f:0.6}],grade4:[{x:63,y:119,w:64,h:40,f:0.8},
{x:156,y:115,w:64,h:40,f:0.8},{x:262,y:512,w:64,h:40,f:0.8},{x:445,y:507,w:64,h:40,f:0.8},{x:386,y:103,w:64,h:40,f:0.8},{x:497,y:109,w:64,h:40,f:0.8},{x:245,y:107,w:64,h:40,f:0.8},{x:540,y:501,w:64,h:40,f:0.8},{x:591,y:110,w:64,h:40,f:0.8},{x:333,y:504,w:64,h:40,f:0.8},{x:17,y:222,w:64,h:40,f:0.8},{x:19,y:161,w:64,h:40,f:0.8},{x:707,y:309,w:64,h:40,f:0.8},{x:654,y:116,w:64,h:40,f:0.8},{x:324,y:48,w:26,h:16,f:0.8},{x:698,y:461,w:64,h:40,f:0.8},{x:710,y:165,w:64,h:40,f:0.8}],grade5:[{x:4,y:258,w:80,
h:50,f:1},{x:52,y:488,w:80,h:50,f:1},{x:604,y:507,w:80,h:50,f:1},{x:331,y:96,w:80,h:50,f:1},{x:697,y:234,w:80,h:50,f:1},{x:308,y:37,w:22,h:13,f:1},{x:5,y:402,w:80,h:50,f:1},{x:695,y:408,w:80,h:50,f:1},{x:116,y:512,w:80,h:50,f:1},{x:355,y:77,w:39,h:24,f:1}]};this.readystate=!1;this.readycount=0;this.dom=$("#wall");this.nodes=[];this.mouselock=!0;if(this.dom.length!=0){var b=this;$.getJSON(a,function(a){if(a.data){for(var a=a.data,c=0,e=a.length;c<e;c++)b.queue.push(a[c]);b.bind()}})}},bind:function(){var a=
this,b=[0],d;for(d in this.points)b.push(this.points[d].length);d=5;for(var c=0,e=this.points.grade5.length,f=0,g=this.queue.length;f<g;f++){f+1>e&&(d--,e+=b[d],c=0);if(!this.points["grade"+d])break;var h=this.points["grade"+d][c];if(!h)break;var i=this.queue[f],j=$('<img src="'+i.pic+'" />').css("opacity",0),k=$('<a onclick="sokuClickStat(this);" href="/v?keyword='+encodeURI(i.name)+'" target="_blank" _log_type="5" _log_pos="2"></a>'),i=$('<span class="name"><span class="text">'+i.name+'</span><span class="bg"></span></span>');
k.append(j).append(i);h=$('<div class="node grade'+d+'"></div>').attr({index:f,w:h.w,h:h.h,f:h.f,X:h.x,Y:h.y,z:d}).css({display:"none",width:0,height:0,top:h.y+h.h/2,left:h.x+h.w/2,zIndex:d}).append(k).appendTo(this.dom);this.bindmouse(h);j.load(function(){a.bubble($(this).parent().parent())});this.nodes.push(h);c++}},bubble:function(a){var b=500+1E3*Math.random(),d=parseInt(a.attr("w")),c=parseInt(a.attr("h")),e=parseInt(a.attr("x")),f=parseInt(a.attr("y")),g=parseFloat(a.attr("f")),h=$(a).find("img"),
i=this;a.css("visibility","visible").animate({width:d,height:c,top:f,left:e},b,"easeInExpo",function(){if(!i.readystate&&(i.readycount++,i.readycount>=i.nodes.length))i.readystate=!0,i.mouselock=!1});h.animate({opacity:g},b,"easeInExpo")},bindmouse:function(a){var b=this;a.mouseenter(function(){if(!b.mouselock){var a=$(this),c=parseInt(a.attr("w")),e=parseInt(a.attr("h")),f=parseInt(a.attr("x")),g=parseInt(a.attr("y"));parseFloat(a.attr("f"));parseInt(a.attr("z"));a.stop().css("zIndex",100).animate({width:128,
height:80,top:g-(80-e-6)/2,left:f-(128-c-6)/2,borderWidth:3},200,"easeInExpo",function(){a.addClass("nodemax")});a.find("img").stop().animate({opacity:1},200,"easeInExpo");return!1}}).mouseleave(function(){if(!b.mouselock){var a=$(this),c=parseInt(a.attr("w")),e=parseInt(a.attr("h")),f=parseInt(a.attr("x")),g=parseInt(a.attr("y")),h=parseFloat(a.attr("f")),i=parseInt(a.attr("z"));a.removeClass("nodemax");a.stop().animate({width:c,height:e,top:g,left:f,borderWidth:0},100,"",function(){a.css("zIndex",
i)});a.find("img").stop().animate({opacity:h},100,"");return!1}})},show:function(){this.dom.fadeIn(300)},hide:function(){this.dom.fadeOut(300)},shake:function(){}};
function quietredirect(a){try{hide_referer=window.open("","hide_referer",""),hide_referer.document.writeln("<html>"),hide_referer.document.writeln("<head>"),hide_referer.document.writeln('<meta http-equiv="refresh" content="0;url='+a+'">'),hide_referer.document.writeln("</head>"),hide_referer.document.writeln("<body>"),hide_referer.document.writeln("</body>"),hide_referer.document.writeln("</html>"),hide_referer.document.close()}catch(b){throw window.open(a),"jslog:quietredirect happy exception in sotool_souce.js";
}}jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,d,c,e){return jQuery.easing[jQuery.easing.def](a,b,d,c,e)},easeInQuad:function(a,b,d,c,e){return c*(b/=e)*b+d},easeOutQuad:function(a,b,d,c,e){return-c*(b/=e)*(b-2)+d},easeInOutQuad:function(a,b,d,c,e){if((b/=e/2)<1)return c/2*b*b+d;return-c/2*(--b*(b-2)-1)+d},easeInCubic:function(a,b,d,c,e){return c*(b/=e)*b*b+d},easeOutCubic:function(a,b,d,c,e){return c*((b=b/e-1)*b*b+1)+d},easeInOutCubic:function(a,b,d,c,e){if((b/=e/2)<1)return c/
2*b*b*b+d;return c/2*((b-=2)*b*b+2)+d},easeInQuart:function(a,b,d,c,e){return c*(b/=e)*b*b*b+d},easeOutQuart:function(a,b,d,c,e){return-c*((b=b/e-1)*b*b*b-1)+d},easeInOutQuart:function(a,b,d,c,e){if((b/=e/2)<1)return c/2*b*b*b*b+d;return-c/2*((b-=2)*b*b*b-2)+d},easeInQuint:function(a,b,d,c,e){return c*(b/=e)*b*b*b*b+d},easeOutQuint:function(a,b,d,c,e){return c*((b=b/e-1)*b*b*b*b+1)+d},easeInOutQuint:function(a,b,d,c,e){if((b/=e/2)<1)return c/2*b*b*b*b*b+d;return c/2*((b-=2)*b*b*b*b+2)+d},easeInSine:function(a,
b,d,c,e){return-c*Math.cos(b/e*(Math.PI/2))+c+d},easeOutSine:function(a,b,d,c,e){return c*Math.sin(b/e*(Math.PI/2))+d},easeInOutSine:function(a,b,d,c,e){return-c/2*(Math.cos(Math.PI*b/e)-1)+d},easeInExpo:function(a,b,d,c,e){return b==0?d:c*Math.pow(2,10*(b/e-1))+d},easeOutExpo:function(a,b,d,c,e){return b==e?d+c:c*(-Math.pow(2,-10*b/e)+1)+d},easeInOutExpo:function(a,b,d,c,e){if(b==0)return d;if(b==e)return d+c;if((b/=e/2)<1)return c/2*Math.pow(2,10*(b-1))+d;return c/2*(-Math.pow(2,-10*--b)+2)+d},
easeInCirc:function(a,b,d,c,e){return-c*(Math.sqrt(1-(b/=e)*b)-1)+d},easeOutCirc:function(a,b,d,c,e){return c*Math.sqrt(1-(b=b/e-1)*b)+d},easeInOutCirc:function(a,b,d,c,e){if((b/=e/2)<1)return-c/2*(Math.sqrt(1-b*b)-1)+d;return c/2*(Math.sqrt(1-(b-=2)*b)+1)+d},easeInElastic:function(a,b,d,c,e){var a=1.70158,f=0,g=c;if(b==0)return d;if((b/=e)==1)return d+c;f||(f=e*0.3);g<Math.abs(c)?(g=c,a=f/4):a=f/(2*Math.PI)*Math.asin(c/g);return-(g*Math.pow(2,10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f))+d},easeOutElastic:function(a,
b,d,c,e){var a=1.70158,f=0,g=c;if(b==0)return d;if((b/=e)==1)return d+c;f||(f=e*0.3);g<Math.abs(c)?(g=c,a=f/4):a=f/(2*Math.PI)*Math.asin(c/g);return g*Math.pow(2,-10*b)*Math.sin((b*e-a)*2*Math.PI/f)+c+d},easeInOutElastic:function(a,b,d,c,e){var a=1.70158,f=0,g=c;if(b==0)return d;if((b/=e/2)==2)return d+c;f||(f=e*0.3*1.5);g<Math.abs(c)?(g=c,a=f/4):a=f/(2*Math.PI)*Math.asin(c/g);if(b<1)return-0.5*g*Math.pow(2,10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f)+d;return g*Math.pow(2,-10*(b-=1))*Math.sin((b*e-a)*
2*Math.PI/f)*0.5+c+d},easeInBack:function(a,b,d,c,e,f){f==void 0&&(f=1.70158);return c*(b/=e)*b*((f+1)*b-f)+d},easeOutBack:function(a,b,d,c,e,f){f==void 0&&(f=1.70158);return c*((b=b/e-1)*b*((f+1)*b+f)+1)+d},easeInOutBack:function(a,b,d,c,e,f){f==void 0&&(f=1.70158);if((b/=e/2)<1)return c/2*b*b*(((f*=1.525)+1)*b-f)+d;return c/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+d},easeInBounce:function(a,b,d,c,e){return c-jQuery.easing.easeOutBounce(a,e-b,0,c,e)+d},easeOutBounce:function(a,b,d,c,e){return(b/=e)<1/
2.75?c*7.5625*b*b+d:b<2/2.75?c*(7.5625*(b-=1.5/2.75)*b+0.75)+d:b<2.5/2.75?c*(7.5625*(b-=2.25/2.75)*b+0.9375)+d:c*(7.5625*(b-=2.625/2.75)*b+0.984375)+d},easeInOutBounce:function(a,b,d,c,e){if(b<e/2)return jQuery.easing.easeInBounce(a,b*2,0,c,e)*0.5+d;return jQuery.easing.easeOutBounce(a,b*2-e,0,c,e)*0.5+c*0.5+d}});
(function(a){a.fn.lazyload=function(b){var c={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};b&&a.extend(c,b);var e=this;"scroll"==c.event&&a(c.container).bind("scroll",function(){var b=0;e.each(function(){if(!a.abovethetop(this,c)&&!a.leftofbegin(this,c))if(!a.belowthefold(this,c)&&!a.rightoffold(this,c))a(this).trigger("appear");else if(b++>c.failurelimit)return!1});var d=a.grep(e,function(a){return!a.loaded});e=a(d)});this.each(function(){var b=this;void 0==a(b).attr("original")&&
a(b).attr("original",a(b).attr("src"));"scroll"!=c.event||void 0==a(b).attr("src")||c.placeholder==a(b).attr("src")||a.abovethetop(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.rightoffold(b,c)?(c.placeholder?a(b).attr("src",c.placeholder):a(b).removeAttr("src"),b.loaded=!1):b.loaded=!0;a(b).one("appear",function(){this.loaded||a("<img />").bind("load",function(){a(b).hide().attr("src",a(b).attr("original"))[c.effect](c.effectspeed);b.loaded=!0}).attr("src",a(b).attr("original"))});"scroll"!=c.event&&
a(b).bind(c.event,function(){b.loaded||a(b).trigger("appear")})});a(c.container).trigger(c.event);return this};a.belowthefold=function(b,c){return(c.container===void 0||c.container===window?a(window).height()+a(window).scrollTop():a(c.container).offset().top+a(c.container).height())<=a(b).offset().top-c.threshold};a.rightoffold=function(b,c){return(c.container===void 0||c.container===window?a(window).width()+a(window).scrollLeft():a(c.container).offset().left+a(c.container).width())<=a(b).offset().left-
c.threshold};a.abovethetop=function(b,c){return(c.container===void 0||c.container===window?a(window).scrollTop():a(c.container).offset().top)>=a(b).offset().top+c.threshold+a(b).height()};a.leftofbegin=function(b,c){return(c.container===void 0||c.container===window?a(window).scrollLeft():a(c.container).offset().left)>=a(b).offset().left+c.threshold+a(b).width()};a.extend(a.expr[":"],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})",
"right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"});var b=readCookie("SOKUSESSID");a.trim(b)==""&&a.getJSON("http://lstat.youku.com/sck.php?jsoncallback=?",function(b){a.trim(b.YOUKUSESSID)!=""&&writeCookie("SOKUSESSID",b.YOUKUSESSID,8640)});a("body a").each(function(b,c){try{var e=a(c).attr("href");if(e.indexOf("tudou.com")!=-1||e.indexOf("letv.com")!=-1||e.indexOf("sohu.com")!=-1||e.indexOf("ku6.com")!=-1)a(c).attr("href",
"javascript:quietredirect('"+e+"');"),a(c).attr("target","_self")}catch(f){}})})(jQuery);

