
//菜单?
ns4 = (document.layers)?true:false
ie4 = (document.all)?true:false
loadComplete = false

/**********************************************************************************
	Layer Show Hide
***********************************************************************************/

function LayerSH(LayerName,Status) {
		if (document) {
			LayerN = document.all[LayerName].style
			if (Status == 'show') LayerN.visibility = 'visible';
			if (Status == 'hide') LayerN.visibility = 'hidden';
		}

}

/**********************************************************************************
	Image Roll Over
***********************************************************************************/

function preload(imgObj,imgSrc) {
	if (document.img) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}

function allHide() {

	LayerSH('sub1','hide');

	LayerSH('sub2','hide');

	LayerSH('sub3','hide');

	LayerSH('sub4','hide');

	LayerSH('sub5','hide');
	
	LayerSH('sub6','hide');

}

function oneShow(LayerName,Status) {
	allHide();
	LayerSH(LayerName,Status);
	
}
//菜单?
function AddDomain() {
	var t=Math.random() * 100000000;
	document.login.action=document.login.action+"?token="+t;
  if(document.login.LoginName.value.indexOf("@") == -1)
        document.login.LoginName.value = document.login.LoginName.value + "@" + document.login.domain.options[document.login.domain.selectedIndex].value;
}

function opentarget(){

  var args=opentarget.arguments;

  if (args[0] != "#")

  {

  	window.open(args[0]);

  }

}
