try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}(function(){var c=this,h=c.JUI,g=c.$,b=1,f="_JUI_"+(+new Date),d=JUI=c.JUI=c.$=function(i,j){if(i==c){return d.Window?new d.Window(i):c}if(d.Element){return d.Element(i,false)}return d.type(i)==="string"?document.getElementById(i.replace(/^#/,"")):i};var a={initialize:function(n){n=n||{};var j=n.initialize;var i=n.legacy;var m=n.name||JUI.name;var l=j||i;var k=n.protect;var o=n.afterImplement||function(){};l.constructor=this.initialize;l.$family={name:m.toLowerCase()};if(i&&j){l.prototype=i.prototype}l.prototype.constructor=l;l.prototype.$family=l.$family;var p=function(s,q,t,r){if(!k||r||!s.prototype[q]){s.prototype[q]=t}o.call(s,q,t);return s};l.alias=function(s,q,t){if(typeof s=="string"){if((s=this.prototype[s])){return p(this,q,s,t)}}for(var r in s){this.alias(r,s[r],q)}return this};l.genericize=function(r,q){if(typeof r=="string"){if((!q||!this[r])&&typeof this.prototype[r]=="function"){this[r]=function(){var t=Array.prototype.slice.call(arguments);return this.prototype[r].apply(t.shift(),t)}}return}for(var s=0;s<r.length;s++){this.genericize(r[s],q)}return this};l.implement=function(r,q,t){if(typeof r=="string"){return p(this,r,q,t)}for(var s in r){p(this,s,r[s],q)}return this}},genericize:function(i,j){i&&i.genericize(j)},implement:function(k,j){var i=k.length;while(i--){k[i].implement(j)}}};d.Native=a;(function(){var j={Array:Array,Boolean:Boolean,Date:Date,Function:Function,Number:Number,RegExp:RegExp,String:String,JUI:d};for(var o in j){a.initialize({name:o,initialize:j[o],protect:true})}var m={Array:["concat","indexOf","join","lastIndexOf","pop","push","reverse","shift","slice","sort","splice","toString","unshift","valueOf"],String:["charAt","charCodeAt","concat","indexOf","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","valueOf"]};for(var l in m){for(var k=m[l].length;k--;){a.genericize(c[l],m[l])}}})();d.name="jui";d.version="1.0.2.0";d.type=function(i){if(i==undefined){return false}if(i.$family){return(i.$family.name=="number"&&!isFinite(i))?false:i.$family.name}if(i.nodeName){switch(i.nodeType){case 1:return"element";case 3:return(/\S/).test(i.nodeValue)?"textnode":"whitespace"}}else{if(typeof i.length=="number"){if(i.callee){return"arguments"}else{if(i.item){return"collection"}}}}return typeof i};d.empty=function(){};d.noConfilict=function(i){c.$=g;i&&(c.JUI=h);return this};d.extend=function(m,k){if(!k){throw"Failed! Inherit from a null object"}var i=k.prototype,l=function(){};l.prototype=i;var j=new l();m.prototype=j;j.constructor=m;m.superclass=i;if(k!=Object&&i.constructor==Object.prototype.constructor){i.constructor=k}return m};d.now=function(){return +new Date};d.getUid=(c.ActiveXObject)?function(i){return(i[f]||(i[f]=[b++]))[0]}:function(i){return i[f]||(i[f]=b++)}})();(function(b){var a=(function(){var l={},o={},h={};nthRE=/^(?:(?:([-]?\d*)(n{1}))?([-+]?\d*)|(odd|even))$/,re=/((?:[_a-zA-Z][\w-]*)|\*)|(?:#([\w-]+))|(?:\.([\w-]+))|(?:\[([a-z]+\w*)+([~\|\^\$\*!]?=)?['"]?([^\]]*?)["']?\])|(?::([\-\w]+)(?:\(['"]?(.+?)["']?\))*)|(?:\s*((?:[>+~\s,])|$)\s*)/g;(function(){var r=document.createElement("div"),s=(new Date()).getTime();r.innerHTML='<a name="'+s+'" class="€ b"></a>';o.qsa=!!(r.querySelectorAll&&r.querySelectorAll(".€").length)})();function d(s){var r=b.getUid(s);return(l[r])?null:(l[r]=true)}function i(r){return r.replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&")}function k(r){return{combinator:r||" ",tag:"*",id:null,classes:[]}}function g(v){if(h[v]){return h[v]}var u=[],y=[],r,t,x,w=sli=ci=ai=pi=0;r=k();re.lastIndex=0;while(t=re.exec(v)){if(t[1]){r.tag=t[1].toUpperCase()}else{if(t[2]){r.id=t[2]}else{if(t[3]){r.classes[ci++]=t[3]}else{if(t[9]){y[w++]=r;if(t[9]==","){u[sli++]=y;y=[];w=0;x=null}else{x=t[9]}r=k(x);ci=ai=pi=0}else{break}}}}}y[w++]=r;u[sli++]=y;return h[v]=u}var f={" ":function(s,t,v,x){var u,y,w=0,r=v.length;u=t.getElementsByTagName(s);if(x){while(y=u[w++]){y.nodeType==1&&x(y)&&(v[r++]=y)}}else{while(y=u[w++]){y.nodeType==1&&(v[r++]=y)}}return v}};var j={" ":function(s,r){while(s=s.parentNode){if(s==r||(r==document&&s.documentElement)){return true}}return false}};var c={klass:function(s,t){var y,v=0,u=[],w=0,x;x=new RegExp("(?:^|\\s+)"+i(t)+"(?:\\s+|$)");while(y=s[v++]){x.test(y.className)&&(u[w++]=y)}return u}};function p(v,w){var y=[],z,x=0,A,C=d,s=v.combinator,r=v.id,B=v.tag,u=v.classes;if(r){var t=document.getElementById(r);if(B=="*"||t.tagName==B){while(cxt=w[x++]){if(j[s](t,cxt)){y=[t];break}}}}else{if(B){x=0;l={};if(w.length==1){C=false}while(cxt=w[x++]){y=f[s](B,cxt,y,C)}}}if(u.length>(x=0)){while(A=u[x++]){y=c.klass(y,A)}}return y}function q(t,u){var s=0,r;l={};nthNodesCache={};while(r=t[s++]){u=p(r,u)}return u}function m(r,w){var u=[],t=0,v,s=g(r);while(v=s[t++]){if(u.length>0){u=q(v,w).concat(u)}else{u=q(v,w)}}return u}function n(w,s){var u=0,v,t,x,r;s=s[0][0];if(s.id&&s.id!=w.id){return false}if(s.classes.length>(u=0)){while(v=s.classes[u++]){if(!(new RegExp("(?:^|\\s+)"+i(v)+"(?:\\s+|$)")).test(w.className)){return false}}}return true}return function(r,s){if(!r||typeof r!=="string"){return[]}s=s||document;if(s.nodeType!==1&&s.nodeType!==9){return[]}if(o.qsa){try{return s.querySelectorAll(r)}catch(t){return m(r,[s])}}else{return m(r,[s])}}})();b.Selector=a})(JUI);(function(f){var l={};(function(){var o=document.createElement("div"),q="_jui_"+(new Date()).getTime(),n;o.innerHTML='   <link/><table></table><a name="'+q+'" class="€ b" href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select>';l={opacity:(typeof o.style.opacity)!=="undefined"?true:false,innerText:(typeof o.innerText)!=="undefined"?true:false,leadingWhitespace:o.firstChild&&o.firstChild.nodeType==3,cssFloat:!(o.style.cssFloat===undefined),cloneEvent:false,tbody:false,htmlSerialize:false};if(o.getElementsByTagName){l.tbody=!!o.getElementsByTagName("tbody").length;l.htmlSerialize=!!o.getElementsByTagName("link").length}if(o.attachEvent&&o.fireEvent){o.attachEvent("onclick",function p(){l.cloneEvent=true;o.detachEvent("onclick",p)});o.cloneNode(true).fireEvent("onclick")}})();function j(n){return n.replace(/-\D/g,function(o){return o.charAt(1).toUpperCase()})}function d(n){return n.replace(/[A-Z]/g,function(o){return("-"+o.charAt(0).toLowerCase())})}var g={"class":"className","for":"htmlFor","float":l.cssFloat?"cssFloat":"styleFloat",text:l.innerText?"innerText":"textContent"},k={left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"},i={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};(function(){var z=["Top","Right","Bottom","Left"],q="margin",n="padding",y="border",s=z.length,v;while(v=z[--s]){var x=q+v,w=n+v,u=y+v;i[q][x]=k[x]="@px";i[n][w]=k[w]="@px";i[y][u]=k[u]="@px @ rgb(@, @, @)";var r=u+"Width",t=u+"Style",o=u+"Color";i[u]={};i.borderWidth[r]=i[u][r]=k[r]="@px";i.borderStyle[t]=i[u][t]=k[t]="@";i.borderColor[o]=i[u][o]=k[o]="rgb(@, @, @)"}})();var b={compact:true,nowrap:true,ismap:true,declare:true,noshade:true,checked:true,disabled:true,readonly:true,multiple:true,selected:true,noresize:true,defer:true};var c=function(n,u){if(u!==false){if(f.type(n)!=="string"){var o=[];for(var t in n){o.push(new c(t,n[t]))}return new a(o)}var s=m(document.createElement(n));if(u){if(u.style){s.css(u.style);delete u.style}if(u.html){s.html(u.html)}}s.attr(u);return s}if(f.type(n)!=="string"){return f.type(n)=="collection"?new a(n,false):m(n)}var s,q,r=/^#([\w-]+)$/;if(r.test(n)||!f.Selector){return m(document.getElementById(n.replace("#","")))}else{q=f.Selector(n);return new a(q,false)}};var a=function(o){if(o&&o.$family!=="elements"){var n=0,s=[];while((s[n]=m(o[n++]))){}s.length--;var q=a.prototype;for(var r in q){s[r]=q[r]}o=s}return o};function m(n){if(n&&!n.$family&&!(/^object|embed$/i).test(n.tagName)){var o=c.prototype;for(var q in o){n[q]=o[q]}}return n}f.Native.initialize({name:"Element",initialize:c,protect:true,afterImplement:function(n,o){if(Array[n]){return}a.implement(n,function(){var p=[],t=true;for(var r=0,q=this.length;r<q;r++){var s=this[r][n].apply(this[r],arguments);p.push(s);if(t){t=(f.type(s)=="element")}}return(t)?new a(p,false):p})}});f.Native.initialize({name:"Elements",initialize:a,protect:true});function h(t){var u=/^<(\w+)\s*\/?>$/.exec(t);if(u){return document.createElement(u[1])}var v=[],q=[],n=document.createElement("div");t=t.replace(/(<(\w+)[^>]*?)\/>/g,function(y,z,x){return x.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?y:z+"></"+x+">"});var w=t.replace(/^\s+/,"").substring(0,10).toLowerCase();var p=!w.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!w.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||w.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!w.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!w.indexOf("<td")||!w.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!w.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!l.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];n.innerHTML=p[1]+t+p[2];while(p[0]--){n=n.lastChild}if(l.tbody){var o=/<tbody/i.test(t),s=!w.indexOf("<table")&&!o?n.firstChild&&n.firstChild.childNodes:p[1]=="<table>"&&!o?n.childNodes:[];for(var r=s.length-1;r>=0;--r){if((s[r].tagName=="TBODY")&&!s[r].childNodes.length){s[r].parentNode.removeChild(s[r])}}}if(!l.leadingWhitespace&&/^\s/.test(t)){n.insertBefore(document.createTextNode(t.match(/^\s*/)[0]),n.firstChild)}return n.firstChild}c.implement({hasClass:function(n){return(" "+this.className+" ").indexOf(" "+n+" ")>-1},addClass:function(n){if(!this.hasClass(n)){this.className=this.className===""?n:(this.className+" "+n)}return this},removeClass:function(n){this.className=this.className.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1");return this},setStyle:function(r,s){if(r=="opacity"){if(l.opacity){this.style.opacity=s/100}else{this.style.filter=(this.style.filter||"").replace(/alpha\([^)]*\)/,"")+(s+""=="NaN"?"":"alpha(opacity="+s+")");this.zoom=1}return}r=g[r]||j(r);var q=f.type(s);if(q!="string"){s=(q!="array"&&q!="arguments")?[s]:s;var n=(k[r]||"@").split(" "),p=n.length,o;while(p--){o=s[p];if(!(o===0||o)){n[p]=""}else{n[p]=f.type(o)=="number"?n[p].replace("@",Math.round(o)):o}}s=n.join(" ")}else{if(s==""+Number(s)){s=Math.round(s)}}try{this.style[r]=s}catch(t){}return this},getStyle:function(q){if(q=="opacity"){if(l.opacity){return(this.style.opacity=="")?100:this.style.opacity*100}else{return this.style.filter&&this.style.filter.indexOf("opacity=")>=0?parseFloat(this.style.filter.match(/opacity=([^)]*)/)[1]):100}}q=g[q]||j(q);var n=this.style[q];if(!(n===0||n)){n=[];for(var o in i){if(q!=o){continue}for(var p in i[o]){n.push(this.getStyle(p))}return n.join(" ")}if(this.currentStyle){return this.currentStyle[q]}var r=this.getDocument().defaultView.getComputedStyle(this,null);return(r)?r.getPropertyValue([d(q)]):null}return n},css:function(n,o){if(f.type(n)=="object"){for(var q in n){this.setStyle(q,n[q])}return this}if(o===undefined){return this.getStyle(n)}else{this.setStyle(n,o);return this}},getProperty:function(n){var o=g[n]||n;var p=(this[o]===undefined)?this.getAttribute(n,2):this[o];return(b[n])?!!p:(o)?p:p||null},setProperty:function(n,q){var p=g[n]||n;if(p&&b[p]){q=!!q}var o=/href|src|style/.test(p);(p in this&&!o)?this[p]=q:this.setAttribute(n,""+q);return this},attr:function(n,p){if(f.type(n)=="object"){for(var o in n){this.setProperty(o,n[o])}return this}if(p===undefined){return this.getProperty(n)}else{this.setProperty(n,p);return this}},dimension:function(n){if(!(n===0||n)){return{width:this.offsetWidth,height:this.offsetHeight}}if(n.width!==undefined){this.css("width",n.width)}if(n.height!==undefined){this.css("height",n.height)}return this},position:function(r){if(r===undefined){if(this.parentNode===null||this.style.display=="none"){return false}if(this.getBoundingClientRect){box=this.getBoundingClientRect();var o=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var p=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);return{x:box.left+p,y:box.top+o}}else{if(document.getBoxObjectFor){box=document.getBoxObjectFor(this);var n=(this.style.borderLeftWidth)?parseInt(this.style.borderLeftWidth):0;var q=(this.style.borderTopWidth)?parseInt(this.style.borderTopWidth):0;r=[box.x-n,box.y-q]}else{r=[this.offsetLeft,this.offsetTop];parent=this.offsetParent;if(parent!=this){while(parent){r[0]+=parent.offsetLeft;r[1]+=parent.offsetTop;parent=parent.offsetParent}}if(this.style.position=="absolute"){r[0]-=document.body.offsetLeft;r[1]-=document.body.offsetTop}}}if(this.parentNode){parent=this.parentNode}else{parent=null}while(parent&&parent.tagName!="BODY"&&parent.tagName!="HTML"){r[0]-=parent.scrollLeft;r[1]-=parent.scrollTop;if(parent.parentNode){parent=parent.parentNode}else{parent=null}}return{x:r[0],y:r[1],left:r[0],top:r[1]}}if(r.x!==undefined){this.css("left",r.x)}if(r.y!==undefined){this.css("top",r.y)}return this}});c.implement({getDocument:function(){return this.ownerDocument},getElement:function(n){var o=[];if(f.Selector){o=f.Selector(n,this)}else{o=this.getElementsByTagName(n)}return o[0]?new c(o[0],false):null},getElements:function(n){if(f.Selector){return new a(f.Selector(n,this),false)}else{return new a(this.getElementsByTagName(n),false)}}});c.implement({txt:function(n){if(n===undefined){return this[l.innerText?"innerText":"textContent"]}else{this.html(n.escapeHTML());return n}},html:function(n){if(n!==undefined){this.innerHTML=n}return this.innerHTML},clone:function(o){o=o!==false;if(l.cloneEvent){var n=this.outerHTML;if(!n){var p=this.ownerDocument.createElement("div");p.appendChild(this.cloneNode(o));n=p.innerHTML}return new c(h(n.replace(new RegExp(f.expando+'="(?:\d+|null)"',"g"),"").replace(/^\s*/,"")),false)}else{return new c(this.cloneNode(o),false)}},prepend:function(n){if(this.firstChild){this.insertBefore(n,this.firstChild)}else{this.appendChild(n)}return this},append:function(n){this.appendChild(n);return this},inject:function(n,o){if(o=="top"){this.prependTo(n)}else{this.appendTo(n)}return this},insert:function(n,o){if(o=="after"){this.after(n)}else{this.before(n)}return this},before:function(n){this.parentNode.insertBefore(n,this);return this},after:function(n){var o=this.parentNode;if(this.nextSibling){o.insertBefore(n,this.nextSibling)}else{o.appendChild(n)}return this},dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this},empty:function(){var o=this.childNodes,n;for(var n=o.length;n>0;n--){o[n]&&f(o[n]).destroy()}return this},destroy:function(){this.empty();this.dispose();this.removeEvents();return null}});c.alias({dispose:"remove"});f.Element=c;f.Elements=a})(JUI);(function(a){String.implement({trim:function(){return this.replace(/(^\s+)|(\s+$)/gm,"")}})})(JUI);(function(b){var a=function(f){if(f&&!f.$family){var c=a.prototype;for(var d in c){f[d]=c[d]}}return f};b.Native.initialize({name:"Window",legacy:window.Window?window.Window:null,initialize:a,afterImplement:function(d,c){window[d]=a.prototype[d]=c}});a.implement({dimension:function(f){var d=document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth,c=document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight;if(f){d=f.width===undefined?d:f.width;c=f.height===undefined?c:f.height;window.resizeTo(d,c);return this}return{width:d,height:c}},scrollPos:function(f){if(f){(f.x!==undefined)&&(window.scrollLeft=f.x);(f.y!==undefined)&&(window.scrollTop=f.y);return this}var d=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop;return{x:d,y:c}}});b.Window=a})(JUI);(function(c){var d=[],a={};c.Element&&d.push(c.Element);c.Window&&d.push(c.Window);function b(f,h){var g=f.length;while(g){if(f[g--]==h){return true}}return false}c.Native.implement(d,{cache:function(f,h){var g=c.getUid(this);if(f&&!a[g]){a[g]={}}if(h!==undefined){a[g][f]=h;return h}return f?a[g][f]:g},erase:function(f){var g=c.getUid(this);if(f){if(a[g]){delete a[g][f];f="";for(f in a[g]){break}(!f)&&this.erase()}}else{delete a[g]}return this}});c.Native.implement(d,{addEvent:function(j,i,l,k){var g=this.cache("events")||this.cache("events",{});l=l?l:this;g[j]=g[j]||{keys:[],values:[]};if(!k&&b(g[j].keys,i)){return this}var h=function(m){if(c.Event){m=new c.Event(m)}i.call(l,m)};if(j=="unload"){var f=h;h=function(){self.removeListener("unload",h);f()}}if(this.addEventListener){this.addEventListener(j,h,false)}else{this.attachEvent("on"+j,h)}g[j].keys.push(i);g[j].values.push(h);return this},removeEvent:function(l,k){var j=this.cache("events");if(!j||!j[l]){return this}if(!k){var h=0,g=j[l].keys;while(k=g[h++]){this.removeEvent(l,k)}delete j[l];l="";for(l in j){break}if(!l){this.erase()}else{this.cache("events",j)}return this}var n=-1,h=0,m;while(m=j[l].keys[h]){if(m==k){n=h;break}h++}if(n==-1){return this}j[l].keys.splice(n,1);k=j[l].values.splice(n,1)[0];if(this.removeEventListener){this.removeEventListener(l,k,false)}else{this.detachEvent("on"+l,k)}return this},addEvents:function(f){for(var g in f){this.addEvent(g,f[g])}return this},removeEvents:function(f){if(c.type(f)=="object"){for(var h in f){this.removeEvent(h,f[h])}return this}var g=this.cache("events");if(!g){return this}if(!f){for(var h in g){this.removeEvent(h)}this.erase("events")}else{this.removeEvent(f)}return this},fireEvent:function(k,j,g){var o=this.cache("events");if(!o||!o[k]){return this}var f=0,m=o[k].keys,l,h,n=this;while(l=m[f++]){h=function(i){return function(){i.apply(n,j)}};setTimeout(h(l),g)}return this}})})(JUI);(function(c){var b={"8":"backspace","9":"tab","13":"enter","27":"esc","32":"space","38":"up","40":"down","37":"left","39":"right","46":"delete"};var a=function(d){if(d.$family==="event"){return d}var o=document,j=window,n=d.type;var k=d.target||d.srcElement;while(k&&k.nodeType==3){k=k.parentNode}if(/key/.test(n)){var f=d.which||d.keyCode;var p=b[f];if(n=="keydown"){var h=f-111;if(h>0&&h<13){p="f"+h}}p=p||String.fromCharCode(f).toLowerCase()}else{if(n.match(/(click|mouse|menu)/i)){o=(!o.compatMode||o.compatMode=="CSS1Compat")?o.documentElement:o.body;var m={x:d.pageX||d.clientX+o.scrollLeft,y:d.pageY||d.clientY+o.scrollTop};var g={x:(d.pageX)?d.pageX-j.pageXOffset:d.clientX,y:(d.pageY)?d.pageY-j.pageYOffset:d.clientY};if(n.match(/DOMMouseScroll|mousewheel/)){var l=(d.wheelDelta)?d.wheelDelta/120:-(d.detail||0)/3}var i=(d.which==3)||(d.button==2)}}return(function(r,q){for(var s in q){r[s]=q[s]}return r})(this,{event:d,type:n,page:m,client:g,rightClick:i,wheel:l,target:k,code:f,key:p,shift:d.shiftKey,control:d.ctrlKey,alt:d.altKey,meta:d.metaKey})};c.Native.initialize({name:"Event",initialize:a,protect:true});a.implement({stop:function(){return this.stopPropagation().preventDefault()},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation()}else{this.event.cancelBubble=true}return this},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault()}else{this.event.returnValue=false}return this}});c.Event=a})(JUI);(function(b){var a=function(c){this.events=[];this.name=c};b.Native.initialize({name:"CustomEvent",initialize:a,protect:true});a.implement({fire:function(){var d=[];for(var f=0;f<arguments.length;f++){d.push(arguments[f])}for(var f=0,c=this.events.length;f<c;f++){var g=this.events[f];g[0].call(g[1],this.name,d)}},subscribe:function(d,c){this.events.push([d,c])},clear:function(){this.events=[]}});b.CustomEvent=a})(JUI);(function(f){var h={},a,c=1,b="jui_cb_";var g=function(i){a=i;return this};f.Native.initialize({name:"Loader",initialize:g,protect:true});function d(r){r=r||a||{};var i,k,p="js",q=f.empty,l,o,j;i=r.url;p=r.type;k=r.charset;q=r.callback;o=r.bind;l=r.param;j=r.cache;if(!i||i==""){return}try{if(l&&q){f.Loader[b+c]=function(){q.apply(o,arguments)};if(i.indexOf("?")>-1){i=i+"&cb=JUI.Loader."+b+c}else{i=i+"?cb=JUI.Loader."+b+c}if(!j){i=i+"&r="+Math.random()}c++}var m;if(p=="css"){m=document.createElement("link");m.rel="stylesheet";m.type="text/css";m.href=i}else{m=document.createElement("script");m.src=i;m.type="text/javascript"}k&&(m.charset=k);if(!l&&q){m.onload=function(){q.apply(o,[i,true])};m.onerror=function(){q.apply(o,[i,false])};m.onreadystatechange=function(){if(m.readyState=="loaded"){q.apply(o,[i,true])}}}h[i]=m;document.getElementsByTagName("head")[0].appendChild(m)}catch(n){q(i,false)}}g.implement({load:function(l){if(!l){l=[a]}else{if(f.type(l)!="array"){l=Array.prototype.slice.call(arguments,0)}}var j=0,k;while(k=l[j++]){d(k)}return this},chain:function(k){if(f.type(k)!="array"){k=Array.prototype.slice.call(arguments,0)}if(!k||k.length==0){return}var j=k.shift(),i=this;cb=function(m,n){n.callback(n.url);i.chain(m)};this.load({url:j.url,type:j.type,callback:cb(k,j)})},cancel:function(i){if(!h[i]){return}document.removeChild(h[i]);delete h[i]}});f.Loader=g})(JUI);(function(c){var b={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(f){return b[f]||"\\u00"+Math.floor(f.charCodeAt()/16).toString(16)+(f.charCodeAt()%16).toString(16)}var d={decode:function(f){if(c.type(f)!="string"||!f.length){return null}return(new Function("return "+f+";"))()},encode:function(k){var h=[];switch(c.type(k)){case"undefined":return"undefined";break;case"null":return"null";break;case"number":case"boolean":case"date":case"function":return k.toString();break;case"string":return'"'+k.replace(/[\x00-\x1f\\"]/g,a)+'"';break;case"array":for(var g=0,f=k.length;g<f;g++){h.push(c.JSON.encode(k[g]))}return"["+h.join(",")+"]";break;case"error":case"object":for(var j in k){h.push('"'+j.replace(/[\x00-\x1f\\"]/g,a)+'":'+c.JSON.encode(k[j]))}return"{"+h.join(",")+"}";break;default:return"";break}}};c.JSON=d})(JUI);(function(d){var a={encode:false,decode:false,path:false,domain:false,duration:false,secure:false,document:document};function c(f){for(var g in f){a[g]=f[g]}}var b={write:function(h,i,g){c(g);if(a.encode){i=encodeURIComponent(i)}if(a.domain){i+="; domain="+a.domain}if(a.path){i+="; path="+a.path}if(a.duration){var f=new Date();f.setTime(f.getTime()+a.duration*24*3600000);i+="; expires="+f.toGMTString()}if(a.secure){i+="; secure"}a.document.cookie=h+"="+i;return this},read:function(g,f){c(f);var h=a.document.cookie.match("(?:^|;)\\s*"+g.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")+"=([^;]*)");if(a.decode){return(h)?decodeURIComponent(h[1]):null}else{return(h)?h[1]:null}},remove:function(g,f){c(f);a.duration=-1;b.write(g,"");return this}};d.Cookie=b})(JUI);(function(a){a.browser={};(function(){a.browser={ie:0,opera:0,gecko:0,webkit:0,mobile:null};var c=navigator.userAgent,b;if((/KHTML/).test(c)){a.browser.webkit=1}b=c.match(/AppleWebKit\/([^\s]*)/);if(b&&b[1]){a.browser.webkit=parseFloat(b[1]);if(/ Mobile\//.test(c)){a.browser.mobile="Apple"}else{b=c.match(/NokiaN[^\/]*/);if(b){a.browser.mobile=b[0]}}}if(!a.browser.webkit){b=c.match(/Opera[\s\/]([^\s]*)/);if(b&&b[1]){a.browser.opera=parseFloat(b[1]);b=c.match(/Opera Mini[^;]*/);if(b){a.browser.mobile=b[0]}}else{b=c.match(/MSIE\s([^;]*)/);if(b&&b[1]){a.browser.ie=parseFloat(b[1])}else{b=c.match(/Gecko\/([^\s]*)/);if(b){a.browser.gecko=1;b=c.match(/rv:([^\s\)]*)/);if(b&&b[1]){a.browser.gecko=parseFloat(b[1])}}}}}})()})(JUI);(function(c){function a(g,h){for(var f in h){g[f]=h[f]}return g}function b(f){return f.replace(/\b[a-z]/g,function(g){return g.toUpperCase()})}var d=function(o){var m={onStart:c.empty,onComplete:c.empty,onCancel:c.empty,onEnterFrame:c.empty,fps:50,duration:500,unit:false,link:"ignore",effect:false},f=20,i=null,n=0,j=0,g=0,k=function(q){return q},l=this;m=a(m,o);function h(){var p=(c.now()-n)/m.duration;if(p>=1){l.stopTimer();p=1}p=k(p);l.change(p);m.onEnterFrame(p)}this.change=function(p){return p};this.startTimer=function(p){m=a(m,p);f=Math.round(1000/m.fps);if(m.effect&&c.Fx.Transitions){var q=m.effect.split(":");k=c.Fx.Transitions;k=k[b(q[0])];if(q[1]){k=k["ease"+b(q[1])+(q[2]?b(q[2]):"")]}}n=c.now();try{clearInterval(i)}catch(r){}i=setInterval(h,f);m.onStart()};this.stopTimer=function(){clearInterval(i);m.onComplete()};this.cancelTimer=function(){clearInterval(i);m.onCancel()};return this};c.Native.initialize({name:"Fx",initialize:d,protect:false});c.Fx=d})(JUI);(function(b){var a=function(g,d){var f={},c={},h=b(g);this.constructor.superclass.constructor.apply(this,[d]);this.change=function(j){for(var i in f){h.setStyle(i,Math.round(f[i]+j*c[i]))}};this.start=function(j,i){if(!j){return}for(var k in j){if(b.type(j[k])!=="array"||j[k].length===1||j[k][0]===undefined){f[k]=parseFloat(h.getStyle(k));f[k]=isNaN(f[k])?0:f[k];c[k]=parseFloat(j[k][0]===undefined?j[k]:j[k][1]);c[k]=(isNaN(c[k])?0:c[k])-f[k]}else{f[k]=parseFloat(j[k][0]);f[k]=isNaN(f[k])?0:f[k];c[k]=parseFloat(j[k][1]);c[k]=(isNaN(c[k])?0:c[k])-f[k]}}this.startTimer()}};a=b.extend(a,b.Fx);b.Native.initialize({name:"Fx.Morph",initialize:a,protect:false});b.Fx.Morph=a})(JUI);(function(d){var f={Linear:function(g){return g},Pow:function(h,g){return Math.pow(h,g||6)},Expo:function(g){return Math.pow(2,8*(g-1))},Circ:function(g){return 1-Math.sin(Math.acos(g))},Sine:function(g){return 1-Math.sin((1-g)*Math.PI/2)},Back:function(h,g){g=g||1.618;return Math.pow(h,2)*((g+1)*h-g)},Bounce:function(j){var i;for(var h=0,g=1;1;h+=g,g/=2){if(j>=(7-4*h)/11){i=g*g-Math.pow((11-6*h-11*j)/4,2);break}}return i},Elastic:function(h,g){return Math.pow(2,10*--h)*Math.cos(20*h*Math.PI*(g||1)/3)},Vibration:function(g){return -Math.pow(Math.E,-5*g)*Math.cos(g/18*500)+1},Swing:function(g){return -Math.cos(g*Math.PI)/2+0.5}};var c=["Quad","Cubic","Quart","Quint"],b=0,a;while(a=c[b]){f[a]=function(g){return Math.pow(g,b+2)};b++}d.Fx.Transitions={};for(a in f){d.Fx.Transitions[a]=(function(g){return{easeIn:function(i,h){return f[g](i,h)},easeOut:function(i,h){return 1-f[g](1-i,h)},easeInOut:function(i,h){return(i<=0.5)?f[g](2*i,h)/2:(2-f[g](2*(1-i),h))/2}}})(a)}})(JUI);(function(b){var a=function(j,d,g,k){if(j.length!=d.length){alert("JUI:TabView  参数 [tabs] [views] 包含的element.length不相等");return}this.ops={tabTriggerEvent:"mouseover"};this.mergeOptions(k);for(var h=0,c=j.length;h<c;h++){j[h].attr("jsvalue",h)}this.selectedTabIx=0;var f=this;this.changeTab=function(i){g(j[f.selectedTabIx],j[i]);d[f.selectedTabIx].css("display","none");f.selectedTabIx=i;d[f.selectedTabIx].css("display","block")};j.addEvent(this.ops.tabTriggerEvent,function(l){var i=parseInt(this.attr("jsvalue"));f.changeTab(i)})};b.Native.initialize({name:"TabView",initialize:a,protect:true});a.implement({mergeOptions:function(c){for(var d in c){this.ops[d]=c[d]}}});b.TabView=a})(JUI);(function($){function escapeRegex(str){return str.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")}var Template=function(options){this.dom=options.dom||null;this.delimiters={start:options.startTag||"<%",end:options.endTag||"%>"};this.delimiters.expression=this.delimiters.start+"=";this.tokenRegex=new RegExp("("+escapeRegex(this.delimiters.start)+"=?)|("+escapeRegex(this.delimiters.end)+")","img");return this};$.Native.initialize({name:"Template",initialize:Template,protect:true});function scan(re,str,delimiters){var result,ret=[],first_idx,last_idx=0,first_bit,last_match="";while(result=re.exec(str)){first_idx=result.index;switch(last_match){case delimiters.start:ret.push(str.substring(last_idx,first_idx));break;case delimiters.expression:ret.push("__ret.push("+str.substring(last_idx,first_idx)+");");break;default:ret.push('__ret.push("'+str.substring(last_idx,first_idx).replace(/"/g,'\\"')+'");');break}last_match=result[0];last_idx=re.lastIndex}if(last_idx<str.length-1){ret.push('__ret.push("'+str.substring(last_idx,str.length)+'\\n");')}return ret.join("")}function compile(re,tpl,delimiters){var out=["(function(){return function(context){ var __ret = [];with(context){"],i=0,line,tpl=tpl.replace(/(^\s*<!--\s*[\r\n]*)|(^\s*-->\s*[\r\n]*)/gm,"").replace(/([\r\n]+)/mg,"");out.push(scan(re,tpl,delimiters));out.push('}return __ret.join("");};})();');return out.join("")}Template.implement({render:function(data,dom){var d=$(dom||this.dom);var code=compile(this.tokenRegex,d.innerHTML,this.delimiters);this.process=window.eval(code);d.innerHTML=this.process(data)}});$.Template=Template})(JUI);window.jui_ext=window.$$={};window.DEBUG=true;window.Txt={copySuccess:"复制成功！",copyFail:"被浏览器拒绝！\n请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true'",OK:"确定"};window.log=function(a){if(window.console&&window.console.log&&DEBUG){window.console.log(a)}};(function(b){b.Loader.__loader=new b.Loader();var a=function(f){var c=[];for(var d in f){c.push(encodeURIComponent(d)+"="+encodeURIComponent(f[d]))}return c.join("&")};b.load=function(c,d,f){b.Loader.__loader.load({url:c+"?"+a(d),callback:f,param:true,cache:true})};b.postJSON=function(c,d,f){b.post(c,d,f,"json")}})(JUI);(function(a){a.Window.implement({width:function(b){if(b){this.dimension({width:b})}else{return this.dimension().width}},height:function(b){if(b){this.dimension({height:b})}else{return this.dimension().height}},scroll_left:function(b){if(b){this.scrollPos({x:b})}else{return this.scrollPos().x}},scroll_top:function(b){if(b){this.dimension({y:b})}else{return this.scrollPos().y}}});a.Element.implement({pd:function(f,d,c,b){return this.css({left:f,top:d,width:c,height:b})},w:function(b){if(b){this.dimension({width:b})}else{return this.dimension().width}},h:function(b){if(b){this.dimension({height:b})}else{return this.dimension().height}}})})(JUI);(function(a){a.format=a.empty;a.Element.implement({format:function(d,c){var b=[].slice.call(arguments,0);b.shift();if(a.format[d]){a.format[d].apply(this,b)}else{err("[NOT IMPLEMENT] $.format."+d+"();")}return this}})})(JUI);(function(a){a.format.listVideo=function(b){switch(b){case"1.8":default:a.format.listVideo.v1_8.call(this)}};a.format.listVideo.v1_8=function(){var i=this;var d=i.getElement(".desc");if(d.html().trim()==""){d.hide()}var k=i.getElement(".text");if(!msie){d.css("line-height",20);k.css("padding","2px 4px")}i.hover(function(){this.addClass("hover")},function(){this.removeClass("hover")});var h=IkanPlayer_playList;var b=i.attr("_url");if(b.indexOf("pptv://")!=-1&&!a("#clientbox")){var f=document.createElement("div");f.id="clientbox";document.body.appendChild(f);a(f).css({width:1,height:1,overflow:"hidden"});ocxPlayer.play("",{onReady:function(){try{window._ocxPlayer.isInstalled(4);window.clientInstalled=true}catch(l){window.clientInstalled=false}},playbox:"clientbox"})}var c=i.attr("_playlink");var j=parseInt(i.attr("_linktype"));if(j!=1){i.click(function(){if(b.indexOf("pptv://")!=-1&&msie){if(window.clientInstalled){window.open(b)}else{alert("请先下载PPTV客户端后观看。");window.open("http://jump.pplive.com.cn/pptvsetup_self.exe")}}else{window.open(b)}})}else{var g=h.push({title:i.title,link:c});i.click(function(){if(window.IkanPlayer){IkanPlayer.play(g-1);a(".listVideo li").removeClass("now");this.addClass("now")}})}}})(JUI);(function(a){a.format.leftVideo=function(b){switch(b){case"1.8":default:a.format.leftVideo.v1_8.call(this)}};a.format.leftVideo.v1_8=function(){var i=this;var d=i.getElement(".text");if(!msie){}i.hover(function(){this.addClass("hover")},function(){this.removeClass("hover")});var g=IkanPlayer_playList;var f=i.attr("_url");var h=i.attr("_playlink");var c=parseInt(i.attr("_linktype"));if(c!=1){i.click(function(){window.open(f)})}else{var b=g.push({title:i.title,link:h});i.click(function(){if(window.IkanPlayer){IkanPlayer.play(b-1)}})}}})(JUI);(function(a){a.Element.implement({show:function(){var b=this.cache("__display__");return this.css("display",b&&b!="none"?b:"block")},hide:function(){this.cache("__display__",this.css("display"));return this.css("display","none")},stop:function(){var b=this.cache("__animate__");if(b){b.stopTimer()}return this},animate:function(c,g,i,h){switch(arguments.length){case 2:i="Swing:in";h=a.empty;break;case 3:if(typeof i=="string"){h=a.empty}else{h=i;i="Swing:in"}break;case 4:break;default:err("PARAM ERROR - .animate(properties, duration[, easing[, callback]])");break}var f={};for(var b in c){f[b]=[this.css(b),c[b]]}var d=new a.Fx.Morph(this,{fps:100,duration:g,effect:i,onComplete:h});d.start(f);this.cache("__animate__",d);return this}})})(JUI);(function(f){var c=["mouseover","mousedown","mouseup","click","dblclick","mouseout","mousemove","keypress","keyup","keydown"];var a={};var d=function(i){return function(j){return this.addEvent(i,j)}};for(var b=0;b<c.length;b++){var h=c[b];a[h]=d(h)}f.Element.implement(a);f.Window.implement(a);var g=function(j){if(!j.target){j.target=j.srcElement||document}if(!j.relatedTarget&&j.fromElement){j.relatedTarget=j.fromElement===j.target?j.toElement:j.fromElement}var i=j.relatedTarget;try{while(i&&i!==this){i=i.parentNode}}catch(k){}return !!i};f.Element.implement({mouseenter:function(i){this.mouseover(function(j){if(!this.cache("__mouseenter__")){j.type="mouseenter";i.call(this,j);this.cache("__mouseenter__",true)}});return this},mouseleave:function(i){this.mouseout(function(j){if(!g.call(this,j.event)){j.type="mouseleave";i.call(this,j);this.cache("__mouseenter__",false)}});return this},hover:function(i,j){return this.mouseenter(i).mouseleave(j||i)}});f.bind=function(){var k=arguments[0];switch(arguments.length){case 2:var l={};var j=arguments[1];break;case 3:var l=arguments[1];var j=arguments[2];break;default:return}var i=arguments.callee._events;if(!i[k]){i[k]=[]}var m={data:l,fn:j};i[k].push(m);return m};f.trigger=function(k,l){if(!l){var l=[]}var n=f.bind._events[k];if(!n){return}for(var j=0;j<n.length;j++){var m={data:n[j].data};l.unshift(m);n[j].fn.apply(null,l)}return n.length};f.bind._events={}})(JUI);(function(a){a.Element.implement({replaceWith:function(b){this.parentNode.replaceChild(b,this);return this}})})(JUI);(function(a){a.Element.implement({each:function(b){b.call(this)}})})(JUI);(function(c){var b={msie:c.browser.ie>0,msie6:c.browser.ie==6,msie7:c.browser.ie==7,msie8:c.browser.ie==8,mozilla:!!c.browser.gecko,opera:!!c.browser.opera,webkit:!!c.browser.webkit};for(var a in b){window[a]=b[a]}})(JUI);(function(a){a.random=function(c,b){var d=Math.random;switch(arguments.length){case 0:return d();case 1:return d()*arguments[0];case 2:return d()*(arguments[1]-arguments[0])+arguments[0]}};a.initArray=function(f,c){var b=new Array(f);for(var d=0;d<f;d++){b[d]=c}return b};a.pick=function(b){return b[Math.floor(a.random(b.length))]};$.merge=function(c,b){for(var d in c){if(typeof b[d]!="undefined"){c[d]=b[d]}}};$.addHttp2Url=function(b){var c=(b.indexOf("http://")>=0)?"":"http://";return c+b};$.randomArray=function(d){var c=[];for(var f=0;f<d;f++){c.push(f)}var b=[];for(var f=0;f<d;f++){var g=Math.floor(Math.random()*c.length);b.push(c.splice(g,1))}return b};$.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}})(jui_ext);(function(b){b.Dtm=b.DateTime=function(i){switch(arguments.length){case 0:this._dtm=new Date();break;case 1:switch(i.length){case 10:var f=i.split("-");this._dtm=new Date(f[0],f[1]-1,f[2]);break;case 19:var f=i.split(" ");var h=f[0].split("-");var g=f[1].split(":");this._dtm=new Date(h[0],h[1]-1,h[2],g[0],g[1],g[2]);break;case 6:this._dtm=new Date(i.slice(0,4),Number(i.slice(4))-1);break}break}};var a={copy:function(){var f=new b.Dtm();f._dtm=new Date(this.getTime());return f},toString:function(){return this._dtm.toString()},getTime:function(){return this._dtm.getTime()},setDate:function(g,h,f){this._dtm.setFullYear(g,h-1,f);return this},setYear:function(f){this._dtm.setFullYear(f);return this},setMonth:function(f){this._dtm.setMonth(f-1);return this},setDay:function(f){this._dtm.setDate(f);return this},setHour:function(f){this._dtm.setHours(f);return this},getYear:function(){return this._dtm.getFullYear()},getMonth:function(){return this._dtm.getMonth()+1},getDay:function(){return this._dtm.getDate()},getDay_week:function(){return this._dtm.getDay()},getChineseDay_week:function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][this._dtm.getDay()]},getHour:function(){return this._dtm.getHours()},getMinute:function(){return this._dtm.getMinutes()},getSecond:function(){return this._dtm.getSeconds()},getMs:function(){return this._dtm.getMilliseconds()},toChineseYearMonthString:function(){return this.getYear()+"年"+this.getMonth()+"月"},toChineseDateString:function(){return this.getYear()+"年"+this.getMonth()+"月"+this.getDay()+"日"},toChineseMonthDateString:function(){return this.getMonth()+"月"+this.getDay()+"日"},goMonth:function(f){this.setMonth(this.getMonth()+f);return this},goDay:function(f){this.setDay(this.getDay()+f);return this},goHour:function(f){this.setHour(this.getHour()+f);return this},goPrevMonth:function(){return this.goMonth(-1)},goNextMonth:function(){return this.goMonth(+1)},toSimpleYearMonthString:function(){var f=this.getMonth().toString();return[this.getYear(),(f.length==2?"":0)+f].join("")},toDBDateString:function(){var g=this.getMonth().toString();var f=this.getDay().toString();return[this.getYear(),(g.length==2?"":0)+g,(f.length==2?"":0)+f].join("-")},toDBTimeString:function(){var f=this.getHour().toString();var h=this.getMinute().toString();var g=this.getSecond().toString();return[(f.length==2?"":0)+f,(h.length==2?"":0)+h,(g.length==2?"":0)+g].join(":")},toDBDateTimeString:function(){return this.toDBDateString()+" "+this.toDBTimeString()},toDBDateTimeMsString:function(){var f=this.getMs().toString();switch(f.length){case 1:f="00"+f;break;case 2:f="0"+f;break;default:break}return this.toDBDateTimeString()+"."+f}};for(var c in a){var d=a[c];b.DateTime.prototype[c]=d}})(jui_ext);$$.tabView=function(c,b,d,f){switch(arguments.length){case 2:d="click";f=0;break;case 3:if(isNaN(d)){f=0}else{f=d;d="click"}break;case 4:break;default:err("PARAM ERROR - $$.tabView(tabs, views, type, n)");break}var a=new $.TabView(c,b,function(h,g){h.removeClass("now");g.addClass("now")},{tabTriggerEvent:d});a.changeTab(f)};(function(b){var a=function(g,f,c,d){this.onChangePage=new b.CustomEvent("onChangePage");this.ops={btnTriggerEvent:"click",autoSwitchTime:5000,direction:"horizontal",onChangePage:null};this.mergeOptions(d);if(this.ops.onChangePage!=null){this.onChangePage.subscribe(this.ops.onChangePage)}this.pageCount=0;this.selectedPageNum=0;this.width=f;this.height=c;this.tpEl=g;this.init()};b.Native.initialize({name:"PhotoSlide",initialize:a,protect:true});a.implement({mergeOptions:function(c){for(var d in c){this.ops[d]=c[d]}},beginAutoSwitch:function(){if(this.ops.autoSwitchTime<1||this.pageCount<2){return}clearInterval(this.sid);var c=this;this.sid=setInterval(function(){var d=0;if(c.selectedPageNum<c.pageCount-1){d=c.selectedPageNum+1}c.changePage(d)},this.ops.autoSwitchTime)},stopAutoSwitch:function(){clearInterval(this.sid)},init:function(){this.picsEl=this.tpEl.getElement("div.pics");this.picsEl.css({width:this.width,height:this.height,overflow:"hidden"});this.picsMoveEl=this.picsEl.getElement("div.picsMove");this.fx=new b.Fx.Morph(this.picsMoveEl,{duration:500,effect:"Quad:in:out"});this.titleEl=this.tpEl.getElement("div.info .title");this.btnsEl=this.tpEl.getElement("div.info .btns");this.tpEl.addEvent("mouseover",function(c){this.stopAutoSwitch()},this);this.tpEl.addEvent("mouseout",function(c){this.beginAutoSwitch()},this);this.fnc()},fnc:function(){this.infos=[];var g=this.picsMoveEl.getElements("div.pic");this.pageCount=g.length;if(this.pageCount==0){return}var d=this.width;var k=this.height;if(this.ops.direction=="horizontal"){d=this.pageCount*this.width}else{k=this.pageCount*this.height}this.picsMoveEl.css({width:d,height:k,overflow:"hidden"});var j=[];for(var f=0,c=this.pageCount;f<c;f++){g[f].css({width:this.width,height:this.height,overflow:"hidden","float":"left"});j.push(['<a href="javascript:;">',f+1,"</a>"].join(""));var m=g[f].getElements("a");if(m.length>0){this.infos.push({title:m[0].attr("title"),link:m[0].attr("href")})}else{this.infos.push({title:"No Text",link:""})}}if(this.btnsEl!=null){this.btnsEl.html(j.join(""));var l=this.btnsEl.getElements("a");l.addEvent(this.ops.btnTriggerEvent,function(i){var h=parseInt(b(i.target).html())-1;this.changePage(h)},this)}this.changePage(0);this.beginAutoSwitch()},changePage:function(c){if(this.btnsEl!=null){var d=this.btnsEl.getElements("a");d[this.selectedPageNum].className="";d[c].className="now"}if(this.titleEl!=null){var f=this.infos[c];this.titleEl.html(f.title);this.titleEl.attr("href",f.link)}this.selectedPageNum=c;this.onChangePage.fire(this.selectedPageNum);if(this.ops.direction=="horizontal"){this.fx.start({"margin-left":-(this.selectedPageNum*this.width)})}else{this.fx.start({"margin-top":-(this.selectedPageNum*this.height)})}}});b.PhotoSlide=a})(JUI);(function(){var a,b=[];function d(){var h=0,f=b.length,k,m,g;for(;h<f;h++){k=b[h];m=k.pos.position();var j=$(document.body).position();k.src.css({left:m.x-j.x,top:m.y-j.y})}}function c(f,g){f=$(f);g=$(g);b.push({src:f,pos:g});if(!a){a=setInterval(d,1000)}f.css({position:"absolute",display:"block"});f.getElement("a").css("display","block");f.getElement("img").css("display","block");d()}window.$ma=c})();function __clear(a){clearTimeout(a);clearInterval(a);return null}function __attach_event(a,b){if(window.addEventListener){window.addEventListener(a,b,false)}else{if(window.attachEvent){window.attachEvent("on"+a,b)}}}function __domReady(a){if(__domReady.done){return a()}if(__domReady.timer){__domReady.ready.push(a)}else{__attach_event("load",__isDOMReady);__domReady.ready=[a];__domReady.timer=setInterval(__isDOMReady,1000)}}$$.onDomReady=__domReady;function __isDOMReady(){if(__domReady.done){return false}if(document&&document.getElementsByTagName&&document.getElementById&&document.body){__clear(__domReady.timer);__domReady.timer=null;for(var a=0;a<__domReady.ready.length;a++){__domReady.ready[a]()}__domReady.ready=null;__domReady.done=true}}window.commonModules={load:function(){if(!this.loaded){__domReady(function(){$.loadJs("http://static1.pplive.cn/cms/macrocms/pub/js/commonModules/"+commonModules.version+".js",function(){commonModules.run()})});this.loaded=true}},run:function(){if(this.miniMenu){$$.format.miniMenu()}if(this.nav){$$.format.nav()}if(this.subMiniMenu){$$.format.subMiniMenu()}if(this.login){$$.format.login()}if(this.comment){$$.comment.create(this.comment.id,this.comment.type)}},loaded:false,miniMenu:false,nav:false,subMiniMenu:false,comment:false,login:false,version:"2011-05-27"};$$.format={login:function(){commonModules.login=true;commonModules.load()},miniMenu:function(){commonModules.miniMenu=true;commonModules.load()},nav:function(){commonModules.nav=true;commonModules.load()},subMiniMenu:function(){commonModules.subMiniMenu=true;commonModules.load()}};$$.comment={create:function(b,a){commonModules.comment={id:b,type:a};commonModules.load()}};$$.share=function(b){var a="http://ikan.pptv.com/api/share/"+b+"?link="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title);window.open(a)};$.loadJs=function(a,b){$script=document.createElement("script");$script.src=a;$script.type="text/javascript";if(b){if($script.readyState){$script.onreadystatechange=function(){var c=$script.readyState;if(c==="loaded"||c==="complete"){b()}}}else{$script.onload=b}}document.getElementsByTagName("head")[0].appendChild($script)};window.ikanPlayer=window.IkanPlayer={create:function(){var a=[].slice.call(arguments,0);$.loadJs("http://static1.pplive.cn/cms/macrocms/pub/js/videoplayer/"+videoPlayer.version+".js",function(){ikanPlayer.create.apply(ikanPlayer,a)})},version:"1.0.5.3",pluginVersion:"1.0.0.6"};window.ocxPlayer={play:function(){var a=[].slice.call(arguments,0);$.loadJs("http://static1.pplive.cn/cms/macrocms/pub/js/videoplayer/"+videoPlayer.version+".js",function(){ocxPlayer.play.apply(ocxPlayer,a)})}};window.videoPlayer={play:function(){var a=[].slice.call(arguments,0);$.loadJs("http://static1.pplive.cn/cms/macrocms/pub/js/videoplayer/"+videoPlayer.version+".js",function(){videoPlayer.play.apply(videoPlayer,a)})}};window.livePlayer={play:function(){var a=[].slice.call(arguments,0);$.loadJs("http://static1.pplive.cn/cms/macrocms/pub/js/videoplayer/"+videoPlayer.version+".js",function(){livePlayer.play.apply(livePlayer,a)})}};
