var a,YAO=function(){var c=document,f=Object.prototype,h=[],l={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},k={HYPHEN:/(-[a-z])/i,ROOT_TAG:/body|html/i},o=null;return{isArray:function(b){return f.toString.apply(b)==="[object Array]"},isString:function(b){return typeof b==="string"},isBoolean:function(b){return typeof b==="boolean"},isFunction:function(b){return f.toString.apply(b)==="[object Function]"},isNull:function(b){return b===null},isNumber:function(b){return typeof b==="number"&&
isFinite(b)},isObject:function(b){return b&&(typeof b==="object"||this.isFunction(b))||false},isUndefined:function(b){return typeof b==="undefined"},hasOwnProperty:function(b,d){if(f.hasOwnProperty)return b.hasOwnProperty(d);return!this.isUndefined(b[d])&&b.constructor.prototype[d]!==b[d]},isMobile:function(b){return/^(13|15|18)\d{9}$/.test(YAO.trim(b))},isName:function(b){return/^[\w\u4e00-\u9fa5]{1}[\w\u4e00-\u9fa5 \.]{0,19}$/.test(YAO.trim(b))},keys:function(b){var d=[];for(var e in b)d.push(e);
return d},values:function(b){var d=[];for(var e in b)d.push(b[e]);return d},isXMLDoc:function(b){return b.documentElement&&!b.body||b.tagName&&b.ownerDocument&&!b.ownerDocument.body},formatNumber:function(b,d){d=d||"";b+="";var e=b.split(".");b=e[0];e=e.length>1?"."+e[1]:"";for(var g=/(\d+)(\d{3})/;g.test(b);)b=b.replace(g,"$1,$2");return d+b+e},unformatNumber:function(b){return b.replace(/([^0-9\.\-])/g,"")*1},stringBuffer:function(){for(var b=[],d=0;d<arguments.length;++d)b.push(arguments[d]);return b.join("")},
trim:function(b){try{return b.replace(/^\s+|\s+$/g,"")}catch(d){return b}},stripTags:function(b){return b.replace(/<\/?[^>]+>/gi,"")},stripScripts:function(b){return b.replace(/<script[^>]*>([\\S\\s]*?)<\/script>/g,"")},isJSON:function(b){b=b.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"");return/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/.test(b)},encodeHTML:function(b){return b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},decodeHTML:function(b){return b.replace(/&amp;/g,"&").replace(/&lt;/g,
"<").replace(/&gt;/g,">")},toCamel:function(b){if(!k.HYPHEN.test(b))return b;if(propertyCache[b])return propertyCache[b];for(var d=b;k.HYPHEN.exec(d);)d=d.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());return propertyCache[b]=d},Cookie:{set:function(b,d,e,g){var i=new Date,j=new Date;if(e==null||e==0)e=1;j.setTime(i.getTime()+864E5*e);c.cookie=b+"="+encodeURI(d)+";expires="+j.toGMTString()+";domain="+g+"; path=/"},get:function(b){var d=c.cookie;b=b+"=";var e=d.indexOf("; "+b);if(e==-1){e=d.indexOf(b);
if(e!=0)return null}else e+=2;var g=c.cookie.indexOf(";",e);if(g==-1)g=d.length;return decodeURI(d.substring(e+b.length,g))},clear:function(b,d){if(this.get(b))c.cookie=b+"="+(domain?"; domain="+d:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}},ua:function(){var b={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0},d=navigator.userAgent,e;if(/KHTML/.test(d))b.webkit=1;if((e=d.match(/AppleWebKit\/([^\s]*)/))&&e[1]){b.webkit=parseFloat(e[1]);if(/ Mobile\//.test(d))b.mobile="Apple";else if(e=d.match(/NokiaN[^\/]*/))b.mobile=
e[0];if(e=d.match(/AdobeAIR\/([^\s]*)/))b.air=e[0]}if(!b.webkit)if((e=d.match(/Opera[\s\/]([^\s]*)/))&&e[1]){b.opera=parseFloat(e[1]);if(e=d.match(/Opera Mini[^;]*/))b.mobile=e[0]}else if((e=d.match(/MSIE\s([^;]*)/))&&e[1])b.ie=parseFloat(e[1]);else if(e=d.match(/Gecko\/([^\s]*)/)){b.gecko=1;if((e=d.match(/rv:([^\s\)]*)/))&&e[1])b.gecko=parseFloat(e[1])}if((e=d.match(/Caja\/([^\s]*)/))&&e[1])b.caja=parseFloat(e[1]);return b}(),extend:function(b,d,e){if(!d||!b)throw new Error("extend failed, please check that all dependencies are included.");
var g=function(){};g.prototype=d.prototype;b.prototype=new g;b.prototype.constructor=b;b.superclass=d.prototype;if(d.prototype.constructor==Object.prototype.constructor)d.prototype.constructor=d;if(e)for(var i in e)b.prototype[i]=e[i]},augmentProto:function(b,d){if(!b||!d)throw new Error("augment failed, please check that all dependencies are included.");var e=b.prototype,g=d.prototype,i=arguments,j;if(i[2])for(j=2;j<i.length;j+=1)e[i[j]]=g[i[j]];else for(j in g)e[j]||(e[j]=g[j])},augmentObject:function(b,
d){if(!d||!b)throw new Error("augment failed, please check that all dependencies are included.");var e=arguments,g;if(e[2])if(YAO.isString(e[2]))b[e[2]]=d[e[2]];else for(g=0;g<e[2].length;g+=1)b[e[2][g]]=d[e[2][g]];else for(g in d)b[g]=d[g];return b},clone:function(b,d){var e=function(){};e.prototype=b;b=new e;if(d)for(p in d)b[p]=d[p];return b},addListener:function(b,d,e,g,i,j){var m=null,n=null;m=null;if(YAO.isString(b))b=m=YAO.getEl(b);if(!b||!e||!e.call)return false;n=b;if(i)n=i===true?g:i;m=
function(s){return e.call(n,YAO.getEvent(s,b),g)};try{try{b.addEventListener(d,m,j)}catch(q){try{b.attachEvent("on"+d,m)}catch(r){b["on"+d]=m}}}catch(t){o=t;this.removeListener(b,d,m,j);return false}if("unload"!=d)h[h.length]=[b,d,e,m,j];return true},removeListener:function(){try{return window.removeEventListener?function(d,e,g,i){d.removeEventListener(e,g,i)}:window.detachEvent?function(d,e,g){d.detachEvent("on"+e,g)}:function(){}}catch(b){o=b;return false}},on:function(b,d,e,g,i){return YAO.addListener(b,
d,e,g||b,i||this,false)},stopEvent:function(b){this.stopPropagation(b);this.preventDefault(b)},stopPropagation:function(b){if(b.stopPropagation)b.stopPropagation();else b.cancelBubble=true},preventDefault:function(b){if(b.preventDefault)b.preventDefault();else b.returnValue=false},getEvent:function(b){b=b||window.event;if(!b)for(var d=this.getEvent.caller;d;){if((b=d.arguments[0])&&Event==b.constructor)break;d=d.caller}return b},getCharCode:function(b){b=b.keyCode||b.charCode||0;if(YAO.ua.webkit&&
b in l)b=l[b];return b},_unload:function(){var b,d;if(h)for(b=h.length-1;b>-1;b--)(d=h[b])&&YAO.removeListener(d[0],d[1],d[3],d[4]);YAO.removeListener(window,"unload",YAO._unload)},getEl:function(b){var d,e,g,i;if(b){if(b.nodeType||b.item)return b;if(YAO.isString(b)){d=b;if((b=c.getElementById(b))&&b.id===d)return b;else if(b&&b.all){b=null;e=c.all[d];g=0;for(i=e.length;g<i;g+=1)if(e[g].id===d)return e[g]}return b}else if(b.DOM_EVENTS)b.get("element");else if(YAO.isArray(b)){d=[];e=0;for(g=b.length;e<
g;e+=1)d[d.length]=YAO.getEl(b[e]);return d}}return null},hasClass:function(b,d){return(new RegExp("(?:^|\\s+)"+d+"(?:\\s+|$)")).test(b.className)},addClass:function(b,d){if(!YAO.hasClass(b,d))b.className=[b.className,d].join(" ")},removeClass:function(b,d){var e=new RegExp("(?:^|\\s+)"+d+"(?:\\s+|$)","g");if(YAO.hasClass(b,d)){b.className=b.className.replace(e," ");YAO.hasClass(b,d)&&YAO.removeClass(b,d)}},replaceClass:function(b,d,e){if(d===e)return false;var g=new RegExp("(?:^|\\s+)"+d+"(?:\\s+|$)",
"g");if(YAO.hasClass(b,d)){b.className=b.className.replace(g," "+e+" ");YAO.hasClass(b,d)&&YAO.replaceClass(b,d,e)}else YAO.addClass(b,e)},getElByClassName:function(b,d,e){var g=[];e=YAO.getEl(e).getElementsByTagName(d);var i=e.length;for(d=0;d<i;++d)YAO.hasClass(e[d],b)&&g.push(e[d]);return g.length<1?false:g},getStyle:function(b,d){if(document.defaultView&&document.defaultView.getComputedStyle){var e=null;if(d=="float")d="cssFloat";var g=document.defaultView.getComputedStyle(b,"");if(g)e=g[YAO.toCamel(d)];
return b.style[d]||e}else if(document.documentElement.currentStyle&&YAO.ua.ie)switch(YAO.toCamel(d)){case "opacity":d=100;try{d=b.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(i){try{d=b.filters("alpha").opacity}catch(j){}}return d/100;case "float":d="styleFloat";default:e=b.currentStyle?b.currentStyle[d]:null;return b.style[d]||e}else return b.style[d]},setStyle:function(b,d,e){if(YAO.ua.ie)switch(d){case "opacity":if(YAO.isString(b.style.filter)){b.style.filter="alpha(opacity="+e*100+
")";if(!b.currentStyle||!b.currentStyle.hasLayout)b.style.zoom=1}break;case "float":d="styleFloat";default:b.style[d]=e}else{if(d=="float")d="cssFloat";b.style[d]=e}},setStyles:function(b,d){for(var e in d)YAO.setStyle(b,e,d[e]);return b},getElementsBy:function(b,d,e){d=d||"*";var g=[];if(e){e=YAO.getEl(e);if(!e)return g}else e=document;var i=e.getElementsByTagName(d);if(!i.length&&d==="*"&&e.all)i=e.all;d=0;for(e=i.length;d<e;++d)if(b(i[d]))g[g.length]=i[d];return g},getDocumentWidth:function(){var b=
YAO.getScrollWidth();return Math.max(b,YAO.getViewportWidth())},getDocumentHeight:function(){var b=YAO.getScrollHeight();return Math.max(b,YAO.getViewportHeight())},getScrollWidth:function(){return c.compatMode=="CSS1Compat"?c.body.scrollWidth:c.Element.scrollWidth},getScrollHeight:function(){return c.compatMode=="CSS1Compat"?c.body.scrollHeight:c.documentElement.scrollHeight},getXScroll:function(){return self.pageXOffset||c.documentElement.scrollLeft||c.body.scrollLeft},getYScroll:function(){return self.pageYOffset||
c.documentElement.scrollTop||c.body.scrollTop},getViewportWidth:function(){var b=self.innerWidth,d=c.compatMode;if(d||YAO.ua.ie)b=d=="CSS1Compat"?c.documentElement.clientWidth:c.body.clientWidth;return b},getViewportHeight:function(){var b=self.innerHeight,d=c.compatMode;if((d||YAO.ua.ie)&&!YAO.ua.opera)b=d=="CSS1Compat"?c.documentElement.clientHeight:c.body.clientHeight;return b},removeChildren:function(b){if(!(prent=YAO.getEl(b)))return false;for(;b.firstChild;)b.firstChild.parentNode.removeChild(b.firstChild);
return b},prependChild:function(b,d){if(!(b=YAO.getEl(b))||!(d=YAO.getEl(d)))return false;b.firstChild?b.insertBefore(d,b.firstChild):b.appendChild(d);return b},insertAfter:function(b,d){var e=d.parentNode;e.lastChild==d?e.appendChild(b):e.insertBefore(b,d.nextSibling)},setOpacity:function(b,d){YAO.setStyle(b,"opacity",d)},Builder:{nidx:0,NODEMAP:{AREA:"map",CAPTION:"table",COL:"table",COLGROUP:"table",LEGEND:"fieldset",OPTGROUP:"select",OPTION:"select",PARAM:"object",TBODY:"table",TD:"table",TFOOT:"table",
TH:"table",THEAD:"table",TR:"table"},ATTR_MAP:{className:"class",htmlFor:"for",readOnly:"readonly",maxLength:"maxlength",cellSpacing:"cellspacing"},EMPTY_TAG:/^(?:BR|FRAME|HR|IMG|INPUT|LINK|META|RANGE|SPACER|WBR|AREA|PARAM|COL)$/i,linkNode:function(b,d,e){e=e||"utf-8";var g=null,i=c.getElementsByTagName("head")[0];g=this.Node("link",{id:d||"link-"+YAO.Builder.nidx++,type:"text/css",charset:e,rel:"stylesheet",href:b});i.appendChild(g);return g},scriptNode:function(b,d,e,g){g=g||"utf-8";return(e||document.body).appendChild(this.Node("script",
{id:d||"script-"+YAO.Builder.nidx++,type:"text/javascript",charset:g,src:b}))},Node:function(b,d,e){b=b.toUpperCase();var g=c.createElement(YAO.Builder.NODEMAP[b]||"div"),i=null;try{if(!this.EMPTY_TAG.test(b))g.innerHTML="<"+b+"></"+b+">"}catch(j){}if((i=g.firstChild)&&i.tagName.toUpperCase()!=b)i=i.getElementsByTagName(b)[0];if(!i)if(YAO.isString(b))i=c.createElement(b);if(i){d&&this.Attributes(i,d);e&&this.Child(i,e);return i}},Attributes:function(b,d){var e="",g;for(g in d)if(d[g]&&YAO.hasOwnProperty(d,
g)){e=g in YAO.Builder.ATTR_MAP?YAO.Builder.ATTR_MAP[g]:g;if(e==="class")b.className=d[g];else b.setAttribute(e,d[g])}return b},Child:function(b,d){if(d.tagName){b.appendChild(d);return false}if(YAO.isArray(d)){var e,g=d.length;for(e=0;e<g;e+=1)if(d[e].tagName)b.appendChild(d[e]);else YAO.isString(d[e])&&b.appendChild(c.createTextNode(d[e]))}else YAO.isString(d)&&b.appendChild(c.createTextNode(d))}},batch:function(b,d,e,g){b=YAO.getEl(b);g=g?e:window;if(!b||b.tagName||!b.length){if(!b)return false;
return d.call(g,b,e)}for(var i=[],j=0,m=b.length;j<m;++j)i[i.length]=d.call(g,b[j],e);return i},fadeUp:function(b){if(b){var d=0,e=function(){d+=0.05;if(d>1){YAO.setOpacity(b,1);return false}else YAO.setOpacity(b,d);setTimeout(e,50)};e()}},zebra:function(){var b,d=arguments.length;for(b=0;b<d;++b)(function(e){var g=YAO.getEl(e.rootTag)||e.root||null;e=g.getElementsByTagName(e.rowTag)||e.rows||null;var i=e.length,j=[];if(g&&e&&i>1)for(g=0;g<i;++g){e[g].className=g%2===0?"even":"odd";j[g]=e[g].className;
YAO.on(e[g],"mouseover",function(m){return function(){YAO.replaceClass(this,j[m],"hover")}}(g),e[g],true);YAO.on(e[g],"mouseout",function(m){return function(){YAO.replaceClass(this,"hover",j[m])}}(g),e[g],true)}else return false})(arguments[b])},moveElement:function(b,d,e,g){var i=YAO.isString(b)?YAO.getEl(b):b;if(i){i.movement&&clearTimeout(i.movement);if(!i.style.left)i.style.left="0";if(!i.style.top)i.style.top="0";var j=parseInt(i.style.left),m=parseInt(i.style.top);if(j==d&&m==e)return true;
if(j<d){var n=Math.ceil((d-j)/10);j+=n}if(j>d){n=Math.ceil((j-d)/10);j-=n}if(m<e){n=Math.ceil((e-m)/10);m+=n}if(m>e){n=Math.ceil((m-e)/10);m-=n}i.style.left=j+"px";i.style.top=m+"px";i.movement=setTimeout(function(){YAO.moveElement(b,d,e,g)},g)}},ajax:function(b){var d,e=b.method?b.method.toUpperCase():"GET",g=b.url||"",i=b.fn||null,j=b.data||null,m=b.id?YAO.getEl(b.id):b.element||null,n=b.loadFn?b.loadFn:b.loading||"\u59dd\uff45\u6e6a\u947e\u5cf0\u5f47\u93c1\u7248\u5d41\u951b\u5c83\ue1ec\u7ecb\u5d85\u6097...";if(g){if(window.XMLHttpRequest)d=new XMLHttpRequest;else if(window.ActiveXObject)d=
new ActiveXObject("Microsoft.XMLHTTP");if(d)try{d.open(e,g,true);d.onreadystatechange=function(){if(d.readyState!==4)return false;if(d.readyState==4)if(d.status==200||location.href.indexOf("http")===-1)if(i)i.success(d);else m.innerHTML=d.responseText;else if(i)i.failure(d.status);else if(YAO.isFunction(n))n();else m.innerHTML=n};d.setRequestHeader("X-Requested-With","XMLHttpRequest");j&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");d.send(j)}catch(q){throw new Error(q);
}else throw new Error("Your browser does not support XMLHTTP.");}},JSON:function(){function b(g){return g<10?"0"+g:g}function d(g,i){var j,m,n,q;j=/["\\\x00-\x1f\x7f-\x9f]/g;var r;switch(typeof g){case "string":return j.test(g)?'"'+g.replace(j,function(t){var s=e[t];if(s)return s;s=t.charCodeAt();return"\\u00"+Math.floor(s/16).toString(16)+(s%16).toString(16)})+'"':'"'+g+'"';case "number":return isFinite(g)?String(g):"null";case "boolean":case "null":return String(g);case "object":if(!g)return"null";
if(typeof g.toJSON==="function")return d(g.toJSON());j=[];if(typeof g.length==="number"&&!g.propertyIsEnumerable("length")){q=g.length;for(m=0;m<q;m+=1)j.push(d(g[m],i)||"null");return"["+j.join(",")+"]"}if(i){q=i.length;for(m=0;m<q;m+=1){n=i[m];if(typeof n==="string")(r=d(g[n],i))&&j.push(d(n)+":"+r)}}else for(n in g)if(typeof n==="string")(r=d(g[n],i))&&j.push(d(n)+":"+r);return"{"+j.join(",")+"}"}}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+
"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z"};var e={"":"\\b","\t":"\\t","\n":"\\n","":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return{stringify:d,parse:function(g,i){function j(m,n){var q,r;if(n&&typeof n==="object")for(q in n)if(f.hasOwnProperty.apply(n,[q])){r=j(q,n[q]);if(r!==undefined)n[q]=r;else delete n[q]}return i(m,n)}if(/^[\],:{}\s]*$/.test(g.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,
""))){g=eval("("+g+")");return typeof i==="function"?j("",g):g}throw new SyntaxError("parseJSON");}}}(),YTabs:function(){var b,d=arguments.length,e=[];for(b=0;b<d;++b)e[b]=new YAO.singleTab(arguments[b]);return e},scrollNews:function(b,d,e,g){var i=new YAO.scrollVertical(b,d,e,g);i.speed=4E3;i.isPause=true;var j=setTimeout(function(){j&&clearTimeout(j);i.isPause=false},2E3);YAO.on(i.scrollArea,"mouseover",function(){i.isPause=true});YAO.on(i.scrollArea,"mouseout",function(){i.isPause=false})}}}();
YAO.singleTab=function(c){this.tabRoot=YAO.isString(c.tabRoot)?YAO.getEl(c.tabRoot):c.tabRoot||null;this.tabs=YAO.isString(c.tabs)?this.tabRoot.getElementsByTagName(c.tabs):c.tabs||null;this.contents=YAO.isString(c.contents)?this.tabRoot.getElementsByTagName(c.contents):c.contents||null;if(!this.tabs||!this.contents)return false;this.length=this.tabs.length||0;this.lastIndex=this.defaultIndex=c.defaultIndex||0;this.lastTab=this.tabs[this.lastIndex]||null;this.lastContent=this.contents[this.lastIndex]||
null;this.evtName=c.evt||"mouseover";this.defaultClass=c.defaultClass||this.CURRENT_TAB_CLASS;this.previousClass=c.previousClass||"";this.hideAll=c.hideAll||false;this.auto=c.auto||false;this.autoSpeed=c.autoSpeed||6E3;this.fadeUp=c.fadeUp||false;this.scroll=c.scroll||false;this.scrollId=c.scrollId||null;this.scrollSpeed=c.scrollSpeed||5;this.direction=c.direction||"V";this.activeTag=c.activeTag||"IMG";this.stepHeight=c.stepHeight||0;this.stepWidth=c.stepWidth||0;this.ajax=c.ajax||false;this.ajaxDefaultInfo=
this.contents.innerHTML;this.aPath=c.aPath||"";this.init()};a=YAO.singleTab.prototype;a.timer=null;a.isPause=false;a.CURRENT_TAB_CLASS="current";
a.init=function(){var c,f=this;if(this.tabs&&this.contents){if(this.auto)this.timer=setTimeout(function(){f.autoChange()},f.autoSpeed);if(this.hideAll)YAO.removeClass(this.lastTab,this.defaultClass);else{YAO.addClass(this.lastTab,this.defaultClass);if(!this.ajax&&!this.scroll)if(this.lastContent)this.lastContent.style.display="block";this.ajax&&this.ajaxTab(this.lastTab);if(this.scroll)this.scrollCnt(this.lastContent||this.contents,this.defaultIndex)}for(c=0;c<this.length;++c){if(c!==this.defaultIndex){YAO.removeClass(this.tabs[c],
this.CURRENT_TAB_CLASS);if(!this.ajax&&!this.scroll)this.contents[c].style.display="none"}YAO.on(this.tabs[c],this.evtName,function(h){return function(l){var k=null;if(!YAO.hasClass(this.tabs[h],this.tabs[h]===this.tabs[this.defaultIndex]?this.defaultClass:this.CURRENT_TAB_CLASS)){this.setCurrent(this.ajax||this.scroll&&(this.stepHeight||this.stepWidth)?this.contents:this.contents[h]||null,h);this.lastIndex=h}if(this.auto)this.isPause=true;k=l||window.event;YAO.stopEvent(k)}}(c),this.tabs[c],f);YAO.on(this.tabs[c],
"mouseout",function(h){return function(){var l=this.tabs[h];if(this.hideAll&&this.evtName==="mouseover"){if(this.lastTab===l)YAO.removeClass(l,YAO.hasClass(l,f.defaultClass)?this.defaultClass:this.CURRENT_TAB_CLASS);this.previousClassTab&&YAO.removeClass(this.previousClassTab,this.previousClass);if(!this.scroll&&!this.ajax)this.contents[h].style.display="none"}else if(this.auto)this.isPause=false}}(c),this.tabs[c],f)}}};
a.autoChange=function(){var c=this;if(this.isPause){this.timer=setTimeout(function(){c.autoChange()},this.autoSpeed);return false}else{var f=null;if(this.timer){clearTimeout(this.timer);this.timer=null}this.lastIndex+=1;if(this.lastIndex===this.length)this.lastIndex=0;f=this.ajax?this.contents:this.contents[this.lastIndex]||null;this.setCurrent(f,this.lastIndex);this.timer=setTimeout(function(){c.autoChange()},this.autoSpeed)}};
a.setCurrent=function(c,f){var h=null;curTab=this.tabs[f];YAO.removeClass(this.lastTab,YAO.hasClass(this.lastTab,this.defaultClass)?this.defaultClass:this.CURRENT_TAB_CLASS);curTab===this.tabs[this.defaultIndex]?YAO.addClass(curTab,this.defaultClass):YAO.addClass(curTab,this.CURRENT_TAB_CLASS);if(this.previousClass){this.previousClassTab&&YAO.removeClass(this.previousClassTab,this.previousClass);if(f!==0){YAO.addClass(this.tabs[f-1],this.previousClass);f-1===this.defaultIndex&&YAO.removeClass(this.tabs[f-
1],this.defaultClass);this.previousClassTab=this.tabs[f-1]}}if(!this.scroll&&!this.ajax){if(this.lastContent)this.lastContent.style.display="none";if(c)c.style.display="block"}if(this.fadeUp){if(!c)return;h=c.tagName.toUpperCase()==="IMG"?c:c.getElementsByTagName("img")[0];this.lastContent!==c&&YAO.fadeUp(h)}else this.scroll&&this.scrollCnt(c,f);if(this.ajax)this.ajax&&this.ajaxTab(curTab);else this.lastContent=c;this.lastTab=curTab};
a.scrollCnt=function(c,f){var h=null,l=0,k=0;l=k=0;if(this.activeTag)h=c.tagName.toUpperCase()===this.activeTag?c:c.getElementsByTagName(this.activeTag)[0];if(this.direction==="V"){l=h?h.offsetHeight:this.stepHeight;l=-(f*l)}else{k=h?h.offsetWidth:this.stepWidth;k=-(f*k)}YAO.moveElement(this.scrollId,k,l,this.scrollSpeed)};
a.ajaxTab=function(c){var f="";f=null;var h=this.contents,l=this.aPath.split("/");f=c.tagName.toUpperCase()==="A"?c:c.getElementsByTagName("a")[0];f=l[0]+"/"+f.rel+l[1]+l[2]+f.rel;if(c===this.tabs[this.defaultIndex])h.innerHTML=this.ajaxDefaultInfo;else YAO.ajax({url:f,element:h,load:h.innerHTML})};
YAO.scrollVertical=function(c,f,h,l){var k=document;if(YAO.isString(c))this.scrollArea=k.getElementById(c);c=this.scrollMsg=YAO.isString(f)?k.getElementById(f):f;f=this.scrollArea;h||(h="li");this.unitHeight=c.getElementsByTagName(h)[0].offsetHeight;this.msgHeight=this.unitHeight*c.getElementsByTagName(h).length;c.style.position="absolute";c.style.top="0";c.style.left="0";h=k.createElement(l||"div");h.id=f.id+"_copymsgid";h.innerHTML=c.innerHTML;h.style.height=this.msgHeight+"px";f.appendChild(h);
h.style.position="absolute";h.style.left="0";h.style.top=this.msgHeight+"px";this.copyMsg=h;this.play(this)};a=YAO.scrollVertical.prototype;a.scrollArea=null;a.scrollMsg=null;a.unitHeight=0;a.msgHeight=0;a.copyMsg=null;a.scrollValue=0;a.scrollHeight=0;a.isStop=true;a.isPause=false;a.scrollTimer=null;a.speed=2E3;
a.play=function(c){var f=c.scrollMsg,h=c.copyMsg,l=c.scrollArea,k=c.msgHeight,o=function(){if(navigator.userAgent.toLowerCase().match(/mozilla/))return 1},b=function(){c.scrollTimer&&clearTimeout(c.scrollTimer);if(c.isPause)c.scrollTimer=setTimeout(b,50);else{if(k-c.scrollValue<=0)c.scrollValue=0;else{c.scrollValue+=1;c.scrollHeight+=1}if(o)l.scrollTop=c.scrollValue;else{f.style.top=-1*c.scrollValue+"px";h.style.top=k-c.scrollValue+"px"}c.scrollTimer=c.scrollHeight%l.offsetHeight==0?setTimeout(b,
c.speed):setTimeout(b,50)}};b()};
YAO.chkAll=function(c){this.chkAllItem=YAO.isString(c.chkAllItem)?YAO.getEl(c.chkAllItem):c.chkAllItem||null;this.list=YAO.isString(c.list)?YAO.getEl(c.list):c.list||null;this.items=YAO.isString(c.items)?this.list.getElementsByTagName(c.items):c.items||null;if(!this.chkAllItem||!this.list||!this.items)return false;this.length=this.items.length;this.itemsNumPerPage=c.itemsNumPerPage||this.length;this.pages=Math.ceil(this.length/this.itemsNumPerPage);this.curPage=this.itemsNumPerPage!==this.length&&
c.curPage?c.curPage:0;this.init()};a=YAO.chkAll.prototype;a.chkNum=0;a.CHKED_ROW_CLASS="chked";a.init=function(){if(this.chkAllItem&&this.items){var c,f=this;for(c=0;c<this.length;++c)YAO.on(this.items[c],"click",function(){f.chgItemBg.call(f,this)},this.items[c],true);YAO.on(this.chkAllItem,"click",function(){f.all.call(f)},this.chkAllItem,true)}};
a.all=function(){var c;c=this.curPage*this.itemsNumPerPage;var f=this.length<c+this.itemsNumPerPage?this.length:c+this.itemsNumPerPage;for(c=c;c<f;++c){this.items[c].checked=this.chkAllItem.checked;this.chgItemBg(this.items[c])}};
a.chgItemBg=function(c){var f=c.parentNode,h=this.length<(this.curPage+1)*this.itemsNumPerPage?this.length-this.curPage*this.itemsNumPerPage:this.itemsNumPerPage;if(c.checked){YAO.addClass(f,this.CHKED_ROW_CLASS);this.chkNum+=1;if(this.chkNum>=h){this.chkNum=h;this.chkAllItem.checked=true}}else{YAO.removeClass(f,this.CHKED_ROW_CLASS);if(this.chkAllItem.checked)this.chkAllItem.checked=false;this.chkNum-=1;if(this.chkNum<0)this.chkNum=0}};
YAO.Carousel=function(c){this.btnPrevious=YAO.isString(c.btnPrevious)?YAO.getEl(c.btnPrevious):c.btnPrevious||null;this.lnkBtnPrevious=this.btnPrevious.getElementsByTagName("a")[0]||null;this.Container=YAO.isString(c.Container)?YAO.getEl(c.Container):c.Container||null;this.Scroller=YAO.isString(c.Scroller)?YAO.getEl(c.Scroller):c.Scroller||null;this.btnNext=YAO.isString(c.btnNext)?YAO.getEl(c.btnNext):c.btnNext||null;this.lnkBtnNext=this.btnNext.getElementsByTagName("a")[0]||null;this.items=YAO.isString(c.items)?
this.Container.getElementsByTagName(c.items):c.items||null;if(!this.btnPrevious||!this.lnkBtnPrevious||!this.Container||!this.Scroller||!this.btnNext||!this.lnkBtnNext||!this.items)return false;this.length=this.items.length;this.itemWidth=this.items[0].offsetWidth;this.itemHeight=this.items[0].offsetHeight;this.scrollerWidth=this.itemWidth*this.length;this.scrollHeight=this.itemHeight*this.length;this.derection=c.derection||"H";this.stepHeight=c.stepHeight||this.itemHeight;this.stepWidth=c.stepWidth||
this.itemWidth;this.groups=this.derection==="H"?Math.ceil(this.scrollerWidth/this.stepWidth):Math.ceil(this.scrollHeight/this.stepHeight);this.maxMovedNum=this.derection==="H"?this.groups-this.Container.offsetWidth/this.stepWidth:this.groups-this.Container.offsetHeight/this.stepHeight;this.scrollSpeed=c.speed||50;this.init()};a=YAO.Carousel.prototype;a.movedNum=0;a.LNK_BTNS_DISABLED_CLASS="dis";
a.init=function(){if(this.derection==="H")this.Scroller.style.width=this.scrollerWidth+"px";else this.Scroller.style.height=this.scrollerHeight+"px";this.Container.style.overflow="hidden";this.lnkBtnNext&&this.movedNum===this.maxMovedNum&&YAO.addClass(this.lnkBtnNext,this.LNK_BTNS_DISABLED_CLASS);this.lnkBtnPrevious&&this.movedNum===0&&YAO.addClass(this.lnkBtnPrevious,this.LNK_BTNS_DISABLED_CLASS);YAO.on(this.btnPrevious,"click",this.scrollPrevious,this.btnPrevious,this);YAO.on(this.btnNext,"click",
this.scrollNext,this.btnNext,this)};a.scrollPrevious=function(c){c=c||window.event;if(this.movedNum>0){this.movedNum-=1;this.lnkBtnNext&&YAO.hasClass(this.lnkBtnNext,this.LNK_BTNS_DISABLED_CLASS)&&YAO.removeClass(this.lnkBtnNext,this.LNK_BTNS_DISABLED_CLASS);if(this.movedNum<=0){this.movedNum=0;this.lnkBtnPrevious&&YAO.addClass(this.lnkBtnPrevious,this.LNK_BTNS_DISABLED_CLASS)}this.scroll(this.movedNum)}YAO.stopEvent(c)};
a.scrollNext=function(c){c=c||window.event;if(this.movedNum<this.maxMovedNum){this.movedNum+=1;this.lnkBtnPrevious&&YAO.hasClass(this.lnkBtnPrevious,this.LNK_BTNS_DISABLED_CLASS)&&YAO.removeClass(this.lnkBtnPrevious,this.LNK_BTNS_DISABLED_CLASS);if(this.movedNum>=this.maxMovedNum){this.movedNum=this.maxMovedNum;this.lnkBtnNext&&YAO.addClass(this.lnkBtnNext,this.LNK_BTNS_DISABLED_CLASS)}this.scroll(this.movedNum)}YAO.stopEvent(c)};
a.scroll=function(c){var f=0,h=0;if(this.derection==="H")f=this.stepWidth?-(this.stepWidth*c):-(this.itemWidth*c);else h=this.stepHeight?-(this.stepHeight*c):-(this.itemHeight*c);YAO.moveElement(this.Scroller,f,h,this.scrollSpeed)};
YAO.YAlbum=function(){this.oCarousel=new YAO.Carousel({btnPrevious:this.CARSOUEL_BTN_PREVIOUS,Container:this.CARSOUEL_CONTAINER,Scroller:this.CARSOUEL_SCROLLER,btnNext:this.CARSOUEL_BTN_NEXT,items:this.CARSOUEL_ITEM_TAG,stepWidth:this.CARSOUEL_STEP_WIDTH})||null;this.oSamples=this.oCarousel.Scroller.getElementsByTagName("a")||null;this.length=this.oSamples.length||0;this.lastSample=this.oSamples[0]||null;this.photoContainer=YAO.getEl(this.PHOTO_CONTAINER_ID)||null;this.photo=YAO.getEl(this.PHOTO_ID)||
null;this.photoIntro=YAO.getEl(this.PHOTO_INTRO_ID)||null;this.sIntro=this.photo.alt||"";this.init()};a=YAO.YAlbum.prototype;a.lastIndex=0;a.isLoading=false;a.lastPhotoHeight=0;a.loadShardow=null;a.loadImg=null;a.CARSOUEL_BTN_PREVIOUS=YAO.getEl("carousel_btn_lastgroup");a.CARSOUEL_CONTAINER=YAO.getEl("carousel_container");a.CARSOUEL_SCROLLER=YAO.getEl("samples_list");a.CARSOUEL_BTN_NEXT=YAO.getEl("carousel_btn_nextgroup");a.CARSOUEL_ITEM_TAG="li";a.CARSOUEL_STEP_WIDTH=672;a.PHOTO_MAX_WIDTH=800;
a.PHOTO_CONTAINER_ID="carousel_photo_container";a.PHOTO_ID="carousel_photo";a.PHOTO_INTRO_ID="carousel_photo_intro";a.BTN_NEXT_ID="carousel_next_photo";a.BTN_NEXT_CLASS="next";a.BTN_PREVIOUS_ID="carousel_previous_photo";a.BTN_PREVIOUS_CLASS="previous";a.BTN_DISABLED_CLASS="dis";a.IMG_BTN_PREVIOUS="url(img/last-photo.gif)";a.IMG_BTN_NEXT="url(img/next-photo.gif)";a.SHARDOW_ID="carousel_photo_shardow";a.LOAD_IMG_PATH="img/loading.gif";a.LOAD_IMG_ID="carousel_photo_loading";
a.init=function(){var c;YAO.addClass(this.lastSample,"current");this.btnPrevious=YAO.Builder.Node("a",{href:this.oSamples[this.lastIndex].href,id:this.BTN_PREVIOUS_ID,className:this.BTN_PREVIOUS_CLASS,title:"\u6d93\u5a41\u7af4\u5bee\ufffd"},"\u6d93\u5a41\u7af4\u5bee\ufffd");this.photoContainer.appendChild(this.btnPrevious);this.btnNext=YAO.Builder.Node("a",{href:this.oSamples[this.lastIndex+1].href,id:this.BTN_NEXT_ID,className:this.BTN_NEXT_CLASS,title:"\u6d93\u5b29\u7af4\u5bee\ufffd"},"\u6d93\u5b29\u7af4\u5bee\ufffd");this.photoContainer.appendChild(this.btnNext);this.load(this.photo.src);YAO.on(this.btnPrevious,
"click",function(f){f=f||window.event;this.Previous();YAO.stopEvent(f)},this.btnPrevious,this);YAO.on(this.btnNext,"click",function(f){f=f||window.event;this.Next();YAO.stopEvent(f)},this.btnNext,this);for(c=0;c<this.length;++c)YAO.on(this.oSamples[c],"click",function(f){return function(h){h=h||window.event;if(this.lastSample!==this.oSamples[f]&&!this.isLoading){this.lastIndex=f;this.btnsEnabled();this.chgPhoto()}YAO.stopEvent(h)}}(c),this.oSamples[c],this)};
a.btnsEnabled=function(){if(this.lastIndex!==0&&YAO.hasClass(this.btnPrevious,this.BTN_DISABLED_CLASS)){YAO.removeClass(this.btnPrevious,this.BTN_DISABLED_CLASS);if(YAO.ua.ie)this.btnPrevious.style.backgroundImage=this.IMG_BTN_PREVIOUS;this.btnPrevious.href=this.oSamples[this.lastIndex-1]}else if(this.lastIndex===0){YAO.addClass(this.btnPrevious,this.BTN_DISABLED_CLASS);if(YAO.ua.ie)this.btnPrevious.style.backgroundImage="none";this.btnPrevious.href=this.oSamples[this.lastIndex]}if(this.lastIndex!==
this.length-1&&YAO.hasClass(this.btnNext,this.BTN_DISABLED_CLASS)){YAO.removeClass(this.btnNext,this.BTN_DISABLED_CLASS);if(YAO.ua.ie)this.btnNext.style.backgroundImage=this.IMG_BTN_NEXT;this.btnNext.href=this.oSamples[this.lastIndex+1]}else if(this.lastIndex===this.length-1){YAO.addClass(this.btnNext,this.BTN_DISABLED_CLASS);if(YAO.ua.ie)this.btnNext.style.backgroundImage="none";this.btnNext.href=this.oSamples[this.lastIndex]}};
a.load=function(c){var f=new Image,h=document.createDocumentFragment();f.src=c;if(f.complete)this.resize(f);else{this.isLoading=true;this.loadShardow=YAO.Builder.Node("div",{id:this.SHARDOW_ID});this.loadImg=YAO.Builder.Node("img",{src:this.LOAD_IMG_PATH,id:this.LOAD_IMG_ID});h.appendChild(this.loadShardow);if(YAO.ua.ie)this.loadShardow.style.height=this.lastPhotoHeight?this.lastPhotoHeight+"px":this.photoContainer.offsetHeight+"px";h.appendChild(this.loadImg);this.photoContainer.appendChild(h);YAO.on(f,
"load",function(){this.resize(f)},f,this)}};
a.resize=function(c){var f=c.width;c=c.height;var h=f/c;if(f>this.PHOTO_MAX_WIDTH){f=this.PHOTO_MAX_WIDTH;c=f/h}if(YAO.ua.ie){this.lastPhotoHeight=c;YAO.setStyles(this.btnPrevious,{height:c+"px",backgroundImage:this.IMG_BTN_PREVIOUS});YAO.setStyles(this.btnNext,{height:c+"px",backgroundImage:this.IMG_BTN_NEXT})}if(this.lastIndex===0){YAO.addClass(this.btnPrevious,this.BTN_DISABLED_CLASS);if(YAO.ua.ie)this.btnPrevious.style.backgroundImage="none"}if(this.lastIndex===this.length-1){YAO.addClass(this.btnNext,
this.BTN_DISABLED_CLASS);if(YAO.ua.ie)this.btnNext.style.backgroundImage="none"}this.photoIntro.innerHTML=this.sIntro;YAO.setStyle(this.photoContainer,"width",f+"px");YAO.setStyles(this.photo,{width:f+"px",height:c+"px"});if(this.loadImg&&this.loadShardow){this.isLoading=false;this.photoContainer.removeChild(this.loadImg);this.loadImg=null;this.photoContainer.removeChild(this.loadShardow);this.loadShardow=null}};
a.Previous=function(){if(this.lastIndex!==0){this.lastIndex-=1;YAO.hasClass(this.btnNext,this.BTN_DISABLED_CLASS)&&YAO.removeClass(this.btnNext,this.BTN_DISABLED_CLASS);if(this.lastIndex>=1)this.btnPrevious.href=this.oSamples[this.lastIndex-1].href;if(this.lastIndex<0){this.lastIndex=0;YAO.addClass(this.btnPrevious,this.BTN_DISABLED_CLASS);this.btnPrevious.href=this.oSamples[this.lastIndex].href}this.btnNext.href=this.oSamples[this.lastIndex+1].href;this.chgPhoto()}};
a.Next=function(){if(this.lastIndex<this.length-1){this.lastIndex+=1;YAO.hasClass(this.btnPrevious,this.BTN_DISABLED_CLASS)&&YAO.removeClass(this.btnPrevious,this.BTN_DISABLED_CLASS);if(this.lastIndex<=this.length-2)this.btnNext.href=this.oSamples[this.lastIndex+1].href;if(this.lastIndex>this.length-1){this.lastIndex=this.length-1;YAO.addClass(this.btnNext,this.BTN_DISABLED_CLASS);this.btnNext.href=this.oSamples[this.lastIndex].href}this.btnPrevious.href=this.oSamples[this.lastIndex-1].href;this.chgPhoto()}};
a.chgPhoto=function(){var c="";this.sIntro=this.oSamples[this.lastIndex].title;c=this.oSamples[this.lastIndex].href;YAO.removeClass(this.lastSample,"current");YAO.addClass(this.oSamples[this.lastIndex],"current");this.lastSample=this.oSamples[this.lastIndex];this.photo.src=c;this.load(c);this.scroll()};
a.scroll=function(){var c=Math.ceil((this.lastIndex+1)*this.oCarousel.itemWidth/this.oCarousel.stepWidth)-1;if(c!=this.oCarousel.movedNum){this.oCarousel.scroll(c);this.oCarousel.movedNum=c;if(this.oCarousel.movedNum!==0&&YAO.hasClass(this.oCarousel.lnkBtnPrevious,this.BTN_DISABLED_CLASS))YAO.removeClass(this.oCarousel.lnkBtnPrevious,this.BTN_DISABLED_CLASS);else this.oCarousel.movedNum===0&&YAO.addClass(this.oCarousel.lnkBtnPrevious,this.BTN_DISABLED_CLASS);if(this.oCarousel.movedNum!==this.oCarousel.maxMovedNum&&
YAO.hasClass(this.oCarousel.lnkBtnNext,this.BTN_DISABLED_CLASS))YAO.removeClass(this.oCarousel.lnkBtnNext,this.BTN_DISABLED_CLASS);else this.oCarousel.movedNum===this.oCarousel.maxMovedNum&&YAO.addClass(this.oCarousel.lnkBtnNext,this.BTN_DISABLED_CLASS)}};function bindMouseOver(c,f,h,l,k){return function(){moveElement(c,0,-227*k,5);classNormal(f,h);classCurrent(f,h,k)}}function focus(c,f,h,l,k){this.id=c;this.bid=f;this.pid=h;this.tid=l;this.autoKey=k}
focus.prototype.iFocusChange=function(){if(!document.getElementById(this.id))return false;document.getElementById(this.id).onmouseover=function(){this.autoKey=true};document.getElementById(this.id).onmouseout=function(){this.autoKey=false};for(var c=document.getElementById(this.bid).getElementsByTagName("td"),f=c.length,h=0;h<f;h++)c[h].onmouseover=bindMouseOver(this.pid,this.bid,this.tid,c[h],h)};
focus.prototype.setFocusInterval=function(){setInterval('autoiFocus("'+this.id+'","'+this.bid+'","'+this.pid+'","'+this.tid+'","'+this.autoKey+'")',2E3)};
function autoiFocus(c,f,h,l,k){if(!document.getElementById(c))return false;if(k==false)return false;c=document.getElementById(f).getElementsByTagName("td");k=c.length;for(var o=0;o<k;o++)if(c[o].className=="current")var b=o;if(b<k-1&&k!=b+1){moveElement(h,0,-(227*(b+1)),5);classNormal(f,l);classCurrent(f,l,b+1)}if(k==b+1&&b>0){moveElement(h,0,0,5);classNormal(f,l);classCurrent(f,l,0)}}
function addLoadEvent(c){if(c!=null){var f=window.onload;window.onload=typeof window.onload!="function"?c:function(){f();c()}}}
function moveElement(c,f,h,l){if(!document.getElementById)return false;if(!document.getElementById(c))return false;var k=document.getElementById(c);k.movement&&clearTimeout(k.movement);if(!k.style.left)k.style.left="0px";if(!k.style.top)k.style.top="0px";var o=parseInt(k.style.left),b=parseInt(k.style.top);if(o==f&&b==h)return true;if(o<f){var d=Math.ceil((f-o)/10);o+=d}if(o>f){d=Math.ceil((o-f)/10);o-=d}if(b<h){d=Math.ceil((h-b)/10);b+=d}if(b>h){d=Math.ceil((b-h)/10);b-=d}k.style.left=o+"px";k.style.top=
b+"px";k.movement=setTimeout("moveElement('"+c+"',"+f+","+h+","+l+")",l)}function classNormal(c,f){c=document.getElementById(c).getElementsByTagName("td");f=document.getElementById(f).getElementsByTagName("li");for(var h=0;h<c.length;h++){c[h].className="normal";if(f.length>h)f[h].className="normal"}}
function classCurrent(c,f,h){c=document.getElementById(c).getElementsByTagName("td");f=document.getElementById(f).getElementsByTagName("li");c[h].className="current";if(f.length>h)f[h].className="current"}if(typeof sas=="undefined")var sas={};if(typeof sas.ued=="undefined")sas.ued={};if(typeof sas.ued.util=="undefined")sas.ued.util={};if(typeof sas.ued.FlashObjectUtil=="undefined")sas.ued.FlashObjectUtil={};
sas.ued.FlashObject=function(c,f,h,l,k,o,b,d,e,g,i){if(document.createElement&&document.getElementById){this.DETECT_KEY=i?i:"detectflash";this.skipDetect=sas.ued.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];this.useExpressInstall=b;c&&this.setAttribute("swf",c);f&&this.setAttribute("id",f);h&&this.setAttribute("width",h);l&&this.setAttribute("height",l);k&&this.setAttribute("version",new sas.ued.PlayerVersion(k.toString().split(".")));this.installedVer=
sas.ued.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),b);o&&this.addParam("bgcolor",o);this.addParam("quality",d?d:"high");this.setAttribute("xiRedirectUrl",e?e:window.location);this.setAttribute("redirectUrl","");g&&this.setAttribute("redirectUrl",g)}};
sas.ued.FlashObject.prototype={setAttribute:function(c,f){this.attributes[c]=f},getAttribute:function(c){return this.attributes[c]},addParam:function(c,f){this.params[c]=f},getParams:function(){return this.params},addVariable:function(c,f){this.variables[c]=f},getVariable:function(c){return this.variables[c]},getVariables:function(){return this.variables},createParamTag:function(c,f){var h=document.createElement("param");h.setAttribute("name",c);h.setAttribute("value",f);return h},getVariablePairs:function(){var c=
[],f,h=this.getVariables();for(f in h)c.push(f+"="+h[f]);return c},getFlashHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){this.getAttribute("doExpressInstall")&&this.addVariable("MMplayerType","PlugIn");c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();
for(var h in f)c+=[h]+'="'+f[h]+'" ';f=this.getVariablePairs().join("&");if(f.length>0)c+='flashvars="'+f+'"';c+="/>"}else{this.getAttribute("doExpressInstall")&&this.addVariable("MMplayerType","ActiveX");c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />';f=this.getParams();for(h in f)c+='<param name="'+h+'" value="'+
f[h]+'" />';f=this.getVariablePairs().join("&");if(f.length>0)c+='<param name="flashvars" value="'+f+'" />';c+="</object>"}return c},write:function(c){if(this.useExpressInstall){if(this.installedVer.versionIsValid(new sas.ued.PlayerVersion([6,0,65]))&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title)}}else this.setAttribute("doExpressInstall",false);if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version")))(typeof c=="string"?document.getElementById(c):c).innerHTML=this.getFlashHTML();else this.getAttribute("redirectUrl")!=""&&document.location.replace(this.getAttribute("redirectUrl"))}};
sas.ued.FlashObjectUtil.getPlayerVersion=function(c,f){var h=new sas.ued.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){if((c=navigator.plugins["Shockwave Flash"])&&c.description)h=new sas.ued.PlayerVersion(c.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else{try{for(var l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),k=3;l!=null;k++){l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+k);h=new sas.ued.PlayerVersion([k,0,0])}}catch(o){}if(c&&
h.major>c.major)return h;if(!c||(c.minor!=0||c.rev!=0)&&h.major==c.major||h.major!=6||f)try{h=new sas.ued.PlayerVersion(l.GetVariable("$version").split(" ")[1].split(","))}catch(b){}}return h};sas.ued.PlayerVersion=function(c){this.major=parseInt(c[0])||0;this.minor=parseInt(c[1])||0;this.rev=parseInt(c[2])||0};
sas.ued.PlayerVersion.prototype.versionIsValid=function(c){if(this.major<c.major)return false;if(this.major>c.major)return true;if(this.minor<c.minor)return false;if(this.minor>c.minor)return true;if(this.rev<c.rev)return false;return true};sas.ued.util={getRequestParameter:function(c){var f=document.location.search||document.location.href.hash;if(f){c=f.indexOf(c+"=");var h=f.indexOf("&",c)>-1?f.indexOf("&",c):f.length;if(f.length>1&&c>-1)return f.substring(f.indexOf("=",c)+1,h)}return""}};
if(Array.prototype.push==null)Array.prototype.push=function(c){this[this.length]=c;return this.length};var getQueryParamValue=sas.ued.util.getRequestParameter,sohuFlash=sas.ued.FlashObject;function Cookie(c,f,h,l,k,o){this.$document=c;this.$name=f;this.$expiration=h?new Date((new Date).getTime()+h*36E5):null;this.$path=l?l:null;this.$domain=k?k:null;this.$secure=o}
Cookie.prototype.store=function(){var c="";for(var f in this)if(!(f.charAt(0)=="$"||typeof this[f]=="function")){if(c!="")c+="&";c+=f+":"+escape(this[f])}c=this.$name+"="+c;if(this.$expiration)c+="; expires="+this.$expiration.toGMTString();if(this.$path)c+="; path="+this.$path;if(this.$domain)c+="; domain="+this.$domain;if(this.$secure)c+="; secure";this.$document.cookie=c};
Cookie.prototype.load=function(){var c=this.$document.cookie;if(c=="")return false;var f=c.indexOf(this.$name+"=");if(f==-1)return false;f+=this.$name.length+1;var h=c.indexOf(";",f);if(h==-1)h=c.length;c=c.substring(f,h).split("&");for(f=0;f<c.length;f++)c[f]=c[f].split(":");for(f=0;f<c.length;f++)this[c[f][0]]=unescape(c[f][1]);return true};
Cookie.prototype.remove=function(){var c;c=this.$name+"=";if(this.$path)c+="; path="+this.$path;if(this.$domain)c+="; domain="+this.$domain;c+="; expires=Fri, 02-Jan-1970 00:00:00 GMT";this.$document.cookie=c};
