/*! Copyright 2011 Baidu Inc. All Rights Reserved. */
(function(){function l(a){var b=e[a];e[a]=void 0;return b}function C(a){return(a=RegExp("(^| )"+a+"=([^;]*)(;|$)").exec(f.cookie))&&a[2]?decodeURIComponent(a[2]):""}function D(a){a=a||f.domain;a.indexOf("www.")===0&&(a=a.substr(4));var b=a.match(/([a-z0-9][a-z0-9\-]*?\.(?:com|cn|net|org|gov|info|la|cc|co|jp)(?:\.(?:cn|jp))?)$/);return b?b[0]:a}function M(){if(m.plugins&&m.mimeTypes.length){var a=m.plugins["Shockwave Flash"];if(a&&a.description)return a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,
".")+".0"}else if(e.ActiveXObject&&!e.opera)for(a=10;a>=2;a--)try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);if(b)return b.GetVariable("$version").replace(/WIN/g,"").replace(/,/g,".")}catch(c){}return""}function N(){var a=f.referrer,b=a.replace(/^https?:\/\//,""),b=b.split("/")[0],b=b.split(":")[0],b=D(b),c=D(),d=C("BAIDU_CLB_REFER");return d&&c===b?encodeURIComponent(d):c!==b?(b=new Date,f.cookie="BAIDU_CLB_REFER="+encodeURIComponent(a)+";expires="+b.toGMTString()+(c?";domain="+
encodeURIComponent(c):""),encodeURIComponent(a)):""}function E(a){return typeof a==="number"?Math.floor(a):/^\d+$/.test(a)?+a:-1}function O(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c,!1)}function h(a,b){return e[a]?e[a]:e[a]=b}function r(a){return"baidu_clb_slot_"+a}function w(a){return"baidu_clb_slot_iframe_"+a}function P(a){var b=a.id,c;a:{var d=a.htmlCode.split("|");c=d.length;for(var o=0;o<c;o++){var j=d[o].split("=");if(j[0]==="cpro_template"){c=j[1].split("_")[1].indexOf("xuanfu")===
0?!0:!1;break a}}c=!1}d=c?Q:R;c=e[c?"BAIDU_CLB_CPROFSLOT":"BAIDU_CLB_CPROCSLOT"];a=g[a.id];c?c(b,a):(e.tempClbCproAdObj=a,e.tempClbCproAdSlotId=b,f.write('<script charset="utf-8" src="../精致漂亮的宽屏jquery幻灯滑动代码_酷站代码 www_5icool_org_files/'+d+'"><\/script>'));g[b]._done=!0;i(b,!0)}function S(a){a.htmlCode?(e.BAIDU_DAN_readySlotId=a.id,f.write('<script charset="utf-8" src="'+T+'"><\/script>'),g[a.id]._done=!0,i(a.id,!0)):i(a.id,!1)}function U(a){if(!a.htmlCode&&!a.holdPlace)g[a.id]._done=!0,i(a.id,!1);else{if(a.htmlCode&&a.multimediaType)g[a.id]._done=
!0,f.write(a.htmlCode);else{var b='<div id="'+r(a.id)+'">'+x(a)+"</div>";f.write(b)}i(a.id,!0)}}function F(a){if(a.htmlCode)if(f.body){var b=f.createElement("div"),c=b.style;b.id=r(a.id);c.width=a.width+"px";c.height=a.height+17+"px";c.overflow="hidden";c.zIndex=2147483647;a.scroll?G()?(c.position="fixed",c[a.alignLeft?"left":"right"]=a.horizontalSpace+"px",c[a.alignTop?"top":"bottom"]=a.verticalSpace+"px"):(c.position="absolute",y(a,b),e.attachEvent("onscroll",function(){y(a)}),e.attachEvent("onresize",
function(){y(a)})):(c.position="absolute",c[a.alignLeft?"left":"right"]=a.horizontalSpace+"px",c[a.alignTop?"top":"bottom"]=a.verticalSpace+"px");f.body.insertBefore(b,f.body.firstChild);c=x(a);c+='<div style="height:15px;border:1px solid #e1e1e1;background:#f0f0f0;margin:0;padding:0;overflow:hidden;"><span style="float:right;clear:right;margin:2px 5px 0 0;width:39px;height:13px;cursor:pointer;background:url('+V+') no-repeat scroll 0 0;" onmouseover="this.style.backgroundPosition=\'0 -20px\';" onmouseout="this.style.backgroundPosition=\'0 0\';" onclick="this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode);"></span></div>';
b.innerHTML=c;i(a.id,!0)}else O(e,"load",function(){F(a)});else g[a.id]._done=!0,i(a.id,!1)}function W(a){g[a.id]._done=!0;i(a.id,!!a.htmlCode);if(a.htmlCode){var b=["height="+a.height,"width="+a.width,"top="+(a.alignTop?a.verticalSpace:k.availHeight-a.verticalSpace-a.height),"left="+(a.alignLeft?a.horizontalSpace:k.availWidth-a.horizontalSpace-a.width),"toolbar=no","menubar=no","scrollbars=no","resizble=no","location=no","status=no"],b=b.join(","),c=a.htmlCode;c.indexOf("<body>")<0&&(c="<!DOCTYPE html><body>"+
c);if(a.openOnLoad||e.addEventListener){var d=e.open(s(),"clb"+ +new Date,b),f=+new Date+3E4,j=function(){try{if(d.document){var b=d.document;b.open("text/html","replace");b.write(c);b.close();d.focus();a.stayTime>0&&setTimeout(function(){d&&d.close()},a.stayTime*1E3)}}catch(e){new Date<f?setTimeout(j,200):g[a.id]._done="PermissionDenied"}};d&&setTimeout(j,0)}else e.attachEvent("onunload",function(){var a=e.event;if(a.clientY<0&&!a.ctrlKey||a.altKey)if(a="about:blank",t()&&(a='javascript:void(function(){var d=document;d.open();d.domain="'+
document.domain+'";d.write("");d.close();}())'),a=e.open(a,"clb"+ +new Date,b))try{var d=a.document;d.open("text/html","replace");d.write(c);d.close();a.focus()}catch(f){}})}}function p(a){var b=g[a];return!b?null:{id:a,slotType:b._stype,htmlCode:b._html,holdPlace:b._fxp,multimediaType:b._isMlt,width:b._w,height:b._h,alignLeft:b._left,alignTop:b._top,horizontalSpace:b._vs,verticalSpace:b._hs,stayTime:b._st,scroll:b._sf,openOnLoad:b._bf,done:b._done,filled:b._filled,flagRendered:b._fr!==!1}}function y(a,
b){if(b=b||f.getElementById(r(a.id))){var c=b.style,d=H?f.body:f.documentElement,o=d.clientWidth,j=d.clientHeight,g=e.pageXOffset||d.scrollLeft,d=e.pageYOffset||d.scrollTop;c.top=a.alignTop?d+a.verticalSpace+"px":d+j-a.verticalSpace-a.height-17+"px";c.left=a.alignLeft?g+a.horizontalSpace+"px":g+o-a.horizontalSpace-a.width+"px"}}function s(){return t()?z.domainPolicyFileUrl||"/domain-policy.htm":"about:blank"}function x(a){var b=a.frameId||w(a.id),c=a.frameSrc||s();return'<iframe id="'+b+'" src="'+
c+'" '+(a.frameSrc?"":"onload=\"BAIDU_CLB_renderFrame('"+a.id+"')\"")+'width="'+a.width+'" height="'+a.height+'" vspace="0" hspace="0" allowTransparency="true" scrolling="no" marginHeight="0" marginWidth="0"frameborder="0" style="border: 0; vertical-align: bottom; margin: 0; display: block;"></iframe>'}function i(a,b){if(p(a).flagRendered)e.BAIDU_CLB_adRendered=b}function I(a,b){if(a&&X.test(a)&&b){for(var b=Object.prototype.toString.call(b)=="[object Array]"?b:Array.prototype.slice.call(arguments,
1),c=q[a]||[],d=b.length,f=0;f<d;f++){var e=b[f];typeof e==="string"&&Y.test(e)&&(c[c.length]=e)}if(c.length){for(var d=q,f={},e=[],g=c.length,h=0;h<g;h++){var i=c[h];f[i]||(e[e.length]=i,f[i]=!0)}d[a]=e}}}function Z(){var a=[],b;for(b in q)if(u.call(q,b)){var c=b+"="+q[b].join(",");a[a.length]=c}a.sort(function(a,b){return a.length-b.length});b="";for(var c=a.length,d=0;d<c;d++){if(b.length+a[d].length>1500)break;b+="&"+a[d]}return b}function A(){}function B(a,b){var c=["di="+(a instanceof Array?
a.join(","):a),"fn="+b,"tm=BAIDU_CLB_SETJSONADSLOT","mod_t="+ +new Date(f.lastModified),"visi_t="+ +new Date,"flash_v="+M(),"java="+(m.javaEnabled()?1:0),"screen_h="+k.height,"screen_w="+k.width,"page_h="+k.availHeight,"page_w="+k.availWidth,"color="+k.colorDepth,"asp_refer="+N(),"asp_url="+encodeURIComponent(f.URL),"b_lang="+encodeURIComponent(m.language||m.browserLanguage),"new=1","baidu_id="+C("BAIDUID")];return $+"?"+c.join("&")+Z()}function J(a){var b=K(a);if(a=p(b)){g[b]._filled=!0;e.BAIDU_CLB_adRendered=
void 0;if(a.multimediaType===2)b=P;else if(a.multimediaType===3)b=S;else switch(a.slotType){case 0:case 3:b=U;break;case 1:b=F;break;default:b=W}b(a)}}function K(a){for(var b in a)if(u.call(a,b))return a=a[b],typeof g[b]!=="object"&&(g[b]=a),b;return""}function v(a){if(a){var b=g[a];if(typeof b==="object"){if(!b._filled){b._filled=!0;var c={};c[a]=b;J(c)}}else g[a]=!0,a=B(a,"BAIDU_CLB_SETJSONADSLOT"),f.write('<script charset="utf-8" src="'+a+'"><\/script>')}}function L(a,b,c){b=E(b);c=E(c);if(b<0||
c<0)v(a);else{e.BAIDU_CLB_adRendered=void 0;var d=p(a);d?v(a):(g[a]={_w:b,_h:c,_filled:!0,_done:!0},d=p(a),d.frameId="baidu_clb_slot_proxy_"+a,b=B(a,"BAIDU_CLB_SETJSONADSLOT"),d.frameSrc=aa+"#"+encodeURIComponent(b),d=x(d),f.write(d),i(a,!0))}}function n(a,b){var c=b||{},d=new Image,g="log"+new Date,h=ba+"?_="+ +new Date+"&type="+encodeURIComponent(a)+"&url="+encodeURIComponent(f.URL),i;for(i in c)u.call(c,i)&&(h+="&"+encodeURIComponent(i)+"="+encodeURIComponent(c[i]));e[g]=d;d.onload=d.onerror=d.onabort=
function(){d.onload=d.onerror=d.onabort=null;try{delete e[g]}catch(a){e[g]=void 0}};d.src=h}var e=window,k=e.screen,m=e.navigator,f=e.document,H=f.compatMode!=="CSS1Compat",g=h("BAIDU_CLB_SLOTS_MAP",{}),u=Object.prototype.hasOwnProperty,$="http://cb.baidu.com/ecom",T="http://cbjs.baidu.com/js/dn.js",Q="http://cpro.baidu.com/cpro/ui/cf.js",R="http://cpro.baidu.com/cpro/ui/cc.js",V="http://drmcmm.baidu.com/js/img/close.gif",ba="http://220.181.111.115/log",aa="http://cbjs.baidu.com/js/proxy.htm",G=function(){var a=
f.createElement("div"),b=f.createElement("div"),c=!1;a.style.position="absolute";a.style.top="200px";b.style.position="fixed";b.style.top="100px";a.appendChild(b);f.body.insertBefore(a,f.body.firstChild);b.getBoundingClientRect&&b.getBoundingClientRect().top!==a.getBoundingClientRect().top&&(c=!0);f.body.removeChild(a);G=function(){return c};return c},t=function(){var a=f.createElement("iframe"),b=!1;a.src="about:blank";f.body.insertBefore(a,f.body.firstChild);try{b=!a.contentWindow.document}catch(c){b=
!0}f.body.removeChild(a);t=function(){return b};return b},z=h("BAIDU_CLB_globalConfig",{});h("BAIDU_CLB_setConfig",function(a,b){z[a]=b});(function(a,b){var c=l(b);c&&(z[a]=c)})("domainPolicyFileUrl","BAIDU_CLB_domainPolicyFileUrl");h("BAIDU_CLB_renderFrame",function(a){var b=document.getElementById(w(a)),c=p(a);if(t()&&b.getAttribute("src",2)!==s())b.src=s();else if(c&&!c.done)try{g[a]._done=!0;var d=c.htmlCode;d.indexOf("<body>")<0&&(d="<!DOCTYPE html><body>"+d);var f=b.contentWindow.document;f.open("text/html",
"replace");f.write(d);f.close();if(f.body)f.body.style.backgroundColor="transparent";c.slotType===1&&c.stayTime>0&&setTimeout(function(){var b=document.getElementById(r(a));b&&b.parentNode.removeChild(b)},c.stayTime*1E3)}catch(e){g[a]._done="PermissionDenied"}});var q=h("BAIDU_CLB_orientations",{}),X=/^[0-9a-zA-Z]+$/,Y=/^[0-9a-zA-Z_]+$/;h("BAIDU_CLB_addOrientation",I);(function(){var a=l("BAIDU_CLB_ORIENTATIONS");if(a)for(var b in a)u.call(a,b)&&I(b,a[b])})();h("BAIDU_CLB_addSlot",A);h("BAIDU_CLB_enableAllSlots",
A);h("BAIDU_CLB_SETHTMLSLOT",A);h("BAIDU_CLB_SETJSONADSLOT",J);h("BAIDU_CLB_ADDAD",K);h("BAIDU_CLB_fillSlot",v);h("BAIDU_CLB_singleFillSlot",v);h("BAIDU_CLB_preloadSlots",function(a){function b(a){a=B(a,"BAIDU_CLB_ADDAD");f.write('<script charset="utf-8" src="'+a+'"><\/script>')}for(var c=[],d=arguments.length,e=0;e<d;e++){var h=arguments[e];g[h]||(c[c.length]=h,g[h]=!0);c.length>=16&&(b(c),c=[])}c.length&&b(c)});h("BAIDU_CLB_fillSlotWithSize",L);(function(){var a=l("BAIDU_CLB_SLOT_ID"),b=l("BAIDU_CLB_SLOT_WIDTH"),
c=l("BAIDU_CLB_SLOT_HEIGHT");L(a,b,c)})();(function(){var a=l("BAIDU_CLB_JSONP_URL");a&&f.write('<script charset="utf-8" src="'+a+'"><\/script>')})();(function(){if(!e.BAIDU_CLB_logOK){e.BAIDU_CLB_logOK=!0;try{f.domain!==e.location.hostname&&n("domain",{domain:f.domain}),H&&n("quirks"),function(){var a=f.domain;a.indexOf("www.")===0&&(a=a.substring(4));/([a-z0-9][a-z0-9\-]*?\.(?:com|cn|net|org|gov|info|la|cc|co|jp)(?:\.(?:cn|jp))?)$/.test(a)||n("domainNotMatch")}(),function(){function a(){for(var b in g){var d=
g[b];if(typeof d!=="object")n("loadFail",{id:b});else if(d._done!==!0)n("renderFail",{id:b,qid:g[b]._qid,error:d._done||"NotFilled"});else{var e=f.getElementById(w(b));if(!e)break;try{var h=e.contentWindow.document.body;(!h||!h.firstChild)&&n("renderEmpty",{id:b,qid:d._qid,stype:d._stype})}catch(i){}}}}e.addEventListener?e.addEventListener("load",a,!1):e.attachEvent("onload",a)}()}catch(a){}}})()})();
