// JavaScript Document
	// Menues
	function init() {
	
		if (TransMenu.isSupported()) {
			TransMenu.initialize();
			menu1.onactivate = function() { document.getElementById("ourcompany").className = "hover"; };
			menu1.ondeactivate = function() { document.getElementById("ourcompany").className = ""; };
			menu2.onactivate = function() { document.getElementById("domainname").className = "hover"; };
			menu2.ondeactivate = function() { document.getElementById("domainname").className = ""; };
			menu3.onactivate = function() { document.getElementById("solutions").className = "hover"; };
			menu3.ondeactivate = function() { document.getElementById("solutions").className = ""; };
			menu4.onactivate = function() { document.getElementById("support").className = "hover"; };
			menu4.ondeactivate = function() { document.getElementById("support").className = ""; };
			menu5.onactivate = function() { document.getElementById("portfolio").className = "hover"; };
			menu5.ondeactivate = function() { document.getElementById("portfolio").className = ""; };
			document.getElementById("members").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
			document.getElementById("members").onmouseout = function() { this.className = ""; }
		}
	}

	function getEl (id) {
		var obj = null;
		if (!document.getElementById) return false;
		if (!(obj =document.getElementById(id))) return false;
		return obj;
	}
	
	function change_font(param)
	{
		  var oLinks = document.getElementsByTagName('link');
		  for( var x = 0, oLnk; oLnk = oLinks[x]; x++ ) {
			if( oLnk.getAttribute('href').match(/\/styles/) ) {
			  oLnk.setAttribute('href','http://newwavetechost.com/templates/16/styles'+param+'.css');
			  document.cookie = "cssatt=" + escape(param) + "; path=/";
			  break;
			}
		  }
	} 
	
	function open_popup(adr, width, height, name){
		var clWin = null;
		if(!name) name = Math.round(Math.random()*1000);
		clWin = window.open(adr, name, "height="+height+", width="+width+", top=30, left=30, status=no, toolbar=no, menubar=no, location=no, scrollbars=yes, directories=no");
		clWin.focus();
	}
	
	function print_page(url, width, height)
	{
		open_popup(url+'&print=1', width, height);
	}
	
	var currentTab = 1;
	function selTab(num)
	{
		getEl('tab_'+currentTab).className = '';
		getEl('tab_'+num).className = 'current';
		getEl('content_'+currentTab).style.display = 'none';
		getEl('content_'+num).style.display = 'inline';
		
		currentTab = num;
		return;
	}