﻿//外部链接
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

//舌签
//<![CDATA[
function GetObj(objName){
 if(document.getElementById){
 return eval('document.getElementById("' + objName + '")');
   }else if(document.layers){
 return eval("document.layers['" + objName +"']");
  }else{
 return eval('document.all.' + objName);
	}
}
function topTab01(index01,flag01){
 for(var i=0;i<9;i++){/* 最多支持9个标签 */
 if(GetObj("tcon01-"+i)&&GetObj("tm01-"+i)){
	GetObj("tcon01-"+i).style.display = 'none';
	GetObj("tm01-"+i).className = "";
	}
}
 if(GetObj("tcon01-"+index01)&&GetObj("tm01-"+index01)){
	GetObj("tcon01-"+index01).style.display = 'block';
	GetObj("tm01-"+index01).className = "cur";
	}
//alert("ok");
}
//]]>

//延迟载入
function WriteAdSpan(spanId, height)
{
	if (eval("typeof(str_" + spanId + ")") != "undefined")
	{
		var style = height > 0?" style='height:" + height + "px'":"";
		document.write("<span id='" + spanId + "'" + style + "></span>");
	}
	else
        {
             document.write("<span id='" + spanId + "'></span>");
        }
}

function BeginLoadAdvertise()
{
	if (typeof(LoadAdvertise)=="function")
	{
		LoadAdvertise();
	}
}