Array.prototype.add=function(C)
{
	var B=true;
	for(var A=0;A<this.length;A++)
	{
		if(this[A]==C)
		{
			B=false;
			break
		}
	}
	if(B==true)
	{
		this[this.length]=C
	}
};
Array.prototype.insert=function(A,C)
{
	var D=this;
	if(C>D.length)
	{
		C=D.length
	}
	if(C<-D.length)
	{
		C=0
	}
	if(C<0)
	{
		C=D.length+C
	}
	for(var B=D.length;B>C;B--)
	{
		D[B]=D[B-1]
	}
	D[C]=A;
	return D
};

Array.prototype.remove=function(A)
{
	if(isNaN(A)||A>this.length)
	{
		return false
	}
	this.splice(A,1)
};

Array.prototype.clone=function()
{
	var A=[];
	for(var B=0;B<this.length;B++)
	{
		A[B]=this[B]
	}
	return A
};

Array.prototype.get=function(A)
{
	for(var B=0;B<this.length;B++)
	{
		if(this[B].id==A||this[B].name==A)
		{
			return this[B]
		}
	}
	return null
};

String.prototype.checkLen=function(A)
{
	var B=this;if(B.length>A)
	{
		alert("\u5b57\u6570\u8bf7\u4e0d\u8981\u8d85\u8fc7"+A+"\u4e2a\uff01");
		B=B.substring(0,A);
		return B
	}
	return B
};

String.prototype.checkLength=function(A)
{
	var B=this;
	B=B.trim();
	if(B.length>A)
	{
		return false
	}
	return true
};

String.prototype.checkSpec=function()
{
	if(this.search(/[~'@#$?&<>]/g)!=-1)
	{
		return false
	}
	else
	{
		return true
	}
};

String.prototype.trim=function()
{
	return this.replace(/(^\s*)|(\s*$)/g,"")
};

function checkTextInput(C,A,B,D)
{
	if(!C)
	{
		return 
	}
	C.value=C.value.trim();
	if(C.value.length==0)
	{
		alert(D+"\u4e0d\u80fd\u4e3a\u7a7a");
		C.value=B;
		return
	}
	if(C.value.length>A)
	{
		alert(D+"\u4e0d\u80fd\u8d85\u8fc7"+A+"\u4e2a\u5b57");
		C.value=C.value.substring(0,A);
		return 
	}
	if(!C.value.checkSpec())
	{
		alert(D+"\u4e0d\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26~'@#$?&<>");
		C.value=B;return 
	}
}

function checkThemeSlogan(B,A)
{
	if(!B||!A)
	{
		return 
	}
	if(B.value.length>30)
	{
		alert("\u4e3b\u9898\u6807\u8bed\u4e0d\u80fd\u8d85\u8fc730\u4e2a\u5b57");
		B.value=B.value.substring(0,30);
		return 
	}
	if(!B.value.checkSpec())
	{
		alert("\u4e3b\u9898\u6807\u8bed\u4e2d\u4e0d\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26~'@#$?&<>");
		B.value=B.value.replace(/[~'@#$?&<>]/g,"");
		return 
	}
	A.innerHTML=B.value
}

Namespace.register("Ali.widget.movebox");
Namespace.register("Ali.util.move");
Namespace.register("Ali.util.dialog");
Namespace.register("Ali.util.editctrl");
Namespace.register("Ali.util.typesetdiv");
Namespace.register("Ali.widget.toolbar");
Namespace.register("Ali.util.cssctrl");
Namespace.register("Ali.util.fontctrl");
Namespace.register("Ali.util.urls");
Namespace.register("Ali.util.param");
Namespace.register("Ali.util.upload");
Namespace.register("Ali.util.overalls");
(function()
		  {
			  Ali.util.upload={uploading_show:function(B,A)
			  {
				  A.style.display="block";
				  B.style.display="block";
				  A.style.zIndex="999";
				  A.style.height=YAHOO.util.Dom.getDocumentHeight(document.body)+"px";
				  B.style.marginTop=YAHOO.util.Dom.getClientHeight(document.body)/2+"px"},uploading_hidden:function(B,A)
				  {
					  A.style.display="none";
					  B.style.display="none"},dealUploadFail:function(C,A,B)
					  {
						  if(!B)
						  {
							  if(C=="f")
							  {
								  B="FLASH"
							  }
							  else
							  {
								  if(C=="l")
								  {
									  B="LOG\u56fe\u7247"
								  }
								  else
								  {
									  if(C=="t")
									  {
										  B="\u4e3b\u9898\u56fe\u7247"
									   }
								  }
							   }
							   if(A=="exceeds_limit")
							   {
								   B=B+"\u6587\u4ef6\u5927\u5c0f\u8d85\u51fa\u9650\u5236\u6216\u8005\u6587\u4ef6\u683c\u5f0f\u4e0d\u7b26\u5408!"
								}
								else
								{
									if(A=="upload_fail")
									{
										B=B+"\u56fe\u7247\u4e0a\u4f20\u5931\u8d25\uff01\u8bf7\u68c0\u67e5\u8be5\u56fe\u7247\u662f\u5426\u5b58\u5728\u3002"
									}
									else
									{
										if(A=="image_not_fit")
										{
											B=B+"\u5c3a\u5bf8\u4e0d\u5bf9\u54e6\u3002\u8bf7\u88c1\u526a\u540e\u518d\u4e0a\u4f20\u3002\u8c22\u8c22!"
										}
										else
										{
											if(A=="time_out")
											{
												B=B+"\u4e0a\u4f20\u8d85\u65f6\u3002\u8bf7\u91cd\u65b0\u4e0a\u4f20\u3002\u8c22\u8c22!"
											}
										}
									}
								}
							}
							alert(B);
							this.uploading_hidden($("over_upload_img"),$("over_upload"))},dealUploadSuccess:function(B,D,E,A)
							{
								var C=new Date().getTime();
								this.uploading_hidden($("over_upload_img"),$("over_upload"));
								if(B=="t")
								{
									if(E<=60)
									{
										E=60
									}$("imgpreview").style.display="block";
									$("imgpreview").src=A+D+"?d="+C;Ali.util.overalls.customThemePicHeight=E;
									Ali.util.param.add("customThemePic_i","","{f:'"+D+"',h:"+E+"}");
									changeThemePic(0,A+D+"?d="+C,10,10)
								}
								else
								{
									if(B=="l")
									{
										$("log_img").height=E||80;$("log_img").src=A+D+"?d="+C;
										Ali.util.param.add("logoPic_i","",D)
									}
									else
									{
										if(B=="f")
										{
											changeFlashURL("flashURL","url",A+D);
											Ali.util.param.add("flashIndex_i","filePath",D);
											$("flashupload").style.display="none";
											$("flashdoc").style.display="block"
										}
									}
								}
							}
						}
					})();
(function()
		  {
			  var B,C="",D,E,A=false;
			  Ali.util.param={add:function(H,F,G)
			  {
				  B=H;C=$(H).value;
				  D=F;
				  E=G;
				  if(F!=null&&F!="")
				  {
					  A=true
				  }
				  else
				  {
					  A=false
				  }
				  if(this.isHave())
				  {
					  this._replace();
					  this.modif()
				  }
				  else
				  {
					  this._replace();
					  this.append()
				  }
			   },setMenuParam:function()
			   {
				   var F="[";
				   var H=getObjsByTNandCN($("topmenuelist"),"ul","move");
				   for(var G=0;G<H.length;G++)
				   {
					   F=F+"{id:'"+getObjsByTNandCN(H[G],"input","ischeck")[0].id+"',t:'"+getObjsByTNandCN(H[G],"input","titl")[0].value+"',d:"+getObjsByTNandCN(H[G],"input","ischeck")[0].checked+"},"
				   }
				   if(F.length>0)
				   {
					   F=F.substring(0,F.length-1)}F=F+"]";
				   	   $("navColumnConfig_i").value=F
				   },createParamStr:function(I,G,F)
				   {
					   var J="[";
							   if(F)
							   {
								   J=J+"{id:'"+F+"'},"
							    }
								for(var H=0;H<I.list.length;H++)
								{
									if(G&&I.list[H].id==G||I.list[H].id=="")
									{}
									else
									{
										J=J+"{id:'"+I.list[H].id+"'";
										if(getObjsByTNandCN2(I.list[H],"span","titlecont")[0])
										{
											J=J+",title:'"+getObjsByTNandCN2(I.list[H],"span","titlecont")[0].innerHTML+"'"
										}
										J=J+"},"
									}
								}
								if(J.length>1)
								{
									J=J.substring(0,J.length-1)}J=J+"]";
					   				return J
								},arr_title:function()
								{
									for(var F=0;F<moveboxs.length;F++)
									{
										if(moveboxs[F].id=="topmovebox")
										{
											if(Ali.util.overalls.navChanged)
											{
												if($("navigator_i").value=="S")
												{
													$("headerConfig_i").value=this.createParamStr(moveboxs[F],Ali.util.overalls.topmenuDivId)
												}
												else
												{
													if($("navigator_i").value=="T")
													{
														$("headerConfig_i").value=this.createParamStr(moveboxs[F],null,Ali.util.overalls.topmenuDivId)
													}
												}
											}
											else
											{
												$("headerConfig_i").value=this.createParamStr(moveboxs[F])
											}
										}
										else
										{
											if(moveboxs[F].id=="content1")
											{
												$("sideBarConfig_i").value=this.createParamStr(moveboxs[F])
											}
											else
											{
												if(moveboxs[F].id=="content2")
												{
													$("mainConfig_i").value=this.createParamStr(moveboxs[F])
												}
											}
										}
									}
								},_replace:function()
								{
									if(A)
									{
										C=C.replace("{","");
										C=C.replace("}","")
									}
								},isHave:function()
								{
									if(D)
									{
										if(C.indexOf(D)==-1)
										{
											return false
										}
										else
										{
											return true
										}
									}
									else
									{
										return false
									}
								},append:function()
								{
									if(A)
									{
										if(C.length>0)
										{
											if(typeof (E)=="string")
											{
												C="{"+C+","+D+":'"+E+"'}"
											}
											else
											{
												C="{"+C+","+D+":"+E+"}"
											}
										}
										else
										{
											if(typeof (E)=="string")
											{
												C="{"+C+D+":'"+E+"'}"
											}
											else
											{
												C="{"+C+D+":"+E+"}"
											}
										}
									}
									else
									{
										C=E
									}
									$(B).value=C
								},modif:function()
								{
									var H=C.split(",");
									var F="";
									for(var G=0;G<H.length;G++)
									{
										if(H[G].split(":")[0]&&H[G].split(":")[0]==D)
										{
											if(typeof (E)=="string")
											{
												F=F+D+":'"+E+"',"
											}
											else
											{
												F=F+D+":"+E+","
											}
										}
										else
										{
											F=F+H[G]+","
										}
									}
									F=F.substring(0,F.length-1);
									C="{"+F+"}";
									$(B).value=C
								}
							}
						})();
(function()
		  {
			  var B=new Array();
			  var A="";
			  Ali.util.urls={setURL:function(C,E,D)
			  {
				  D.href=this.set(C,E,D.href)
			  },set:function(D,E,C)
			  {
				  A=C.split("?")[0];
				  this.creatAttArr(C);
				  this.changeValue(D,E);
				  return this.createURL()
			  },get:function(D,C)
			  {
				  var E=new RegExp("(^|&)"+D+"=([^&]*)(&|$)");
				  var F=C.substr(C.indexOf("?")+1).match(E);
				  if(F!=null)
				  {
					  return F[2]
				  }
				  return null
			   },add:function(C,D)
			   {
				   B.add([C,D])
			   },creatAttArr:function(C)
			   {
				   var E=C.split("?")[1];
				   if(E!=null&&E!="")
				   {
					   var F=E.split("&");
					   B=new Array();
					   for(var D=0;D<F.length;D++)
					   {
						   B.add([F[D].split("=")[0],F[D].split("=")[1]])
					   }
				   }
				},changeValue:function(C,E)
				{
					for(var D=0;D<B.length;D++)
					{
						if(B[D][0]==C)
						{
							B[D][1]=E;
							break
						}
					}
				},createURL:function()
				{
					var C=A+"?";
					for(var D=0;D<B.length;D++)
					{
						C=C+B[D][0]+"="+B[D][1]+"&"
					}
					if(B.length>0)
					{
						C=C.substring(0,C.length-1)
					}
					return C
				}
			}
		})();
var moveboxs=new Array();
var preloadedImagesStr="<img src='http://img.zz91.com/esite/images/edit_up.gif'/><img src='http://img.zz91.com/esite/images/edit_down.gif'/><img src='http://img.zz91.com/esite/images/edit_title.gif'/><img src='http://img.zz91.com/esite/images/edit_cont.gif'/><img src='http://img.zz91.com/esite/images/edit_cont.gif'/><img src='http://img.zz91.com/esite/images/edit_photo.gif'/><img src='http://img.zz91.com/esite/images/edit_add.gif'/><img src='http://img.zz91.com/esite/images/edit_del.gif'/>";
(function()
		  {
			  Ali.util.fontctrl={color:function(B,A,C)
			  {
				  var D=showModalDialog(A,C||"#FFFFFF","dialogHeight: 12; dialogWidth: 15; resizable: no; help: no; status: no; scroll: no;");
				  if(B=="chinaname")
				  {
					  Ali.util.param.add("companyNameCnStyle_i","color",D)
				  }
				  else
				  {
					  if(B=="enname")
					  {
						  Ali.util.param.add("companyNameEnStyle_i","color",D)
					  }
					  else
					  {
						  if(B=="firsttitle")
						  {
							  Ali.util.param.add("themeSlogan1_i","color",D)
						  }
						  else
						  {
							  if(B=="secondtitle")
							  {
								  Ali.util.param.add("themeSlogan2_i","color",D)
							  }
						  }
					  }
				  }
				 $(B).style.color=D
			  },size:function(A,B)
			  {
				 $(A).style.fontSize=B+"px"
			  },family:function(A,B)
			  {
				 $(A).style.fontFamily=B
			  },weight:function(A,C)
			  {
				var B=C.value;
				if(B!="bold"||!C.checked)
				{
					B="normal"}$(A).style.fontWeight=B
				},style:function(B,C)
				{
					var A=C.value;
					if(A!="italic"||!C.checked)
					{
						A="normal"
					}$(B).style.fontStyle=A
				}
			  }
		  })();
	(function()
	{
		var B;var A;
		Ali.util.cssctrl={adjustment:function()
		{
			var G,D,J,K;
			if(moveboxs&&moveboxs.length>0)
			{
				for(var F=0;F<moveboxs.length;F++)
				{
					if(moveboxs[F].name=="topmovebox")
					{
						G=moveboxs[F].list.clone()
					}
					else
					{
						if(moveboxs[F].name=="content1")
						{
							D=moveboxs[F].list.clone();
							if($(Ali.util.overalls.erectNavDivId))
							{
								D.insert($(Ali.util.overalls.erectNavDivId),0)
							}
							if($(Ali.util.overalls.categoryDivId))
							{
								D.insert($(Ali.util.overalls.categoryDivId),0)
							}
						}
						else
						{
							if(moveboxs[F].name=="content2")
							{
								J=moveboxs[F].list.clone();
								J.insert($("sitewhere"),0)
							}
						}
					}
				}
			}
			G=G||YAHOO.util.Dom.getElementsByClassName("movechildren","div",$("topmovebox"));
			D=D||YAHOO.util.Dom.getElementsByClassName("content1_1","div",$("content1"));
			J=J||YAHOO.util.Dom.getElementsByClassName("module2","div",$("content2"));
			K=K||YAHOO.util.Dom.getElementsByClassName("border_top3","div",$("foot"));
			var I=this.buildRegion(G,$("topmovebox"),0,0)+7;
			var C=this.buildRegion(D,$("content1"),7,I);
			var E=this.buildRegion(J,$("content2"),10,I);
			var H=C>E?C:E;
			var Z=this.buildRegion(K,$("foot"),7,H)
			var Z1=Z>H?Z:H;
			$("layout").style.height=Z1+"px"
		},buildRegion:function(G,F,J,I)
		{
			if(!G||!G.length||G.length<1)
			{
				return 0
			}
			var E=I;
			var C=YAHOO.util.Dom.getRegion(F).left-left_offset;
			for(var D=0;D<G.length;D++)
			{
				if(G[D].style.top!=E+"px")
				{
					G[D].style.top=E+"px"
				}
				if(G[D].style.left!=C+"px")
				{
					G[D].style.left=C+"px"
				}
				var H=YAHOO.util.Dom.getRegion(G[D]);
				E+=H.bottom-H.top+J
			}
			return E
		},changeCss:function(E,C,D)
		{
			$(E).href=C;
			new SmartInterval([100,500,2000,5000]).exec(function()
			{
				if(!$(E).readyState||$(E).readyState=="complete")
				{
					if(D)
					{
						Ali.util.cssctrl.adjustment()
					}
					return true
				}
				else
				{
					$(E).href=C;
					return false
				}
			},[E,C,D])
		},changeStyle:function(C)
		{
			if(!A)
			{
				A=Ali.util.overalls.colorAndStyle.split("_")[0]
			}
			B=C;Ali.util.param.add("colorStyle_i","",A+"_"+B);
			this.changeCss("stylecolor",Ali.util.overalls.styleServer+"/css/store/"+A+"_"+C+".css")
		},changeColor:function(C)
		{
			if(!B)
			{
				B=Ali.util.overalls.colorAndStyle.split("_")[1]
			}
			A=C;Ali.util.param.add("colorStyle_i","",A+"_"+B);
			this.changeCss("stylecolor",Ali.util.overalls.styleServer+"/css/store/"+A+"_"+B+".css")
		},changeScreen:function(C)
		{
			Ali.util.overalls.widthStyle=C;loadcenter(C);
			if(C=="778")
			{
				$("index_img_doc").innerHTML="\u4e3b\u9898\u56fe\u7247\u4e3agif\u6216jpg\u56fe\u7247\uff0c\u5efa\u8bae\u5bbd\u5ea6778\u50cf\u7d20\uff0c\u5efa\u8bae\u9ad8\u5ea6\u4e0d\u8981\u5c0f\u4e8e60\u50cf\u7d20\uff0c\u6587\u4ef6\u5927\u5c0f\u4e0d\u8981\u8d85\u8fc7350KB\uff01"
			}
			else
			{
				if(C=="952")
				{
					$("index_img_doc").innerHTML="\u4e3b\u9898\u56fe\u7247\u4e3agif\u6216jpg\u56fe\u7247\uff0c\u5efa\u8bae\u5bbd\u5ea6952\u50cf\u7d20\uff0c\u5efa\u8bae\u9ad8\u5ea6\u4e0d\u8981\u5c0f\u4e8e60\u50cf\u7d20\uff0c\u6587\u4ef6\u5927\u5c0f\u4e0d\u8981\u8d85\u8fc7350KB\uff01"
				}
			}
			this.changeCss("screensize",Ali.util.overalls.styleServer+"/css/store/"+C+".css",true)
		}
	}
})();
(function()
		  {
			  var D=new Array();
			  var F=null;
			  var H=null;
			  var I=null;
			  var E=null;
			  var G=0;
			  var B=0;
			  var A=0;
			  var C=0;
			  Ali.widget.toolbar={
				  setXY:function()
				  {
					  YAHOO.util.Dom.setXY(F,E)
				  },open:function(L,Q,K,S,N,P,O,R,J)
				  {
					  G=parseInt(Q);
					  B=parseInt(K);
					  A=parseInt(S);
					  C=parseInt(N);
					  if(R!=null&&R==true)
					  {
						  H=L
					  }
					  F=L;
					  D.add(L);
					  if(L.parentNode.className=="cont1")
					  {
						  if(Ali.util.move.comprise(L.parentNode.getElementsByTagName("img")[0].src,"icon_close"))
						  {
							  L.parentNode.getElementsByTagName("img")[0].src="http://img.zz91.com/esite/images/widget/icon_open.gif"
						  }
						  else
						  {
							  L.parentNode.getElementsByTagName("img")[0].src="http://img.zz91.com/esite/images/widget/icon_close.gif"
						  }
					  }
					  if(F.parentNode.nodeName=="BODY")
					  {
						  E=[YAHOO.util.Dom.getX(J),YAHOO.util.Dom.getY(J)]
					  }
					  else
					  {
						  E=[YAHOO.util.Dom.getX(F.parentNode),YAHOO.util.Dom.getY(F.parentNode)]
					  }
					  if(J!=null)
					  {
						  E=[YAHOO.util.Dom.getRegion(J).right-N,YAHOO.util.Dom.getRegion(J).top]
					  }
					  I=L.getElementsByTagName("ul")[0];
					  I.style.display="none";
					  F.style.width=N+"px";
					  F.style.height=S+"px";
					  F.style.display="block";
					  Ali.util.windows.open(L,I,parseInt(Q),parseInt(K),parseInt(S),parseInt(N));
					  var M=new YAHOO.util.Motion(L,{points:{to:[E[0]+parseInt(P),E[1]+parseInt(O)]
				}},0.2);
				M.onStart.subscribe(this.setXY);
				M.animate(M)
		},closeSecond:function()
		{
			if(H!=null)
			{
				H.style.display="none"
			}
		},closeAll:function()
		{
			for(var J=0;J<D.length;J++)
			{
				D[J].style.display="none";
				if(D[J].parentNode.className=="cont1")
				{
					D[J].parentNode.getElementsByTagName("img")[0].src="http://img.zz91.com/esite/images/widget/icon_close.gif"
				}
			}
		}
	}
})();
(function()
		  {
			  var B=null;
			  var D=null;
			  var A=null;
			  var F=null;
			  var G=null;
			  var C=false;
			  var E=0;
			  Ali.util.editctrl={init:function(H,I,L)
			  {
				  if(H!=null)
				  {
					  var K=H.split("_");
					  var M="";
					  E=0;
					  if(Ali.util.move.getIndex(I,Ali.util.move.getMoveBox(L))==0)
					  {
						  K[0]=0
					  }
					  if(Ali.util.move.getIndex(I,Ali.util.move.getMoveBox(L))==(Ali.util.move.getMoveBox(L).list.length-1))
					  {
						  K[1]=0
					  }
					  for(var J=0;J<K.length;J++)
					  {
						  if(K[J]==1)
						  {
							  E++
						  }
						  M=this.createEditHTML(J,K[J],M,I)
					  }
					  document.getElementById("editctrllist").innerHTML=M
				  }
			  },createEditHTML:function(I,J,K,H)
			  {
				  if(I==0&&J==1)
				  {
					  K=K+"<li onmouseover=\"this.className='onhorve'\" onmouseout=\"this.className=''\" onclick=\"ctrlclose();Ali.util.editctrl.up()\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/images/edit_up.gif\" border=0 alt=\"\" class=\"mt5\" /><span class=\"mt5 ml5\">\u4e0a\u79fb\u7248\u5757</span></a></li>"
				  }
				  else
				  {
					  if(I==1&&J==1)
					  {
						  K=K+"<li onmouseover=\"this.className='onhorve'\" onmouseout=\"this.className=''\" onclick=\"ctrlclose();Ali.util.editctrl.down()\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/images/edit_down.gif\" border=0 alt=\"\" class=\"mt5\" /><span class=\"mt5 ml5\">\u4e0b\u79fb\u7248\u5757</span></a></li>"
					  }
					  else
					  {
						  if(I==2&&J==1)
						  {
							  K=K+"<li onmouseover=\"this.className='onhorve'\" onmouseout=\"this.className=''\" onclick=\"Ali.util.editctrl.title()\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/images/edit_title.gif\" border=0 alt=\"\" class=\"mt5\" /><span class=\"mt5 ml5\">\u7f16\u8f91\u540d\u79f0</span></a></li>"
						  }
						  else
						  {
							  if(I==3&&J==1)
							  {
								  K=K+"<li onmouseover=\"this.className='onhorve'\" onmouseout=\"this.className=''\" onclick=\"Ali.widget.toolbar.closeAll();Ali.util.editctrl.content();\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/images/edit_cont.gif\" border=0 alt=\"\" class=\"mt5\" /><span class=\"mt5 ml5\">\u7f16\u8f91\u5185\u5bb9</span></a></li>"
							  }
							  else
							  {
								  if(I==4&&J==1)
								  {
									  K=K+"<li onmouseover=\"this.className='onhorve'\" onmouseout=\"this.className=''\" onclick=\"Ali.widget.toolbar.closeAll();Ali.util.editctrl.replaceContent();\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/images/edit_cont.gif\" border=0 alt=\"\" class=\"mt5\" /><span class=\"mt5 ml5\">\u66f4\u6362\u5185\u5bb9</span></a></li>"
								  }
								  else
								  {
									  if(I==5&&J==1)
									  {
										  K=K+"<li onmouseover=\"this.className='onhorve'\" onmouseout=\"this.className=''\" onclick=\"Ali.widget.toolbar.closeAll();Ali.util.editctrl.photo();\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/images/edit_photo.gif\" border=0 alt=\"\" class=\"mt5\" /><span class=\"mt5 ml5\">\u53d1\u5e03\u4f9b\u6c42</span></a></li>"
									  }
									  else
									  {
										  if(I==6&&J==1)
										  {
											  K=K+"<li onmouseover=\"this.className='onhorve'\" onmouseout=\"this.className=''\" onclick=\"Ali.util.editctrl.insert();Ali.util.cssctrl.adjustment();\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/images/edit_add.gif\" border=0 alt=\"\" class=\"mt5\" /><span class=\"mt5 ml5\">\u63d2\u5165\u7248\u5757</span></a></li>"}else{if(I==7&&J==1){K=K+"<li onmouseover=\"this.className='onhorve'\" onmouseout=\"this.className=''\" onclick=\"Ali.util.editctrl.close();Ali.util.cssctrl.adjustment();\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/images/edit_del.gif\" border=0 alt=\"\" class=\"mt5\" /><span class=\"mt5 ml5\">\u5220\u9664\u7248\u5757</span></a></li>"
										  }
									  }
								  }
							  }
						  }
					  }
				  }
			  }
			  return K
		  },ctrlopen:function(L,M,H,J,K,I)
		  {
			  ctrlclose();
			  this.init(I,J,K);
			  if(C)
			  {
				  this.ctrlclose()
			  }
			  A=M;
			  F=H;
			  B=J;
			  D=K;
			  G=YAHOO.util.Dom.getXY(L);
			  this.createCtrlDiv()
		  },ctrlclose:function()
		  {
			  if(G!=null)
			  {
				  YAHOO.util.Dom.setXY(A,[0,0]);
				  YAHOO.util.Dom.setStyle(A,"height",0);
				  YAHOO.util.Dom.setStyle(A,"width",0);
				  YAHOO.util.Dom.setStyle(F,"display","none");
				  C=false
			  }
		  },createCtrlDiv:function()
		  {
			  Ali.util.windows.open(A,F,27*E,100,0,0);
			  var H=new YAHOO.util.Motion(A,{points:{to:[G[0]-20,G[1]+20]}},0.2);
			  H.onStart.subscribe(this.setXY);
			  H.animate(H);
			  C=true
		  },setXY:function()
		  {
			  A.style.top=G[1]+"px";
			  A.style.left=G[0]+"px"},up:function()
			  {
				  this.ctrlclose();
				  Ali.util.move.moveUp(D,B)
			  },down:function()
			  {
				  this.ctrlclose();
				  Ali.util.move.moveDown(D,B)
			  },close:function()
			  {
				  this.ctrlclose();
				  Ali.util.dialog.close(D,B)
			  },insert:function()
			  {
				  this.ctrlclose();
				  Ali.util.dialog.insert(D,B)
			  },title:function()
			  {
				  var H=$("titleeditdiv");
				  var I=getObjsByTNandCN2(B,"span","titlecont")[0];
				  var J;
				  if(H!=null&&I!=null)
				  {
					  $("titleeditcont").value=I.innerHTML;
					  J=(I.className.split(" ")[I.className.split(" ").length-1]).split("_")
				  }
				  if(J!=null)
				  {
					  Ali.widget.toolbar.open(H,J[0],J[1],J[2],J[3],J[4],J[5],J[6],I)}},changeTitle:function(H)
					  {
						  if(!H.value.checkSpec())
						  {
							  alert("\u6807\u9898\u4e0d\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26~'@#$?&<>");
							  return 
						  }
						  if(H.value.trim().length==0)
						  {
							  alert("\u6807\u9898\u4e0d\u80fd\u4e3a\u7a7a");
							  return 
						  }
						  if(!H.value.trim().checkLength(5))
						  {
							  return 
						  }
						  if(getObjsByTNandCN2(B,"span","titlecont")[0]!=null)
						  {
							  Ali.util.move.getMoveBox(B.parentNode);
							  getObjsByTNandCN2(B,"span","titlecont")[0].innerHTML=H.value
						  }
					  },content:function()
					  {
						  var H=getObjsByTNandCN2(B,"div","opendiv")[0];
						  var J=getObjsByTNandCN2(B,"div","edit")[0];
						  var K;
						  if(H!=null)
						  {
							  K=(H.className.split(" ")[1]).split("_")
						  }
						  if(K!=null)
						  {
							  Ali.widget.toolbar.open(H,K[0],K[1],K[2],K[3],K[4],K[5],K[6],J)
						  }
						  else
						  {
							  if(B.id!=null&&B.id!=""&&B.innerHTML.indexOf("spatially")==-1)
							  {
								  if(B.id==Ali.util.overalls.topbanerDivId)
								  {
									  H=$("topbanneredit");this.openNewContent(H,J,true)
								  }
								  else
								  {
									  if(B.id==Ali.util.overalls.topmenuDivId)
									  {
										  H=$("topmenuedit");
										  this.openNewContent(H,J,true)
									  }
									  else
									  {
										  if(B.id==Ali.util.overalls.erectNavDivId)
										  {
											  H=$("topmenuedit");
											  this.openNewContent(H,J,true)
										  }
										  else
										  {
											  if(B.id==Ali.util.overalls.midbanerDivId)
											  {
												  H=$("midbanneredit");
												  this.openNewContent(H,J,false)
											  }
											  else
											  {
												  var I=B.getElementsByTagName("input")[0].value;
												  //doSave(false,openPageDone(I))
												  doRedirect(I);
											  }
										  }
									  }
								  }
							  }
							  else
							  {
								  var L=B.parentNode.id;
								  var H;
								  if(L=="content2")
								  {
									  if(Ali.util.overalls.columnId=="sy")
									  {
										  H=$("editcontentindexmain")
									  }
									  else
									  {
										  H=$("editcontentcolumnmain")
									  }
								  }
								  else
								  {
									  H=$("editcontentside")
								  }
								  Ali.util.overalls.emptyWidget=B;
								  K=H.className.split("_");
								  K[4]=this.getMiddleX(B);
								  Ali.widget.toolbar.open(H,K[0],K[1],K[2],K[3],K[4],K[5],K[6],J)
							  }
						  }
					  },openNewContent:function(I,J,H)
					  {
						  var K=I.className.split("_");
						  if(H)
						  {
							  K[4]=this.getMiddleX(B)
						  }
						  Ali.widget.toolbar.open(I,K[0],K[1],K[2],K[3],K[4],K[5],K[6],J);
						  I.style.zIndex="999"
					  },replaceContent:function()
					  {
						  var I=getObjsByTNandCN2(B,"div","edit")[0];
						  var H=$("replacecontent");
						  var J;
						  J=H.className.split("_");
						  J[4]=this.getMiddleX(B);
						  Ali.widget.toolbar.open(H,J[0],J[1],J[2],J[3],J[4],J[5],J[6],I)
					  },photo:function()
					  {
						 // doSave(false,openPageDone(Ali.util.overalls.editAlbumUrl))
						 doRedirect(Ali.util.overalls.editAlbumUrl);
					  },getMiddleX:function(H)
					  {
						  if(YAHOO.util.Dom.getRegion(H).right>520)
						  {
							  return -320
						  }
						  else
						  {
							  return 80
						  }
					  }
				  }
			  })();
(function()
		  {
			  var C=null;
			  var D=null;
			  var A=null;
			  var B=null;
			  Ali.util.windows={init:function(I,E,G,F,J,H)
			  {
				  C=I;
				  D=E;
				  A={
					  width:{to:F},height:{to:G}
					};
				  B={
					  width:{to:H},height:{to:J}
				    }
		      },open:function(J,E,G,F,K,H)
			  {
				  this.init(J,E,G,F,K,H);
				  var I=new YAHOO.util.Anim(C,A,0.2);
				  I.animate(I);
				  I.onComplete.subscribe(this.show)
			  },close:function(J,E,G,F,K,H)
			  {
				  this.init(J,E,G,F,K,H);
				  var I=new YAHOO.util.Anim(C,B,0.2);
				  I.animate(I);
				  I.onTween.subscribe(this.hidden)
			  },show:function()
			  {
				  YAHOO.util.Dom.setStyle(D,"display","block")
			  },hidden:function()
			  {
				  YAHOO.util.Dom.setStyle(D,"display","none")
			  }
		  }
	  })();
(function()
		  {
			  var A=null;
			  Ali.util.move={add:function(B)
			  {
				  moveboxs.add(B)
			  },moveUp:function(E,C)
			  {
				  A=this.getMoveBox(E);
				  if(this.getUp(C)!=null)
				  {
					  var D=YAHOO.util.Dom.getXY(C);
					  var G=YAHOO.util.Dom.getXY(this.getUp(C));
					  var F=YAHOO.util.Dom.getRegion(C);
					  var B=YAHOO.util.Dom.getRegion(this.getUp(C));
					  this.moving(C,G);
					  this.moving(this.getUp(C),this.getRealPoints(F,B,D,G));
					  this.change(C,this.getUp(C))
				  }
			  },moveDown:function(E,C)
			  {
				  A=this.getMoveBox(E);
				  if(this.getDown(C)!=null)
				  {
					  var D=YAHOO.util.Dom.getXY(C);
					  var G=YAHOO.util.Dom.getXY(this.getDown(C));
					  var F=YAHOO.util.Dom.getRegion(C);
					  var B=YAHOO.util.Dom.getRegion(this.getDown(C));
					  this.moving(this.getDown(C),D);
					  this.moving(C,this.getRealPoints(B,F,G,D));
					  this.change(C,this.getDown(C))
				  }
			  },getRealPoints:function(I,G,J,H)
			  {
				  var C=I.bottom-I.top;
				  var B=G.bottom-G.top;
				  var F=I.right-I.left;
				  var D=G.right-G.left;
				  var E=H[1]-J[1]-C;
				  return[J[0]+(F-D),J[1]+(C-B)]
			  },change:function(E,B)
			  {
				  var C=this.getIndex(E);
				  var D=this.getIndex(B);
				  if(C!=-1&&D!=-1)
				  {
					  A.list[C]=B;A.list[D]=E;A.version++
				  }
				  if(B.parentNode.id=="topmovebox")
				  {
					  B.style.zIndex="998";
					  E.style.zIndex="998"
				  }
				  else
				  {
					  B.style.zIndex="997";
					  E.style.zIndex="997"
				  }
				  if(this.getMoveBoxIndex()!=-1)
				  {
					  moveboxs[this.getMoveBoxIndex()]=A
				  }
			  },getMoveBoxIndex:function()
			  {
				  for(var B=0;B<moveboxs.length;B++)
				  {
					  if(moveboxs[B].id==A.id)
					  {
						  return B
					  }
				  }
				  return -1
			  },getIndex:function(B,D)
			  {
				  if(D!=null)
				  {
					  A=D
				  }
				  for(var C=0;C<A.list.length;C++)
				  {
					  if(A.list[C]==B)
					  {return C}
				  }return -1
			  },getMoveBox:function(D)
			  {
				  if(this.isHave(D))
				  {
					  return this.isHave(D)
				  }
				  else
				  {
					  var C=new Ali.widget.movebox(D.id);
					  var E=D.getElementsByTagName("div");
					  for(var B=0;B<E.length;B++)
					  {
						  if(this.comprise(E[B].className,"movechildren"))
						  {C.list.add(E[B])}
					  }moveboxs.add(C);
					  return C
				  }
			  },comprise:function(B,C)
			  {
				  if(B.indexOf(C)!=-1)
				  {
					  return true
				  }
				  else
				  {return false}
			  },rebuild:function(D,C,B)
			  {
				  if(this.isHave(D))
				  {
					  A=this.isHave(D);
					  A=A.list.insert(C,this.getIndex(B))
				  }
			  },isHave:function(C)
			  {
				  for(var B=0;B<moveboxs.length;B++)
				  {
					  if(moveboxs[B].name==C.id)
					  {return moveboxs[B]}
				  }return null
			  },getUp:function(B)
			  {
				  for(var C=0;C<A.list.length;C++)
				  {
					  if(A.list[C]==B)
					  {
						  if(C>0)
						  {
							  return A.list[C-1]
						  }else{return null}
					  }
				  }
			  },getDown:function(B)
			  {
				  for(var C=0;C<A.list.length;C++)
				  {
					  if(A.list[C]==B)
					  {
						  if(C<A.list.length-1)
						  {
							  return A.list[C+1]
						  }else{return null}
					  }
				  }
			  },moving:function(D,C,B,E)
			  {
				  var F=new YAHOO.util.Motion(D,{points:{to:C}},1,YAHOO.util.Easing.backOut);
				  if(B!=null&&E!=null){if(B=="start")
				  {
					  F.onStart.subscribe(E);
					  F.animate(F)
				  }else
				  {
					  if(B=="tween")
					  {
						  F.animate(F);F.onTween.subscribe(E)
					  }else{
						  if(B=="complete")
						  {
							  F.animate(F);
							  F.onComplete.subscribe(E)
						  }
						  }
				  }
			  }else
			  {
				  F.animate(F)
		      }
		  }
	  }
  })();

(function()
		  {
			  var B=null;
			  var D=null;
			  var E=null;
			  var C=null;
			  var A=59;
			  Ali.util.dialog={clear:function()
			  {
				  B=null;
				  D=null;
				  E=null;
				  C=null;
				  A=59
			  },init:function(H,F,I,J)
			  {
				  E=Ali.util.move.getMoveBox(H);
				  C=new Array();
				  for(var G=this.getDialogDivIndex(F)+1;G<E.list.length;G++)
				  {
					  C.add(E.list[G])
				  }
				  if(I!=null&&J!=null)
				  {
					  B=I;
					  D=J
				  }else
				  {
					  B=this.getDialogDiv(F);
					  D=this.getDisplayDiv()
				  }
			  },open:function(G,F)
			  {
				  this.init(G,F);
				  if(YAHOO.util.Dom.getStyle(D,"display")!="block")
				  {
					  var H=new YAHOO.util.Anim(B,{height:{to:83}},0.2);
					  H.animate(H);
					  H.onComplete.subscribe(this.show);
					  this.moveAllLeave(1)
				  }
			  },close:function(H,G)
			  {
				  var F=7;
				  if(H.id=="content1")
				  {F=7}
				  else
				  {
					  if(H.id=="content2")
					  {F=10}
				  }
				  this.init(H,G);
				  var I=YAHOO.util.Dom.getRegion(B);
				  if(E.list.length-1<1)
				  {
					  this.spatially(H,B)
				  }
				  else
				  {
					  this.destroy(B);
					  YAHOO.util.Dom.setStyle(B,"display","none")
				  }
				  this.moveAllLeave(2,I.top-I.bottom-F)
			  },spatially:function(H,G)
			  {
				  var F="1_1_0_1_0_0_1_1";
				  if(Ali.util.overalls.columnId!="sy"&&H.id=="content2")
				  {
					  F="0_0_0_1_0_0_0_1";
					  $("customWidgetId_i").value="_delete_"
				  }
				  G.id="";
				  G.innerHTML="<div class=\"edit\"><div class=\"editdiv "+F+"\" onclick=\"event.cancelBubble = true;Ali.util.editctrl.ctrlopen(this,editctrl,editctrlCont,this.parentNode.parentNode,this.parentNode.parentNode.parentNode,this.className.split(' ')[1]);\"><a href=\"javascript:void(0);\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/images/edit.gif\" border=0/></a></div></div><div style=\"height:100px;\" class=\"border\"><span style=\"display:block;margin-top:40px;width:100%;text-align:center;\" class=\"spatially\">...........</span></div>"
			  },destroy:function(F)
			  {
				  E.list.remove(this.getDialogDivIndex(F))
			  },moveAllLeave:function(J,F)
			  {
				  var G=0;
				  if(J==1)
				  {G=A}else{G=-A}
				  if(F!=null)
				  {G=F}
				  for(var I=0;I<C.length;I++)
				  {
					  var H=YAHOO.util.Dom.getXY(C[I]);
					  var K=[H[0],H[1]+G];
					  Ali.util.move.moving(C[I],K)
				  }
			  },show:function()
			  {
				  YAHOO.util.Dom.setStyle(D,"display","block")
			  },hidden:function()
			  {
				  YAHOO.util.Dom.setStyle(D,"display","none")
			  },getDialogDiv:function(F)
			  {
				  if(E!=null)
				  {
					  for(var G=0;G<E.list.length;G++)
					  {
						  if(E.list[G]==F)
						  {
							  return E.list[G]
						  }
					  }
				  }else{return F}
			  },getDialogDivIndex:function(F)
			  {
				  if(E!=null)
				  {
					  for(var G=0;G<E.list.length;G++)
					  {
						  if(E.list[G]==F)
						  {
							  return G}
						  }
					  }else{return -1}
			  },getDisplayDiv:function()
			  {
				  var F=B.getElementsByTagName("div");
				  for(var G=0;G<F.length;G++)
				  {
					  if(F[G].className=="content")
					  {
						  return F[G]
					  }
				  }return null
			  },insert:function(J,H,F)
			  {
				  if(Ali.util.move.getMoveBox(J).list.length>=6)
				  {
					  alert("\u8bf7\u786e\u8ba4\u672c\u533a\u57df\u663e\u793a\u7684\u7248\u5757\u6570\u91cf\u57286\u4e2a\u4ee5\u5185\uff01");
					  return 
				  }
				  this.clear();
				  var G="";
				  var I=document.createElement("div");
				  if(F==null||F=="")
				  {F=100}
				  I.style.height=F+"px";
				  if(J.id=="content1")
				  {
					  I.className="content1_1 movechildren";
					  F=F+10;
					  G="<div class=\"edit\"><div class=\"editdiv 1_1_0_1_0_0_1_1\" onclick=\"event.cancelBubble = true;Ali.util.editctrl.ctrlopen(this,editctrl,editctrlCont,this.parentNode.parentNode,this.parentNode.parentNode.parentNode,this.className.split(' ')[1]);\"><a href=\"javascript:void(0);\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/esite/edit.gif\" border=0/></a></div></div><div style=\"height:100px;\"><span style=\"display:block;margin-top:40px;width:100%;text-align:center;\">...........</span></div>"
				  }
				  else
				  {
					  if(J.id=="content2")
					  {
						  I.className="module2 movechildren thisBg";
						  F=F+10;
						  G="<div class=\"edit\"><div class=\"editdiv 1_1_0_1_0_0_1_1\" onclick=\"event.cancelBubble = true;Ali.util.editctrl.ctrlopen(this,editctrl,editctrlCont,this.parentNode.parentNode,this.parentNode.parentNode.parentNode,this.className.split(' ')[1]);\"><a href=\"javascript:void(0);\"><a href=\"javascript:void(0);\"><img src=\"http://img.zz91.com/esite/esite/edit.gif\" border=0/></a></div></div><div style=\"height:100px;\" class=\"border\"><span style=\"display:block;margin-top:40px;width:100%;text-align:center;\">...........</span></div>"
					  }
				  }
				  I.innerHTML=G;
				  J.insertBefore(I,H);
				  I.style.top=H.style.top;
				  Ali.util.move.rebuild(J,I,H);
				  this.init(J,I);
				  this.moveAllLeave(1,F)
			  }
		  }
	  })();
Ali.widget.movebox=function(A)
{
	this.id=A;this.name=A;
	this.list=new Array();
	this.size=0;
	this.version=0;
	this.obj=null};
	function changeFlashURL(B,A,C)
	{
		if(C.indexOf("#")>-1)
		{
			$("bgcolorshow").style.background=C}Ali.util.urls.setURL(A,C,document.getElementById(B))
		}
	function changelibg(D,C)
	{
		var B=D.getElementsByTagName("li");
		if(C==1)
		{
			for(var A=0;A<B.length;A++)
			{
				B[A].style.background="#EAEAEA"
			}
		}
		else
		{
			for(var A=0;A<B.length;A++)
			{
				B[A].style.background="#fff"
			}
		}
	}
	function moveup(E)
	{
		var D=$(E).innerHTML;
		var C="";
		var B=E.split("_")[1];
		if(B>1)
		{
			var A="move_"+(B-1);
			if(!$(A))
			{
				return 
			}
			C=$(A).innerHTML;
			$(E).innerHTML=C;
			$(A).innerHTML=D
		}
	}
	function movedown(F)
	{
		var E=$(F).innerHTML;
		var D="";
		var C=parseInt(F.split("_")[1]);
		if(C<moveMaxNum)
		{
			var A=C+1;
			var B="move_"+A;
			if(!$(B))
			{return }
			D=$(B).innerHTML;
			$(F).innerHTML=D;
			$(B).innerHTML=E
		}
	}
	function setDocXY(B,A,C)
	{
		B.style.marginLeft=A+"px";
		B.style.marginTop=C+"px"
	}
	function changeThemePicHeight(A)
	{
		if(!A)
		{
			A=Ali.util.overalls.customThemePicHeight||200
		}
		if(A<60)
		{
			A=60
		}
		if(A!=Ali.util.overalls.themePicHeight)
		{
			Ali.util.overalls.themePicHeight=A;
			$(Ali.util.overalls.midbanerDivId).style.height=A+"px";
			Ali.util.cssctrl.adjustment()
		}
	}
	function changeThemePic(D,E,C,B,A)
	{
		$("img_buffer").src=E;
		new SmartInterval([100,500,2000,5000]).exec(re_changeThemePic,[D,E,C,B,A])
	}
	
	function re_changeThemePic(D,E,C,B,A)
	{
		if(!$("img_buffer").readyState||$("img_buffer").readyState=="complete")
		{
			$(Ali.util.overalls.midbanerDivId).style.background="url("+E+")";
			//setDocXY($("edit_midbaner_doc"),C,B);
			Ali.util.param.add("themePic_i","",D);
			changeThemePicHeight(A);
			return true
		}
		else
		{
			$("img_buffer").src=E;
			return false
		}
	}
	var left_offset=0;
	Ali.util.overalls={topbanerDivId:"company_name",topmenuDivId:"top_nav",erectNavDivId:"erectNav",midbanerDivId:"theme_pic",colorAndStyle:"pblue_1",isUploadFlash:false,themePicHeight:200,customThemePicHeight:0,navigator:"",columnId:"",styleServer:"http://www.zz91.com/esite/style",emptyWidget:null,navChanged:false,editAlbumUrl:"",widthStyle:778};
	
	function SmartInterval(D)
	{
		var A,C,B;
		this.exec=function(E,F,G)
		{
			if(A)
			{
				clearInterval(A)
			}
			C=0;
			B=0;
			A=setInterval(function()
			{
				B+=D[0];
				if(B>=D[C])
				{
					if(++C>=D.length||(E&&E.apply(G||this,F)))
					{
						clearInterval(A)
					}
					B=0
				}
			},D[0])
		}
	}
	function isExisted(C)
	{
		if(!Ali.util.overalls.emptyWidget)
		{
			return false
		}
		var A=Ali.util.move.getMoveBox(Ali.util.overalls.emptyWidget.parentNode);
		if(!A)
		{
			return false
		}
		for(var B=0;B<A.list.length;B++)
		{
			if(A.list[B].id==C)
			{
				return true
			}
		}
		return false
	}
	function checkNum(C,A,B)
	{
		if(C==null||C=="")
		{
			alert("\u4e0d\u5141\u8bb8\u4e3a\u7a7a\uff01");
			return false
		}else
		{
			if(/^[0-9]*[1-9][0-9]*$/.test(C))
			{
				if(C>A||C<B)
				{
					alert("\u6700\u5927\u4e0d\u80fd\u8d85\u8fc7"+A+"\u6700\u5c0f\u4e0d\u80fd\u5c0f\u4e8e"+B+",\u8bf7\u91cd\u65b0\u8f93\u5165\uff01");
					return false
				}
				else
				{
					return true
				}
			}
			else
			{
				alert("\u60a8\u8f93\u5165\u7684\u4e0d\u662f\u6570\u5b57\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\uff01");
				return false
			}}}
