/**********************************************************************************
	Layer Show Hide
***********************************************************************************/

function LayerSH(LayerName,Status) {
ns = (document.getElementById)?true:false
ie = (document.all)?true:false

	if (ns) {
		LayerN = document.getElementById(LayerName).style
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
	}	
	if (ie) {
		LayerN = document.all[LayerName].style
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
	}
}

function allHide() {

	LayerSH('sub01','hide');
	LayerSH('sub02','hide');
	LayerSH('sub03','hide');
	LayerSH('sub04','hide');
	LayerSH('sub05','hide');
	LayerSH('sub06','hide');
	LayerSH('sub07','hide');
}

function oneShow(LayerName,Status) {
	allHide();
	LayerSH(LayerName,Status);
}

/**********************************************************************************
	Image Roll Over
***********************************************************************************/

function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}
function imgChg(imgName,imgObj) {
	if (document.images) {
		document.images[imgName].src = eval(imgObj+".src")
	}
}


/**********************************************************************************
	Pop up Window
***********************************************************************************/

function popwin(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,"","left=300;top=300,toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
}

function popwin2(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,"","left=300;top=300,toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
}

function popwin3(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,"","left=300;top=300,toolbar=0,menubar=0,scrollbars=yes,resizable=yes,width=" + wd +",height=" + he + ";")
}


