// JavaScript Document

Menu = new Array();
subMenu = new Array();
subSubMenu = new Array();

addMenu("employee zone", "login.html");

addMenu("home", "index.html","horizontal","0");
addMenu("about us", "aboutus.html","horizontal","0");
addMenu("contact us", "contactus.html","horizontal","0");
addMenu("careers", "careers.html","horizontal","0");
addMenu("clients", "clients.html","horizontal","0");
addMenu("employee zone", "login.html","horizontal","1");
addMenu("employee zone", "inbox.html","horizontal","2");
addMenu("logout", "logout.html","horizontal","2");
addMenu("services", "services.html","vertical","0");
//	addSubMenu("technical", "techserv.aspx");
	addSubMenu("SubMenu1", "#");
	addSubMenu("SubMenu2", "#");
	addSubMenu("SubMenu3", "#");
addMenu("training", "train1.htm","vertical","0");
//	addSubMenu("health care", "health.aspx");
addMenu("resources", "resources.html","vertical","0");
//	addSubMenu("technical talk", "techtalk.aspx");

function addMenu(title,url,type,login){
	i = Menu.length;
	Menu[i] = new Array(title,url,type,login);
	subMenu[i] = new Array();
	subSubMenu[i] = new Array();
}

function addSubMenu(title,url){
	j = subMenu[i].length;
	subMenu[i][j] = new Array(title,url);
	subSubMenu[i][j] = new Array();
}

function addSubSubMenu(title,url){
	k = subSubMenu[i][j].length;
	subSubMenu[i][j][k] = new Array(title,url);
}

var build,selMenu,selSub,selSubSub,d;

function showHMenu(menuTitle,a){
	if(a){d=2;}else{d=1;}
	build='<div id="menu"><ul class="menubar" id="dmenu">';
	for(x=0;x<Menu.length;x++){
		if(Menu[x][2]=='horizontal' & (Menu[x][3]==0 || Menu[x][3]==d)){
			selMenu='';
			if(x==0)	selMenu='home';
			if(Menu[x][0]==menuTitle)	selMenu +=' selected';
			build +='<li class="topitem '+ selMenu +'"><a href="' + Menu[x][1] + '" name="&amp;lid=' + Menu[x][0] + '+Top_Nav">' + Menu[x][0] + '<\/a>';
			if(subMenu[x].length >0){
				build +='<ul class="submenu">'; 
				for(y=0;y<subMenu[x].length;y++)
					build +='<li><a href="' + subMenu[x][y][1] + '" name="&amp;lid=' + subMenu[x][y][0] + '+Top_Nav">' + subMenu[x][y][0] + '<\/a><\/li>';
				build +='<\/ul>'
			}
			build +='<\/li>';
		}
	}
	build += '<\/li><\/ul><\/div>';
	document.write(build);
}

function showVMenu(mainTitle,subTitle)
{
	build ='<div style=" width:100%;height:30; background-color:#5e5f5a;"><\/div>';
	build +='<ul class="mainmenu">';
	for(x=0;x<Menu.length;x++)
		if(Menu[x][2]=='vertical'){
			if(Menu[x][0]==mainTitle){
				if(subMenu[x].length>0){
					build+='<li class="cat" style="border-bottom: 1px solid rgb(214, 213, 208);"><a href="'+Menu[x][1]+'">&raquo;&nbsp;&nbsp;'+Menu[x][0]+'<\/a><\/li><li><\/li>';
					for(y=0;y<subMenu[x].length;y++){
						if(subMenu[x][y][0]==subTitle) selSubSub ='subitem_this';
						else selSubSub ='subitem';
						build+='<li class="'+selSubSub+'"><a href="'+subMenu[x][y][1]+'">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;'+subMenu[x][y][0]+'<\/a><\/li>';
					}
					build +="<li><\/li>";
				}
				else	build+='<li class="cat"><a href="'+Menu[x][1]+'">&raquo;&nbsp;&nbsp;'+Menu[x][0]+'<\/a><\/li>';
			}
			else	build+='<li class="unselected"><a href="'+Menu[x][1]+'">&raquo;&nbsp;&nbsp;'+Menu[x][0]+'<\/a><\/li>';
		}
	build +='<\/ul>';
	build +='<div style="width:100%;height:30;background-color:#5e5f5a;"><\/div>';
	document.writeln(build);
}

function showHeader(){
	build='<table border="0" cellpadding="0" cellspacing="0" style="background:url(images/homepage_bg.gif) top repeat-x;" width="100%"><tr><td width="160"><img src="images/web-option1.gif" width=136 height=70 border=0></td><td><div id="searchbar"><div id="top"><div><span><form name="theform" action="javascript:alert("Sorry for the inconivence, this page is under construction");" method="post">Search <input class="search_text" size="20" name="fpSearchText" maxlength="20" type="text"><input class="submit" src="images/button_search.gif" name="&amp;lid=Search" height="16" type="image" width="16"></form></span></div></div><script>showHMenu("'+selMenu+'");</script></div></td></tr></table>';
	document.writeln(build);	
}

function showFooter(){
	build='<p align="center"><a href="javascript:alert(\'Sorry for the inconivence, this page is under construction\');">site map</a> | <a href="aboutus.html">about us</a> | <a href="contactus.html">contact us</a> | <a href="javascript:alert(\'Sorry for the inconivence, this page is under construction\');">legal</a></p><p class="footertext" align="center">&copy; Copyright 2005-2007 Universal IT Corporation. All rights are reserved.<a href="#">Terms of Use</a> and <a href="#">Privacy Policy</a>.</p>';
	document.writeln(build);	
}

function showFlash(){
	build='';
/*	build='<OBJECT codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="92" width="161" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" VIEWASTEXT>
																	<PARAM NAME="_cx" VALUE="12171">
																	<PARAM NAME="_cy" VALUE="4895">
																	<PARAM NAME="FlashVars" VALUE="">
																	<PARAM NAME="Movie" VALUE="images/globe.swf">
																	<PARAM NAME="Src" VALUE="images/globe.swf">
																	<PARAM NAME="WMode" VALUE="Window">
																	<PARAM NAME="Play" VALUE="-1">
																	<PARAM NAME="Loop" VALUE="-1">
																	<PARAM NAME="Quality" VALUE="High">
																	<PARAM NAME="SAlign" VALUE="">
																	<PARAM NAME="Menu" VALUE="-1">
																	<PARAM NAME="Base" VALUE="">
																	<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">
																	<PARAM NAME="Scale" VALUE="ShowAll">
																	<PARAM NAME="DeviceFont" VALUE="0">
																	<PARAM NAME="EmbedMovie" VALUE="0">
																	<PARAM NAME="BGColor" VALUE="CCCCCC">
																	<PARAM NAME="SWRemote" VALUE="">
																	<PARAM NAME="MovieData" VALUE="">
																	<PARAM NAME="SeamlessTabbing" VALUE="1">
																	<PARAM NAME="Profile" VALUE="0">
																	<PARAM NAME="ProfileAddress" VALUE="">
																	<PARAM NAME="ProfilePort" VALUE="0">
																	<embed src="images/globe.swf" quality="high" bgcolor="#ffffff" width="161" height="92" name="header" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
																		pluginspage="http://www.macromedia.com/go/getflashplayer" />
																</OBJECT>';
	*/document.writeln(build);	
}

function showNew(){
	build='<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td bgcolor="#5e5f5a" width="100%" style="color: white; font-weight: bold; padding: 10px; margin: 0;"><b>Latest News<b></td></tr><tr><td><p style="margin-left:8px;" ><marquee direction="up" scrolldelay="50" height="250" scrollamount="1" >Universal IT Corporation is a full service provider.<br><br><br>We have the ability to quickly recruit the resources.<br><br><br>Regional and global IT companies,<br><br><br>Specializing in projects and solutions, offshore capabilities, IT staffing<br><br><br>Onsite and offsite, and consulting services.<br><br>Local, national, and international recruiting centers.<br><br><br></marquee></p></td></tr><tr><td height="30" bgcolor="#5e5f5a"></td></tr></table>';
	document.writeln(build);	
}