//相关POI    file:///E:/project/MioTourII/trunk/Source-Code/MioTourII/WebRoot/prototype/hxhd/hd.htm
//          <%@ include file="/prototype/hxhd/hd.htm"%>

j(document).ready(
		function() {			
			j("#tabs").children("li:first-child").children("a").mouseover();
			//头部数字显示信息
			DWRPoiManagement.getSightNumberOfIndex(function(result){
				j("#tipsremak").empty();				
				j("#tipsremak").append(getIndexSightNum(result[0]));				
			});
		});

var setupInfos = {selectRecommend:function (recommendId,selfObj){	
	// 操作标签
	j("#recommendMore").unbind("click");
	//j("#recommendPOIs").empty(); //不闪
	j.each(j("#tabs").children("li"),function(i,tab){
		if(tab===selfObj.parentNode){
			tab.className = "selectTab";
		}else{
			tab.className = "";
		}
	});
	
	j.each(j("#recommendPOIs").children("li"),function(i,liDiv){
		if(liDiv.id==recommendId){
			j(liDiv).show();
		}else{
			j(liDiv).hide();
		}
	});

	
	j("#recommendMore").attr("href",serverPath+"/"+region_url+"/recommend/"+recommendId);
}}


function getExt(file) {
	return (/[.]/.exec(file.replace(/.*(\/|\\)/, ""))) ? /[^.]+$/.exec(file
			.toLowerCase()) : '';
}

function selectTag(showContent,selfObj){
	// 操作标签
	var tag = document.getElementById("tags_index").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	// 操作内容
	for(var i=0; oobj=document.getElementById("tagContent"+i); i++){
		oobj.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";		
}

