function showTab(name,num,id){
  for(i=1;i<(num+1);i++){
    document.getElementById(name+"t"+i).className="tag_title1";
    document.getElementById(name+i).style.display="none";
  }
  document.getElementById(name+"t"+id).className="tag_title";
  document.getElementById(name+id).style.display="block";
}


function showTab1(name,num,id){
  for(i=1;i<(num+1);i++){
    document.getElementById(name+"t"+i).className="tag_title3";
    document.getElementById(name+i).style.display="none";
  }
  document.getElementById(name+"t"+id).className="tag_title2";
  document.getElementById(name+id).style.display="block";
}

function showTab2(name,num,id){
  for(i=1;i<(num+1);i++){
    document.getElementById(name+"t"+i).className="tag_title3 tag_title5";
    document.getElementById(name+i).style.display="none";
  }
  document.getElementById(name+"t"+id).className="tag_title2 tag_title4";
  document.getElementById(name+id).style.display="block";
}

function showTab3(name,num,id){
  for(i=1;i<(num+1);i++){
    document.getElementById(name+"t"+i).className="tag_title3 tag_title7";
    document.getElementById(name+i).style.display="none";
  }
  document.getElementById(name+"t"+id).className="tag_title2 tag_title6";
  document.getElementById(name+id).style.display="block";
}

function style_mode(a){
	if (a=="4"){
		hid_1.style.display = "block";
		hid_3.style.display = "none";
		hid_4.style.display = "none";
		pic1.src="/tpl/8/images/index_28.gif";
		pic3.src="/tpl/8/images/index_30_over.gif"
		pic4.src="/tpl/8/images/index_31_over.gif"
	}
	if(a=="3"){
		hid_1.style.display = "none";
		hid_3.style.display = "block";
		hid_4.style.display = "none";
		pic1.src="/tpl/8/images/index_28_over.gif";
		pic3.src="/tpl/8/images/index_30.gif"
		pic4.src="/tpl/8/images/index_31_over.gif"
	}
	if(a=="1"){
		hid_1.style.display = "none";
		hid_3.style.display = "none";
		hid_4.style.display = "block";
		pic1.src="/tpl/8/images/index_28_over.gif";
		pic3.src="/tpl/8/images/index_30_over.gif"
		pic4.src="/tpl/8/images/index_31.gif"
	}
}




function correctPNG()
{
	for(var i=0; i<document.images.length; i++)
	{
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	  {
	   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
	   if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle  
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
	   + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
	   + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
	   img.outerHTML = strNewHTML
	   i = i-1
	  };
	};
};

if(navigator.userAgent.indexOf("MSIE")>-1)
{
    window.attachEvent("onload", correctPNG);
};

function ContentSize(size)
{
 	var obj=document.all.article;
 	obj.style.fontSize=size+"px";
}
	

