function mnuhide(id){
	obj = document.getElementById(id); 
	obj.style.display = "none";
}

function mnushow(id){
	obj = document.getElementById(id); 
	obj.style.display = "";	
} 

function mnuhideall(){
	mnuhide('mnuNews');
	mnuhide('mnuCust');
	mnuhide('mnuPartners');
	mnuhide('mnuCompany');
	mnuhide('mnuProduct');
	mnuhide('mnuContact');
	mnuhide('mnuTech');
	mnuhide('mnuServices');
}


function openWin(aPage,aPageID,iWidth,iHeight) {
	var sWindowInfo;
	sWindowInfo = "resizable=yes,width=" +iWidth+ ",height=" + iHeight + ",top=0,left=0,toolbar=no, status=yes, scrollbars=yes"
	var aWin = window.open(aPage, aPageID, sWindowInfo);
	return aWin;
}


/****************************************************
 AntiSpambotMailto() - Documentation and encoder at:
    http://www.kenric.com/AntiSpambotMailto.html
****************************************************/
function AntiSpambotMailto(codelist, description, atagattr) {
	var thiscode, thischar;
	var CodeString = new String(codelist);
	var CodedArray = CodeString.split('|');
	var L = CodedArray.length;
	var AddrDecoded = "";
	for (var x=0; x < L; x++) {
		thiscode = CodedArray[x];
		thischar = String.fromCharCode( thiscode - L );
		AddrDecoded += thischar;
	}
	atagattr = atagattr ? ' ' + atagattr : '';
	if (!description) description = AddrDecoded; // if no description supplied, display email address
	var strOutput = '<a href="mailto:'+AddrDecoded+'"' + atagattr+'>' + description + '</a>';
	document.write(strOutput);
}
