
	LTExtendMapDiv.prototype.createContent=function()
	{
		var config=this.config;
		if(!config.imgSrc){config.imgSrc="http://api.51ditu.com/img/mapextend/skin/collapse/"}
		if(!config.iconSrc){config.iconSrc=config.imgSrc+"marker_icon/";}
		if(!config.theme){config.theme="blue";}
		this.loadCss(config.imgSrc+"style.css");
		this.div.style.border="solid 1px #5d5d5d";
		if(this.isControl){LTFunction.setOpacity(this.div,0.8);}//在地图上则使用一定的透明度
		LTEvent.addListener(this.div,"mousedown",LTEvent.returnTrue);
		LTEvent.addListener(this.div,document.all?"mousewheel":"DOMMouseScroll",LTEvent.returnTrue);
		this.div.style.backgroundColor=this.config.contentBgcolor?this.config.contentBgcolor:"#FBFFE8";
		if(window._LT_mea_adsUrl)
		{
			var iframe=document.createElement("iframe");
			iframe.height=34;
			iframe.width=200;
			iframe.frameBorder=0;
			iframe.scrolling="no";
			iframe.src=window._LT_mea_adsUrl+"w=200&h=34&url="+encodeURIComponent(location.href);
			this.div.appendChild(iframe);
		}
	}
	//用来实时计算内容层的大小，这是一个可配置层
	LTExtendMapDiv.prototype.getContentSize=function()
	{
		return [this.maxSize[0],this.maxSize[1]-this.items.length*25-34];
	}
	//本层用来添加一个栏目的层，这是一个可配置层
	LTExtendMapDiv.prototype.createItemContent=function(item)
	{
		var titleColors=this.config.titleColors;
		//创建用来包含项目内容的层
		item.containerDiv=document.createElement("div");
		var style=item.containerDiv.style;
		style.position="relative";
		style.width="100%";
		this.div.appendChild(item.containerDiv);
		//创建用来包含项目标题的层
		var style=item.titleDiv.style;
		item.titleDiv.innerHTML=item.getName(true);
		style.fontSize="12px";
		style.position="relative";
		style.height="25px";
		style.textAlign="center";
		style.lineHeight=2;
		LTEvent.addListener(item.titleDiv,"mousedown",LTEvent.cancelBubble);
		LTEvent.addListener(item.titleDiv,"selectstart",LTEvent.returnTrue);
		LTEvent.bind(item.titleDiv,"click",item,item.changeDisplay);
		item.containerDiv.appendChild(item.titleDiv);
		item.containerDiv.appendChild(item.scrollDiv);
		this.hideItemContent(item);
	}
	//在显示一个栏目的时候执行的绘制工作
	LTExtendMapDiv.prototype.showItemContent=function(item)
	{
		item.scrollDiv.style.display="";
		var style=item.titleDiv.style;
		style.backgroundImage="url(\""+this.config.imgSrc+this.config.theme+"/"+"button_f.gif\")";
		style.color=this.config.titleFocusColor?this.config.titleFocusColor:"#023A5F";
		style.cursor="default";
	}
	//在隐藏一个栏目时执行的绘制工作
	LTExtendMapDiv.prototype.hideItemContent=function(item)
	{
		item.scrollDiv.style.display="none";
		var style=item.titleDiv.style;
		style.backgroundImage="url(\""+this.config.imgSrc+this.config.theme+"/"+"button_n.gif\")";
		style.color=this.config.titleColor?this.config.titleColor:"#000000";
		style.cursor="pointer";
	}