var writeCookies=function(a,b,c){try{"number"==typeof c&&(c={exp:c});var d="object"==typeof c?c:{},e=new Date,f=d.exp?d.exp:1,g=d.path?d.path:"/",h=d.domain?d.domain:null,i=d.secure?d.secure:!1;f!=null&&f>=0&&e.setTime(e.getTime()+f*24*60*60*1*1e3),document.cookie=a+"="+b+(f==null||f<0?f==-1?"; expires=-1":"":"; expires="+e.toGMTString())+(g==null?"":"; path="+g)+(h==null?"":"; domain="+h)+(i==!0?"; secure":"")}catch(j){}},readCookies=function(a){try{var b=document.cookie.split("; ");for(var c=0;c<b.length;c++){var d=b[c].split("=");if(a==d[0])return d.length>1?unescape(d[1]):""}return""}catch(e){}},lvs=function(a,b){var c=jQuery,d=c(".taglist");a==2?(d.find("span")[0].className="ltA",d.find("span")[1].className="lzB"):(d.find("span")[0].className="ltB",d.find("span")[1].className="lzA"),writeCookies("lvs",a,1)},lvsRead=function(){var a=jQuery,b=a(".taglist"),c=readCookies("lvs")||2;c==1?jQuery("#lzA").click():jQuery("#ltA").click()};jQuery(function(a){function b(a){var b=jQuery("#"+a+" .vPic"),c;b.each(function(a){var b=jQuery(this);b.hover(function(){b.css("z-index",1e3),c=setTimeout(function(){b.find(".popInfo").attr("style","display:block;")},600)},function(){clearTimeout(c),b.css("z-index",1),b.find(".popInfo").attr("style","display:none")})})}b("videoData"),a(".shLay").live("click",function(){a("#seaKey").hide(),a(this).removeClass().addClass("hdLay")}),a(".hdLay").live("click",function(){a("#seaKey").show(),a(this).removeClass().addClass("shLay")})}),jQuery(function(){jQuery("#lzA").click(function(){var a=jQuery;a("#videoData").removeClass("jsonPP").addClass("jsonPT")}),jQuery("#ltA").click(function(){var a=jQuery;a("#videoData").removeClass("jsonPT").addClass("jsonPP")}),lvsRead()})