window.global_top={};(function(){var b=window.global_top,c,g,h;function n(d,e,f){d.visibility=h?"hidden":"visible";d.left=e+"px";d.top=f+"px"}b.tg=function(d){var e=0,f=0,a,i=0,o,l=window.navExtra,m,j=document,k=0;g=g||j.getElementById("global_top").getElementsByTagName("span");(d||window.event).cancelBubble=!i;if(!c){c=j.createElement(Array.every||window.createPopup?"iframe":"DIV");c.frameBorder="0";c.scrolling="no";c.src="#";g[7].parentNode.appendChild(c).id="sbi";if(l&&g[7])for(o in l){m=j.createElement("span");m.appendChild(l[o]);g[7].parentNode.insertBefore(m,g[7]).className="sb2"}j.onclick=b.close}while(a=g[++i]){if(f){n(a.style,f+1,e+25);{e+=9;if(!(a.firstChild.tagName=="DIV")){e+=11;k=Math.max(k,a.offsetWidth)}}}if(a.className=="sb3"){do f+=a.offsetLeft;while(a=a.offsetParent)}}{i=0;while(a=g[++i])if(a.className=="sb2")a.style.width=k+"px";c.style.width=k+"px"}c.style.height=e+"px";n(c.style,f,24);h=!h};b.close=function(d){h&&b.tg(d)}})();function initT(code){var themeCode="default";if(code!=""){themeCode=code;};createCSSFile(commCSSPath+"pai_global_zone");initTheme(themeCode);};function initTheme(code){var cssdir="";cssdir=code;var path=themePath+cssdir+"/default";createCSSFile(path);};var toolBoxShowing=false;function toolBoxSlide(abox){if(toolBoxShowing){hideToolBox(abox);toolBoxShowing=false;}else{showToolBox(abox);toolBoxShowing=true;};};function hideToolBox(abox){if(document.getElementById(abox)!=null){var boxobj=document.getElementById(abox).id;hidBoxs(boxobj);};};function initCT(screenWidth,topImage,photoHeight,bannerVisibility,topPlace,topRepeat,xPlace,yPlace,thCode,bgColor,bgImage,bgPlace,bgRepeat,bgFix,headerColor,footerColor,otherColor,titleImage,titleImageHeight,titleColor,titleBgColor,titleImageStyle,modBgColor,fontColor,linkColor,hoverColor,layerColor,borderColor,borderWidth,isShare,isCustom){var custom=0;if(document.getElementById("IsCustom")!=null){custom=document.getElementById("IsCustom").value;}else{custom=isCustom;};initT(thCode);var cssTxt="";cssTxt="#bgPanel {";if(bgImage!=""&&bgImage.indexOf('theme')==-1){cssTxt+='background-image: url('+bgImage+');';};if(bgRepeat!=""){cssTxt+='background-repeat:'+bgRepeat+';';};if(bgPlace!=""){cssTxt+='background-position:'+bgPlace+';';};if(bgFix!=""){cssTxt+='background-attachment: '+bgFix+';';};cssTxt+="}";var display="block";var topImage=topImage;if(bannerVisibility=="hidden"){display="none";topImage="";};cssTxt+="#zone_top {";if(topImage!=""&&topImage.indexOf('theme')==-1){if(bannerVisibility=="hidden"){cssTxt+='background-image: url();';}else{cssTxt+='background-image: url('+topImage+');';};}else{if(bannerVisibility=="hidden"){cssTxt+='background-image: url();';};};if(topRepeat!=""){cssTxt+='background-repeat:'+topRepeat+';';};if(topPlace!=""){cssTxt+='background-position:'+topPlace+';';};if(photoHeight!=""){if(bannerVisibility=="hidden"){cssTxt+='HEIGHT:20px;';}else{cssTxt+='HEIGHT:'+photoHeight+'px;';};}else{if(bannerVisibility=="hidden"){cssTxt+='HEIGHT:20px;';};};cssTxt+="}";if(photoHeight!=""){if(window.XMLHttpRequest){if(bannerVisibility=="hidden"){cssTxt+='#zone_top_sizer{display:'+display+'}';}else{cssTxt+='#zone_top_sizer{HEIGHT:'+(photoHeight-20)+'px}';};}else{if(bannerVisibility=="hidden"){cssTxt+='#zone_top_sizer{display:'+display+'}';}else{cssTxt+='#zone_top_sizer{HEIGHT:'+(photoHeight-30)+'px}';};};}else{if(bannerVisibility=="hidden"){cssTxt+='#zone_top_sizer{display:'+display+'}';};};if(bannerVisibility=="hidden"){cssTxt+='#zone_top_sizer{display:'+display+'}';};if(screenWidth!='auto'){screenWidth=screenWidth+'px';if(window.XMLHttpRequest&&screenWidth=='780px'){screenWidth='930px';};};cssTxt+='#zonePanel{CLEAR: left; FONT-SIZE: 100%; MARGIN: auto; OVERFLOW: hidden; WIDTH: '+screenWidth+'; TEXT-ALIGN: left;BACKGROUND-COLOR: transparent}';if(screenWidth=='780px'){cssTxt+='.playout {ZOOM: 1;PADDING: 20px 25px 0px 5px; *PADDING: 20px 25px 0px 5px!important; *PADDING: 20px 25px 0px 5px}';};if(isShare==1||custom==1||document.location.href.indexOf('demo.h')!=-1){if(xPlace!=0){cssTxt+='#zone_top_sizer{TEXT-ALIGN: LEFT}';cssTxt+='#zone_title,#zone_desc{TEXT-ALIGN: LEFT;PADDING-LEFT: '+(parseInt(xPlace)+30)+'px}';}else{cssTxt+='#zone_top_sizer{TEXT-ALIGN: center}';cssTxt+='#zone_title,#zone_desc{TEXT-ALIGN: center;PADDING-LEFT: '+(parseInt(xPlace)+30)+'px}';};cssTxt+='#zone_title{margin-top: '+(parseInt(yPlace)+18)+'px}';cssTxt+=".modtitle {";if(titleImage!=""&&titleImage.indexOf('theme')==-1&&titleBgColor!="transparent"){cssTxt+='background-image: url('+titleImage+');';}else{if(titleBgColor=="transparent"){cssTxt+='background-image: url();';};};if(titleImageHeight<22){cssTxt+='HEIGHT:'+titleImageHeight+'px';};cssTxt+="}";if(bgColor!=""){cssTxt+='body {background-color: '+bgColor+'}';var vbgColor=bgColor;vbgColor=vbgColor.toUpperCase();if(vbgColor=='#FFFFFF'&&headerColor==""&&footerColor==""&&otherColor==""){cssTxt+='#zone_title,#zone_desc,#zone_tool,#zone_tool A,#footer_txt,#footer_txt A {COLOR: #000000}';}else if(vbgColor=='#000000'&&headerColor==""&&footerColor==""&&otherColor==""){cssTxt+='#zone_title,#zone_desc,#zone_tool,#zone_tool A,#footer_txt,#footer_txt A {COLOR: #FFFFFF}';};};if(headerColor!=""){cssTxt+='#zone_title,#zone_desc{COLOR: '+headerColor+'}';};if(footerColor!=""){cssTxt+='#footer_txt,#footer_txt A {COLOR: '+footerColor+'}';};if(otherColor!=""){cssTxt+='#zone_tool,#zone_tool A {COLOR: '+otherColor+'}';};if(fontColor!=""){cssTxt+='body,A.alt {color: '+fontColor+';}';};if(linkColor!=""){cssTxt+='A:link,A:active,A:visited,A.mtlink,.edittab A {color: '+linkColor+'}';};if(hoverColor!=""){cssTxt+='A:hover,A.alt:hover,A.mtlink:hover {color: '+hoverColor+'}';};if(titleBgColor!=""){cssTxt+='.modbox,.modtitle {background-color: '+titleBgColor+'}';};if(modBgColor!=""){cssTxt+='.modboxin {background-color: '+modBgColor+'}';}else{cssTxt+='.modboxin {background-color: '+layerColor+'}';};if(modBgColor=="transparent"){cssTxt+='.modbox {background-color: '+modBgColor+'}';};if(titleBgColor=="transparent"){cssTxt+='.modbox {background-color: '+titleBgColor+'}';};if(titleColor!=""){cssTxt+='.modtitle {color: '+titleColor+'}';};if(borderWidth!=""){if(borderWidth=="undefined"||borderWidth==""){cssTxt+='.modtitle,.modboxin,list_uline,list_dline,list_hline,list_fline,.modMenu li{border-color:'+borderColor+'}';}else{cssTxt+='.modtitle,.modboxin,list_uline,list_dline,list_hline,list_fline,.modMenu li{border-color:'+borderColor+';border-width:'+borderWidth+'px}';};};if(borderColor!=""){if(borderColor=="undefined"||borderColor==""){cssTxt+='.modtitle,.modboxin,list_uline,list_dline,list_hline,list_fline,.modMenu li{border-width:'+borderWidth+'}';}else{cssTxt+='.modtitle,.modboxin,list_uline,list_dline,list_hline,list_fline,.modMenu li{border-color:'+borderColor+';border-width:'+borderWidth+'px}';};};};createCss(cssTxt);var globalTopObj=document.getElementById("global_top");globalTopObj.insertBefore(getFormElement("INPUT","hidden","tTopImage",topImage,"","","",""),globalTopObj.firstChild);globalTopObj.insertBefore(getFormElement("INPUT","hidden","tBgImage",bgImage,"","","",""),globalTopObj.firstChild);globalTopObj.insertBefore(getFormElement("INPUT","hidden","tTitleImage",titleImage,"","","",""),globalTopObj.firstChild);};function initU(photo,type){if(document.getElementById("UserPhotoPath")==null){var userBoxObj=document.getElementById("userBox");userBoxObj.insertBefore(getFormElement("INPUT","hidden","zoneURL",document.getElementById("URLName").value,"","","",""),userBoxObj.firstChild);userBoxObj.insertBefore(getFormElement("INPUT","hidden","UserPhotoPath",photo,"","","",""),userBoxObj.firstChild);initSelectElement("MediaType",type);};};function initC(zone,TMCode,screenWidth,topImage,photoHeight,bannerVisibility,topPlace,topRepeat,xPlace,yPlace,CSSNumber,bgColor,bgImage,bgPlace,bgRepeat,bgFix,headerColor,footerColor,otherColor,titleImage,titleImageHeight,titleColor,titleBgColor,titleImageStyle,modBgColor,fontColor,linkColor,hoverColor,layerColor,borderColor,borderWidth,isShare,isCustom){if(document.getElementById("zone")==null){var themeBoxObj=document.getElementById("themeBox");themeBoxObj.insertBefore(getFormElement("INPUT","hidden","zone",zone,"","","",""),themeBoxObj.firstChild);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","TMCode",TMCode,"","","",""),themeBoxObj.firstChild);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","TopImage",topImage,"","","",""),themeBoxObj.firstChild);setFormElementValue("PhotoHeight",photoHeight);initSelectElement("ScreenWidth",screenWidth);initSelectElement("BannerVisibility",bannerVisibility);initSelectElement("TopPlace",topPlace);initSelectElement("TopRepeat",topRepeat);setFormElementValue("XPlace",xPlace);setFormElementValue("YPlace",yPlace);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","themeCode",CSSNumber,"","","",""),themeBoxObj.firstChild);setFormElementValue("BgColor",bgColor);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","BgImage",bgImage,"","","",""),themeBoxObj.firstChild);initSelectElement("BgPlace",bgPlace);initSelectElement("BgRepeat",bgRepeat);initSelectElement("BgFix",bgFix);setFormElementValue("HeaderColor",headerColor);setFormElementValue("FooterColor",footerColor);setFormElementValue("OtherColor",otherColor);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","TitleImage",titleImage,"","","",""),themeBoxObj.firstChild);setFormElementValue("OtherColor",otherColor);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","TitleImageHeight",titleImageHeight,"","","",""),themeBoxObj.firstChild);setFormElementValue("TitleColor",titleColor);setFormElementValue("TitleBgColor",titleBgColor);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","TitleImageStyle",titleImageStyle,"","","",""),themeBoxObj.firstChild);setFormElementValue("ModBgColor",modBgColor);setFormElementValue("FontColor",fontColor);setFormElementValue("LinkColor",linkColor);setFormElementValue("HoverColor",hoverColor);setFormElementValue("BorderColor",borderColor);setFormElementValue("BorderWidth",borderWidth);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","IsShare",isShare,"","","",""),themeBoxObj.firstChild);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","IsCustom",isCustom,"","","",""),themeBoxObj.firstChild);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","tModBgColor",modBgColor,"","","",""),themeBoxObj.firstChild);themeBoxObj.insertBefore(getFormElement("INPUT","hidden","tTitleBgColor",titleBgColor,"","","",""),themeBoxObj.firstChild);if(modBgColor!="transparent"&&titleBgColor!="transparent"){initSelectElement("TransparentColor",1);};if(modBgColor=="transparent"){initSelectElement("TransparentColor",2);};if(titleBgColor=="transparent"){initSelectElement("TransparentColor",3);};if(modBgColor=="transparent"&&titleBgColor=="transparent"){initSelectElement("TransparentColor",4);};};};function doZoneSearch(){if(document.getElementById('t_keyword')!=null){document.getElementById('z_keyword').value=document.getElementById('t_keyword').value;document.getElementById('z_media').value=document.getElementById('t_media').value;document.getElementById('uid').value=document.getElementById('t_uid').value;};if(TrimAll(document.getElementById('z_keyword').value)==""){alert(PAIAlert+"请先输入你要查找的字符！");return false;};var zone="/system";if(document.getElementById('URLName')!=null){zone="/"+document.getElementById('URLName').value;};window.document.fmSearch.action=zone+"/search.html";window.document.fmSearch.submit();};
