function TopBanner(id,cname,ename){
	this.ui;
	this.id=id;
	this.cname=cname;
	this.ename=ename;
}

TopBanner.prototype.getUI=function(){
	if(!this.ui){
		var container=document.createElement("div");
		container.id=this.id;
		container.className="moveChild topbaner";
		container.style.height="90px";		
		var htmlStr=getCommonUI("fr","edit","editListTop")+"</DIV></DIV>"
		+"<DIV><DIV id=log></DIV><DIV id=companyname><UL><LI class=china><SPAN class=chinaname id=chinaname>"+this.cname+"</SPAN> <SPAN class=enname id=enname>"+this.ename+"</SPAN></LI></UL></DIV><DIV class=clr></DIV></DIV></DIV>";	
		container.innerHTML=htmlStr;	
		this.ui=container;
	}
	return this.ui;
}

function HeadMenu(id){
	this.id=id;
	this.ui;
}
HeadMenu.prototype.getUI=function(){
	if(!this.ui){
		var container=document.createElement("div");
		container.id=	this.id;
		container.className="moveChild headerMenu";
		container.innerHTML=getCommonUI("fr","edit","editListTop")+"</DIV></DIV>"
		+"<DIV><DIV class=headerMenuBorder><DIV class=headerMenuList><UL id=headMenuUL></UL></DIV><DIV class=clr></DIV></DIV><DIV class=headerMenuBottom></DIV></DIV>";	
		this.ui=container;
	}
	return this.ui;
}

function addHeadMenu(name,check,url){
	var headMenuUL=document.getElementById("headMenuUL");
	if(headMenuUL){
		var hmli=document.createElement("li");
		hmli.className=check?"headerMenuLiCheck pointer":"headerMenuLi pointer";
		hmli.innerHTML=name;
		if(url){
			hmli.url=url;
			hmli.onclick=function(){
				//location.href=this.pageId+".jsp";	//¾²Ì¬
				//location.href="pageReq.do?pageId="+this.pageId;
				//if(this.pageId=="index")	this.pageId="home";
				//location.href=contextPath+"/"+custId+"/"+this.pageId+".html";//Î±¾²Ì¬
				location.href=url;
			};
		}
		headMenuUL.appendChild(hmli);
	}
}

function HeadTopic(id){
	this.id=id;
	this.ui;
}
HeadTopic.prototype.getUI=function(){
	if(!this.ui){
		var container=document.createElement("div");
		container.id=	this.id;
		container.className="moveChild headTopic";
		container.innerHTML=getCommonUI("fr","edit","editListTop")+"</DIV></DIV>"
		+"<DIV class=description id=description><DIV class=topDesc id=topDesc>&nbsp;</DIV><DIV class=bottomDesc id=bottomDesc>&nbsp;</DIV></DIV></DIV>";	
		this.ui=container;
	}
	return this.ui;
}

function CommonModule(id,title,lr,hasMore,url){
	this.id=id;
	this.title=title;
	this.lr=lr||"Left";
	this.hasMore=hasMore||false;
	this.url=url||'#';
	this.ui;
}
CommonModule.prototype.getUI=function(){
	if(!this.ui){
		var container=document.createElement("div");
		container.id=this.id;
		container.className="moveChild bodyCont";
		container.style.marginBottom="7px";
		container.innerHTML=getCommonUI("fl","edit_"+this.lr.toLowerCase(),"editList"+this.lr)+"</DIV></DIV>"
		+"<DIV class=bodyContTitle><SPAN class='fl b titleLinkColor titleName'>"+this.title+"</SPAN>"+"<A class='fr fs12px nb topicLink draft_no_link' "+(this.hasMore?'':"style='display:none'")+" href='#'>¸ü¶à &gt;&gt;</A>"+"</DIV><DIV class='bodyContContent "+(this.lr=='Right'?"rel rightConteWidth":"")+"'></DIV>";	
		this.ui=container;
	}
	return this.ui;
}

function getCommonUI(flr,elr,el){
	return "<DIV class=clr></DIV><DIV class=clr></DIV><DIV class='rel "+flr+" zindex900'><DIV class="+elr+">"
			+"</DIV></DIV>"
			+"<DIV class='rel "+flr+" size0 zindex999'><DIV class='editList "+el+"'>";
}

function LinkBar(id,title,url){
	this.id=id;
	this.title=title;
	this.url=url||'#';
	this.ui;
}

LinkBar.prototype.getUI=function(){
	if(!this.ui){
		var container=document.createElement("div");
		container.id=this.id;
		container.className="moveChild bodyCont";
		container.style.marginBottom="7px";
		container.innerHTML="<DIV class=clr></DIV><DIV class=clr></DIV><DIV class='rel fl zindex900'><DIV class=edit_left></DIV></DIV><DIV class='rel fl size0 zindex999'><DIV class='editList editListLeft'></DIV></DIV><DIV class=bodyContTitle><SPAN class='fl b titleLinkColor titleName' style='cursor:hand;TEXT-DECORATION: underline ' onclick=location.href='"+this.url+"'>"+this.title+"</SPAN></DIV>";	
		this.ui=container;
	}
	return this.ui;
}

