
var type = "http";
var ip_tcb = "tcb.ultratech-labs.com:8443";
var ip_forum = "tcb.ultratech-labs.com:8080";
var ultSite = "http://www.ultratech-labs.com/";


/*
[["TCB and CB"], ["Electronic Filing", "E-Filing/"], ["Forum", "Forum_2/"]], 

*/


var list = [ [["TCB and CB"], ["Forum", "forum/"], ["Electronic Filing", "E-Filing/"]],
			 [["General"], ["Request a Quotation", "ULTRAREQ.php"], ["Download Files", "download.php"], ["Useful Links", "usefulLinks.php"], ["Newsletters", "Newsletters.htm"], ["Affiliate", "affiliated.html"],["Hotels", "hotels.html"]],
			 [["Standards"], ["EMI/RFI", "standard_emi.html"], ["EMC", "standard_emc.html"], ["SAR", "standards_sar.html"], ["Telecom", "standard_telecom.html"], ["Product Safety", "standard_safety.html"]],
			 [["Services"], ["Design Reviews", "services_reviews.html"], ["On-site Consulting", "services_tcf.html"]],
			 [["Facilities"], ["Open Area Test Site A", "oats_a.html"], ["Open Area Test Site B", "oats_b.html"], ["10m Chamber", "10m_chamber.html"],  ["TDK Chamber", "tdk10m_chamber.html"], ["3m Chambers", "3m_chamber.html"], ["SAR Test Chamber", "sar.html"],["Telecom Regulatory", "telecom.html"], ["Product Safety", "safety.html"]],
			 [["Accreditations"], ["FCC Listing", "Accreditations_FCC.html"],["ANSI", "Accreditations_ANSI.html"], ["NVLAP", "Accreditations_NVLAP.html"], ["Industry Canada", "Accreditations_ICAN.html"], ["VCCI", "Accreditations_VCCI.html"], ["TUV PTL", "Accreditations_TUV.html"]],
			 [["About us"], ["Who we are", "whoWeAre.html"], ["Contact information", "contact.html"], ["Our Customers", "ourCustomers.html"]]
  		   ];
	 
/* ["Presidents message", "ultratech4/presidentsMess.html"], */	 
	 
function menu(){

	document.write("<table class=\"navbar\" width=\"700\">");
	document.write("<tr>");
	
	for(var i=0; i < list.length; i++){	
		var sublist = list[i];
		var j=0;
		
		document.write("<td class=\"menuNormal\" onmouseover=\"expand(this);\" onmouseout=\"collapse(this);\">");
		document.write("<p><a class=\"menuNormal\"href=\"#\">"+sublist[j][0]+"</a></p>");
		
		document.write("<div class=\"menuNormal\" width=\"200\">");
		document.write("<table class=\"menu\" border =\"0\" >");
			
		j++;
		
		for(;j < sublist.length; j++){
			document.write("<tr><td class=\"menuNormal\">");
			
			if(sublist[j][0] == "Electronic Filing")
				document.write("<a href=\""+type+"s://"+ip_tcb+"/"+sublist[j][1]+"\" class=\"menuitem\" target=\"_top\">"+sublist[j][0]+"</a>");
			else if(sublist[j][0] == "Forum")	
				document.write("<a href=\""+type+"://"+ip_forum+"/"+sublist[j][1]+"\" class=\"menuitem\">"+sublist[j][0]+"</a>");
			else	
				document.write("<a href=\""+ultSite+sublist[j][1]+"\" class=\"menuitem\">"+sublist[j][0]+"</a>");
			
			document.write("</td></tr>");
		}
		document.write("</table>");
		document.write("</div>");
		document.write("</td>");
			
	}
		
	document.write("</tr>");
	document.write("</table>");
}		

function expand(s) {
	var td = s;
	var d = td.getElementsByTagName("div").item(0);

	td.className = "menuHover";
	d.className = "menuHover";
}

function collapse(s) {
	var td = s;
	var d = td.getElementsByTagName("div").item(0);
	td.className = "menuNormal";
	d.className = "menuNormal";
}



var rePath = "/images/logo/";
/* 
["rrl.gif", "http://web.rrl.go.kr/eng/", "100", "29", ""] 
["ITI_logo.gif", "http://www.techintl.com/", "17", "15", "00-034"],

*/


var logoList = [["fcc_logo.gif", "http://www.fcc.gov/oet/", "30", "23", "31040/SIT"], 
				["ICAN_logo.gif", "http://spectrum.ic.gc.ca/~cert/", "72", "15", "46390-2049"],
				["nvlap_logo.gif", "http://ts.nist.gov/ts/htdocs/210/214/214.htm", "58", "23", "200093-0"],
				["VCCI_logo.gif", "http://www.vcci.or.jp/vcci_e/", "40", "30", "C-1376"],
				["BSMI_logo.gif", "http://web-server.bsmi.gov.tw/english/e_n_hpg.htm", "75", "38", "SL2-IN-E-1119R"],
				["AUSTEL~1.gif", "http://www.austel.gov.au/", "95", "35", ""],
				["FDA_logo.gif", "http://www.fda.gov/", "60", "25", ""],
				["UL_logo.gif", "http://www.ul.com", "50", "30", ""],
				
				["TRL_logo.gif", "http://www.trlcompliance.com", "100", "19", ""],
				["CE_Mark.gif", "",  "25", "25", ""]  
			   ];

function logo(){		 
	var i=0;
	
	document.write("<hr width=\"80%\">");
	document.write("<table border=\"0\" width =\"100%\" style=\"font-size :8;\" cellspacing=\"0\" cellpadding=\"0\">");
	
	document.write("<tr align=\"center\">");
	for(; i < logoList.length; i++){
		document.write("<td>");
		document.write("&nbsp;&nbsp;&nbsp;<a class=\"logoLink\" href=\""+logoList[i][1]+"\" target=\"new window\"><img border=\"0\" src=\""+(ultSite+rePath+logoList[i][0])+"\" width=\""+logoList[i][2]+"\" height=\""+logoList[i][3]+"\"></a>&nbsp;&nbsp;&nbsp; ");
		document.write("</td>");
	}	
	document.write("</tr>");
	
	
	document.write("<tr align=\"center\">");
	i =0;

	for(; i < logoList.length; i++){
		document.write("<td>");
		document.write(logoList[i][4]);
		document.write("</td>");
	}
	
	
	document.write("</tr>");
	
	
	document.write("</table>");	
}	



function copyright(){
	document.write("<div class=\"copyRight\">");

	document.write("<div class=\"copyRight\" style=\"float: left; width : 450;\" align=\"left\"><em>");
	document.write("Copyright &copy; 2010 UltraTech Group of Labs, Inc. All rights reserved");
	
	document.write("</em></div>");
	document.write("<div class=\"copyRight\" style=\"float : right;  width : 450; margin : 0 0 0 0\" align=\"right\">");
	document.write("<a class=\"copyRight\" href=\""+ultSite+"termsOfUse.html"+"\" style=\"color : white\" >Terms of Use</a> | ");
	document.write("<a class=\"copyRight\"href=\""+ultSite+"privacyPolicy.html"+"\" style=\"color : white\">Privacy Policy</a>");
	document.write("</div>");
	
	document.write("</div>");	
}

function header(){
	document.write("<div class=\"banner\" align=\"center\">");
	document.write("<table class=\"link\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"200\">");
	document.write("<tr>");
	document.write("<td><a class=\"lin\" href=\"index.htm\">Home</a></td>");
	document.write("<td><a class=\"lin\" href=\"siteMap.html\">Site Map </a></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</div>");
	
	menu();
	
	document.write("<div class=\"date\" align=\"right\" >");
	var month = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
	var today = new Date();
	document.write("<font size=\"1\" color=\"white\">"+month[today.getMonth()]+" "+today.getDate()+", "+today.getYear()+"</font>");
				
}	


function zoomer(level){ 
	document.images["map"].src = "images/map" + level + ".gif";
} 
function changeOpacity(obj,opacity) { 
	MozOp = opacity / 100; obj.style.MozOpacity=MozOp;
	obj.style.filter='alpha(opacity='+opacity+')';
	window.status=" ";
} 
		
			

var current = 0
var x = 0
var speed = 50
var speed2 = 5000
	
function initArray(n) {
	this.length = n;
	for (var i =1; i <= n; i++) {
		this[i] = ' ';
	}
}
			
typ = new initArray(4);
typ[0]="Welcome to the ULtraTech Group of Labs website";
typ[1] = "Product Approvals and Compliance, Test & Measurement, consulting";
typ[2] = "Seminars, Design Reviews, Agency Liaison";
typ[3] = "EMC, EMI, RFI, RSSI, SAR, Telecommunications, Product Safety";
			
			
	
function typewrite() {
	var m = typ[current];

	if (current <= typ.length - 1) {
		window.status = m.substring(0, x++) + " ";
		if (x == m.length + 1) {
			x = 0;
			current++;
			setTimeout("typewrite()", speed2);
		}
		else {
			setTimeout("typewrite()", speed);
		}
	}	
	else {
		window.status = "";
	}
}

function popup(url){
	var win = window.open(url, "popup", 'width=600 height=300, scrollbars=yes, resizable=0, menubar=no, location=no');
}



stat = new initArray();
stat[0] = "Welcome to Ultratech Group of Labs Telecommunication Certification Body (TCB)";
stat[1] = "UltraTech Telecommunication Certification Body provides Certification";
stat[2] = "Services for Radio and Terminal Attachment Devices in accordance with";
stat[3] = "rules/standards allowed by Federal Communications Commission (FCC) and Industry Canada(IC)";

var temp = 0;

