
	function headerBar(){
	var strHref = window.location.href;	
	if(strHref.indexOf("/hotel/")>0){
		document.getElementById("Ba_2").className = "text_20";		
	}else if(strHref.indexOf("/tour/")>0 && strHref.indexOf("/tour/tehui")<0){
		document.getElementById("Ba_3").className = "text_20";		
	}else if(strHref.indexOf("/offers/")>0){
		document.getElementById("Ba_4").className = "text_20";		
	}else if(strHref.indexOf("/news/")>0){
		document.getElementById("Ba_5").className = "text_22";		
	}else if(strHref.indexOf("/meet/")>0){
		document.getElementById("Ba_6").className = "text_20";		
	}else if(strHref.indexOf("/bbs/")>0){
		document.getElementById("Ba_7").className = "text_20";		
	}else if(strHref.indexOf("/photo/")>0){
		document.getElementById("Ba_8").className = "text_20";		
	}else if(strHref.indexOf("/about/")>0){
		document.getElementById("Ba_9").className = "text_20";		
	}else{
		document.getElementById("Ba_1").className = "text_20";	
		}
	}
	function bgShow(obj){
		if(obj.className!="curHeadText"){
		obj.className = "t6 overHeadText"
		}
	}
	function bgShow2(obj){
		if(obj.className != "curHeadText"){
		obj.className = "t6 headText"
		}
	}
	
function png(idstr) 
{
      var img = document.getElementById(idstr)
	  var imgObj = new Image();
	  imgObj.src = img.src
	  var imgObjWidth = imgObj.width;
	  var imgObjHeight = imgObj.height;
	  
      var imgName = img.src.toUpperCase()
      var imgID = (img.id) ? "id='" + img.id + "' " : ""
      var imgClass = (img.className) ? "class='" + img.className + "' " : ""
      var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
      var imgStyle = "display:inline-block;" + img.style.cssText 
      if (img.align == "left") imgStyle = "float:left;" + imgStyle
      if (img.align == "right") imgStyle = "float:right;" + imgStyle
      var strNewHTML = "<span " + imgID + imgClass + imgTitle
        + " style=\"" + "width:" + imgObjWidth + "px; height:" + imgObjHeight + "px;" + imgStyle + ";"
        + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
        + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
		//document.write("---------------------------<textarea>"+strNewHTML+"</textarea>")
        img.outerHTML = strNewHTML
}


