﻿
function killErrors() { 
return true; 
} 
window.onerror = killErrors; 

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

if (self != top) top.location.href = window.location.href

var version = "other"
browserName = navigator.appName;   
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Netscape" && browserVer < 3) version = "n2";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";
function marquee1()
{
	if (version == "e4" | version == "n3")
	{
		document.write("<marquee style='BOTTOM: 0px; FONT-WEIGHT: 100px; HEIGHT:120px;  TEXT-ALIGN: left; TOP: 0px' id='news' scrollamount='1' scrolldelay='10' behavior='loop' direction='up' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}
 
function marquee2()
{
	if (version == "e4" | version == "n3")
	{
		document.write("</marquee>")
	}
}
 
function marquee_logo_news()
{
	if (version == "e4")
	{
		document.write("<marquee style='BOTTOM: 0px; FONT-WEIGHT: 1200px; HEIGHT:31px;  TEXT-ALIGN: left; TOP: 0px' id='link_map' scrollamount='2' scrolldelay='10' behavior='alternate' direction='right' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}
 
function marquee3()
{
	if (version == "e4" | version == "n3")
	{
		document.write("<marquee direction='left' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}
 
function marquee4()
{
	if (version == "e4" | version == "n3")
	{
		document.write("</marquee>")
	}
}
 
function marquee5()
{
	if (version == "e4" | version == "n3")
	{
		document.write("<marquee style='BOTTOM: 0px; FONT-WEIGHT: 100px; HEIGHT:100px;  TEXT-ALIGN: left; TOP: 0px' id='news' scrollamount='1' scrolldelay='10' behavior='loop' direction='up' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}
 
function marquee6()
{
	if (version == "e4" | version == "n3")
	{
		document.write("</marquee>")
	}
}

function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=20
}
    
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
 
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}




function setslideA(i){
	
	sltslideA(i);	
	
	
};
function sltslideA(i){
	
	
	switch(i){
		
		
		case 1:document.getElementById("slideACon1").style.display="block";		
		document.getElementById("slideACon2").style.display="none";		
		document.getElementById("slideACon3").style.display="none";		
		document.getElementById("slideACon4").style.display="none";		
		break;		
		case 2:document.getElementById("slideACon1").style.display="none";		
		document.getElementById("slideACon2").style.display="block";		
		document.getElementById("slideACon3").style.display="none";		
		document.getElementById("slideACon4").style.display="none";		
		break;		
		case 3:document.getElementById("slideACon1").style.display="none";		
		document.getElementById("slideACon2").style.display="none";		
		document.getElementById("slideACon3").style.display="block";		
		document.getElementById("slideACon4").style.display="none";		
		break;		
		case 4:document.getElementById("slideACon1").style.display="none";		
		document.getElementById("slideACon2").style.display="none";		
		document.getElementById("slideACon3").style.display="none";		
		document.getElementById("slideACon4").style.display="block";		
		break;		
		
		
	};	
	
	
};

function setslide(i){
	
	sltslide(i);	
	
}
function sltslide(i){
	
	switch(i){
		
		case 1:
		document.getElementById("slidecon1").style.display="block";		
		document.getElementById("slidecon2").style.display="none";		
		document.getElementById("slidecon3").style.display="none";		
		break;		
		case 2:
		document.getElementById("slidecon1").style.display="none";		
		document.getElementById("slidecon2").style.display="block";		
		document.getElementById("slidecon3").style.display="none";		
		break;		
		case 3:
		document.getElementById("slidecon1").style.display="none";		
		document.getElementById("slidecon2").style.display="none";		
		document.getElementById("slidecon3").style.display="block";		
		break;		
		
	}
	
}
function openurl(url) {
	window.open(url, "", "location=yes,toolbar=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes, resizable=yes,copyhistory=yes");
}
function Show_SubLmy(id_num,num){
	//舌签功能
	for(var i=0;i<=9;i++){
		
		if(GetObj("S_MenuMy_"+id_num+i)){
			GetObj("S_MenuMy_"+id_num+i).className='';
			
		}
		if(GetObj("S_ContMy_"+id_num+i)){
			GetObj("S_ContMy_"+id_num+i).style.display='none';
			
		}
		
	}
	if(GetObj("S_MenuMy_"+id_num+num)){
		GetObj("S_MenuMy_"+id_num+num).className='selectd';
		
	}
	if(GetObj("S_ContMy_"+id_num+num)){
		GetObj("S_ContMy_"+id_num+num).style.display='block';
		
	}
	
}
function GetObj(objName){
	
	if(document.getElementById){
		
		return eval('document.getElementById("'+objName+'")');		
		
	}else {
		
		return eval('document.all.'+objName);		
		
	}
	
}

function tabit(tabName,btnId,tabNumber){
	
	for(i=0;i<tabNumber;i++){
		
		document.getElementById(tabName+"_div"+i).style.display="none";		
		document.getElementById(tabName+"_btn"+i).className=tabName+"_tabBtn02";		
		
	}
	document.getElementById(tabName+"_div"+btnId).style.display="block";	
	document.getElementById(tabName+"_btn"+btnId).className=tabName+"_tabBtn01";	
	
	
}

function GetObj(objName){
	
	if(document.getElementById){
		
		return eval('document.getElementById("'+objName+'")');		
		
	}else {
		
		return eval('document.all.'+objName);		
		
	}
	
}

function ShowSub(ID_num,num){
	
	for(var i=0;i<=9;i++){
		
		if(GetObj("T_Menu_"+ID_num+i))GetObj("T_Menu_"+ID_num+i).className='';		
		if(GetObj("S_Cont_"+ID_num+i))GetObj("S_Cont_"+ID_num+i).style.display="none";		
		
	}
	if(GetObj("T_Menu_"+ID_num+num))GetObj("T_Menu_"+ID_num+num).className='selectd';	
	if(GetObj("S_Cont_"+ID_num+num))GetObj("S_Cont_"+ID_num+num).style.display="block";	
	
}








function openurl(url) {
	window.open(url, "", "location=yes,toolbar=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes, resizable=yes,copyhistory=yes");
}

function secCard(secTable, n, SelectCss, NormalCss)
  {
  if(n==1)
  {                secTable.cells[1].className=SelectCss;
                   secTable.cells[2].className=NormalCss;
                   secTable.cells[3].className=NormalCss;
				   secTable.cells[4].className=NormalCss;
				   secTable.cells[5].className=NormalCss;
  }
  if(n==2)
  {
                   secTable.cells[1].className=NormalCss;
                   secTable.cells[2].className=SelectCss;
                   secTable.cells[3].className=NormalCss;
				   secTable.cells[4].className=NormalCss;
				   secTable.cells[5].className=NormalCss;

  }
  if(n==3)
  {
                   secTable.cells[1].className=NormalCss;
                   secTable.cells[2].className=NormalCss;
                   secTable.cells[3].className=SelectCss;
				   secTable.cells[4].className=NormalCss;
				   secTable.cells[5].className=NormalCss;


  }
  if(n==4)
  {
                   secTable.cells[1].className=NormalCss;
                   secTable.cells[2].className=NormalCss;
                   secTable.cells[3].className=NormalCss;
                   secTable.cells[4].className=SelectCss;
				   secTable.cells[5].className=NormalCss;


  }
  if(n==5)
  {
                   secTable.cells[1].className=NormalCss;
                   secTable.cells[2].className=NormalCss;
                   secTable.cells[3].className=NormalCss;
				   secTable.cells[4].className=NormalCss;
                   secTable.cells[5].className=SelectCss;


  }
  }
  function secBoard(mainTable,moretab,n)
  {
    for(i=0;i<mainTable.tBodies.length;i++)
      {mainTable.tBodies[i].style.display="none";
	   moretab.tBodies[i].style.display="none";}
            mainTable.tBodies[n].style.display="";
			moretab.tBodies[n].style.display="";
  }
