//**********************************************************************************
//MODIFIED BY KISHORE ON AUGUST 15, 2007
//**********************************************************************************
/*

  menus[0] = new menu	(height of the menu,
  			type of menu ,
  			horizontal coordinate ,
  			vertical coordinate ,
  			horizontal offset(A positive value moves the new menu right and a negative value will move a new menu left) ,
  			vertical offset (A positive value moves the new menu down and a negative value will move a new menu up.),
  			background color of each item,
  			background color of each item when the viewer mouses over that item,
  			"MS Sans Serif", 12, "bold", "bold",
  			normal color of item text,
  			text color (mouse over),
  			size of the border around the menu,
  			color of the border around the menu,
  			padding,
  			"v",
  			to display sub-menus opened from this menu with a mouse click, instead of opening the sub-menus with a mouse over,
  			to separate each menu item with a divider,
  			this parameter defines a main menu if set to true. That means that this menu will be displayed when the page loads, instead of on a mouse over or mouse click,
  			to display sub-menus using a transitional effect,
  			type of transition to display,
  			to create a shadow for the menu,
  			how far away from the menu the shadow should be displayed, horizontally,
  			how far away from the menu the shadow should be displayed, vertically,
  			color of the shadow);

  menus[0].addItem	(link,
  			Optional link target. Set it to arbitrary "NEWWIN" to open this menu item in a new window, "FRAMENAME" to open in a specific frame, or "" for no target,
  			It is the height if the menu is vertical, and the width if the menu is horizontal,
  			alignment for item content,
  			item content,
  			number of the menu to show from this particular item on mouse over or on mouse click);

*/

/*
function pageDetails(pageName)
{
	alert("pageName : " + pageName);
	init(pageName);
}*/


//************************************************************************	
//FUNCTION USED FOR CREATING MENU
//*************************************************************************  
function init(pageName)
{

	//*********************************************************	
	//TO FIND THE SCREEN RESOLUTION AND SET THE MENU POSITION
	//*********************************************************  

	
	//alert('WIDTH  : ' + self.screen.width);
	//alert('HEIGHT : ' + self.screen.height);	

	//SCREEN WIDTH 
	/*
	var HzCoordinate ;	
	var VtCoordinate ; 	
	
	if(self.screen.width <= 800 ) 
	{
		HzCoordinate = 470;
	}	
	
	if((self.screen.width > 800 ) && (self.screen.width <= 1024 ))
	{
		HzCoordinate = 470;
	}		
	
	if((self.screen.width > 1024 ) && (self.screen.width <= 1152 ))
	{
		HzCoordinate = 538;
	}	
	
	if((self.screen.width > 1152 ) && (self.screen.width <= 1280 ))
	{
		HzCoordinate = 598;
	}	
	
	if(self.screen.width > 1280 )
	{
		HzCoordinate = 700;
	}*/	
	
	//SCREEN HEIGHT 
	/*
	if(self.screen.height <= 768 )
	{
		VtCoordinate = 92;
	}	
	
	if((self.screen.height > 768 ) && (self.screen.height <= 864 ))
	{
		VtCoordinate = 90;
	}
	
	if((self.screen.height > 864 ) && (self.screen.height <= 1024 ))
	{
		VtCoordinate = 90;
	}	
	
	if(self.screen.height > 1024 )
	{
		VtCoordinate = 90;
	}*/	


	//##################
	

	var winWidth, winHeight, d=document; 
	if (typeof window.innerWidth!='undefined')  //Non-IE
	{ 
		winWidth 	= window.innerWidth; 
		winHeight 	= window.innerHeight; 
	} 
	else //IE 6+ in 'standards compliant mode'

	{ 
		if (d.documentElement && typeof d.documentElement.clientWidth!='undefined' && d.documentElement.clientWidth!=0) 
		{ 
			winWidth 	= d.documentElement.clientWidth 
			winHeight 	= d.documentElement.clientHeight 
		} 
		else 
		{ 
			if (d.body && typeof d.body.clientWidth!='undefined') 
			{ 
				winWidth 	= d.body.clientWidth 
				winHeight 	= d.body.clientHeight 
			} 
		} 
	}
	
	
	
	
	//var screenWidth 		= self.screen.width;
	var screenWidth 		= winWidth;
	var middleContentWidth 		= 770;
	var outerColumnTotalWidth 	= screenWidth - middleContentWidth;
	var oneColumnTotalWidth		= outerColumnTotalWidth / 2;
	var menuRightSpacing		= 25;
	var menuWidth			    = 410;
	var leftSpaningWidth		= middleContentWidth - (menuWidth + menuRightSpacing);
	var menuPosition		= oneColumnTotalWidth + leftSpaningWidth;
	var HzCoordinate 		= menuPosition; 
	var VtCoordinate 		= 90;
	var PreScreenWidth 		= winWidth;
	var RefreshWin 			= false;
	
	
	/*
	alert('screenWidth : ' + screenWidth);
	alert('middleContentWidth : ' + middleContentWidth);
	alert('outerColumnTotalWidth : ' + outerColumnTotalWidth);
	alert('oneColumnTotalWidth : ' + oneColumnTotalWidth);
	alert('menuRightSpacing : ' + menuRightSpacing);
	alert('menuWidth : ' + menuWidth);
	alert('leftSpaningWidth : ' + leftSpaningWidth);
	alert('menuPosition : ' + menuPosition);
	alert('HzCoordinate : ' + HzCoordinate);
	alert('VtCoordinate : ' + VtCoordinate);
	alert('winWidth : ' + winWidth);
	alert('PreScreenWidth : ' + PreScreenWidth); */
	//####################
	


	
	
	//##################
	
	//uMonitor Red #D53E4B
	
	//*********************************************************	
	//TO CHANGE THE FONT COLOR OF MENU ITEM WHEN IT IS CLICKED
	//*********************************************************  	
	
	var txtSolutions 	= "Solutions";
	var txtNews 		= "News";
	var txtContact 		= "Contact";
	var txtCompany 		= "Company";
	var txtLogin 		= "Login";
	var txtSitemap 		= "Sitemap";
	
	// Solutions
	if( (pageName == "usolutions") 
	 || (pageName == "uOpenAnduFund")
	 || (pageName == "uSwitchOnlineSwitchKit")
	 || (pageName == "fundTransferServices")
	 || (pageName == "billPayment") 
	 || (pageName == "acctAggregation") 	
	 || (pageName == "uMAdvisor")	
	 || (pageName == "uVerify")	
	 || (pageName == "docManageSystem")	
	 || (pageName == "benefitsPlanManager")	
	 || (pageName == "professionalServices") )
	{

		txtSolutions 	= "<FONT COLOR=#D53E4B>Solutions</FONT>";
	}
	
	// News
	if ((pageName == "news") 
	 || (pageName == "worldNewsVideo") 	
	 || (pageName == "usrcsCaseStudies")	 
	 || (pageName == "usrcsTestimonials")		 
	 || (pageName == "recentPress") 
	 || (pageName == "recentMailers") 	 
	 || (pageName == "articles")
	 || (pageName == "umonCaseStudies")
	 || (pageName == "umonTestimonials") )
	{
		txtNews 	= "<FONT COLOR=#D53E4B>News</FONT>";
	}
	
	// Contact
	if ((pageName == "contact") 
	 || (pageName == "corpDirection")	
	 || (pageName == "reqInformation") 
	 || (pageName == "reqwebinar")
	 || (pageName == "careers") )
	{
		txtContact 	= "<FONT COLOR=#D53E4B>Contact</FONT>";
	}
	
	// Company
	if ((pageName == "company") 
	 || (pageName == "management") 
	 || (pageName == "sitemap")	 )	
	{
		txtCompany 	= "<FONT COLOR=#D53E4B>Company</FONT>";
	}	
	
	// Login
	if (pageName == "login") 
	{
		txtLogin 	= "<FONT COLOR=#D53E4B>Login</FONT>";
	}		
	
	// Sitemap
	//if (pageName == "sitemap") 
	//{
	//	txtSitemap 	= "<FONT COLOR=#D53E4B>Sitemap</FONT>";
	//}			
	
	//*********************************************************	
	//TO CREAT THE MENU ITEMS D5D7DB
	//*********************************************************  	
	
	//Main Menu items:
	menus[0] = new menu(20, "horizontal", HzCoordinate , VtCoordinate , 0, 10, "#424347", "#424347", "tahoma", 13, "regular",
		"crisp", "#8E8F92", "white", 1, "#424347", 1, false, false, true, true, true, 12, false, 0, 0, "#424347");
	menus[0].addItem("usolutions.htm", "", 80, "center", txtSolutions, 1);
	menus[0].addItem("recentPress.htm", "", 80, "center", txtNews, 2);
	menus[0].addItem("contact.htm", "", 80, "center", txtContact, 3);
	menus[0].addItem("corpinfo.htm", "", 80, "center", txtCompany, 4);
	menus[0].addItem("login.htm", "", 80, "center", txtLogin, 0);
	//menus[0].addItem("sitemap.htm", "", 80, "center", txtSitemap, 6);
	

	//Sub Menu for 1st Main Menu Item (Solutions):
	menus[1] = new menu(165, "vertical", 0, 0, 0, 0, "#BDBEBF", "#D0D0D0", "tahoma", 10, "regular",
		"crisp", "#3F3F3F", "white", 1, "#D5D7DB", 1, false, false, true, false, true, 6, true, 0, 0, "#F5F6F7");
	menus[1].addItem("usolutions.htm", "", 20, "left", "Solutions Overview", 0);
	menus[1].addItem("uOpenAnduFund.htm", "", 20, "left", "uOpen & uFund<SUP>&reg;</SUP>", 0);
	menus[1].addItem("fundTransferServices.htm", "", 20, "left", "uTransfer<SUP>&reg;</SUP>", 0);
	menus[1].addItem("uSwitchOnlineSwitchKit.htm", "", 20, "left", "uSwitch<SUP>&reg;</SUP>", 0);
	menus[1].addItem("acctAggregation.htm", "", 20, "left", "uView <SUP>&reg;</SUP>", 0);
	menus[1].addItem("uMAdvisor.htm", "", 20, "left", "uAdvise<SUP>&reg;</SUP>", 0);
	menus[1].addItem("benefitsPlanManager.htm", "", 20, "left", "uPlan<SUP>&reg;</SUP>", 0);
	menus[1].addItem("billPayment.htm", "", 20, "left", "uPresent<SUP>&reg;</SUP>", 0);
	menus[1].addItem("uVerify.htm", "", 20, "left", "uVerify<SUP>&reg;</SUP>", 0);
	menus[1].addItem("docManageSystem.htm", "", 20, "left", "uDocument<SUP>&reg;</SUP>", 0);
	menus[1].addItem("professionalServices.htm", "", 20, "left", "Professional Services", 0);	

	//Sub Menu for 2st Main Menu Item ("News"):
	menus[2] = new menu(155, "vertical", 0, 0, 0, 0, "#BDBEBF", "#D0D0D0", "tahoma", 10, "regular",
		"crisp", "#3F3F3F", "white", 1, "#D5D7DB", 1, false, false, true, false, true, 6, true, 0, 0, "#F5F6F7");
	menus[2].addItem("recentPress.htm", "", 20, "left", "Recent Press", 0);
	menus[2].addItem("articles.htm", "", 20, "left", "Articles", 0);
	menus[2].addItem("recentMailers.htm", "", 20, "left", "Recent Mailers", 0);
	menus[2].addItem("umonCaseStudies.htm", "", 20, "left", "Case Studies", 0);
	menus[2].addItem("umonTestimonials.htm", "", 20, "left", "Testimonials", 0);


	//Sub Menu for 3st Main Menu Item ("Contact"):
	menus[3] = new menu(155, "vertical", 0, 0, 0, 0, "#BDBEBF", "#D0D0D0", "tahoma", 10, "regular",
		"crisp", "#3F3F3F", "white", 1, "#D5D7DB", 1, false, false, true, false, true, 6, true, 0, 0, "#F5F6F7");
	menus[3].addItem("contact.htm", "", 20, "left", "Contact Details", 0);
	menus[3].addItem("corpDirection.htm", "", 20, "left", "Directions", 0);
	
	menus[3].addItem("webinars.htm", "", 20, "left", "Webinars", 0);	
	menus[3].addItem("reqInformation.htm", "", 20, "left", "Request Information", 0);
	menus[3].addItem("careers.htm", "", 20, "left", "Careers", 0);	

	//Sub Menu for 4th Main Menu Item ("Company"):
	menus[4] = new menu(140, "vertical", 0, 0, 0, 0, "#BDBEBF", "#D0D0D0", "tahoma", 10, "regular",
		"crisp", "#3F3F3F", "white", 1, "#D5D7DB", 1, false, false, true, false, true, 6, true, 0, 0, "#F5F6F7");
	menus[4].addItem("corpinfo.htm", "", 20, "left", "Company Overview", 0);
	menus[4].addItem("management.htm", "", 20, "left", "Management", 0);
	menus[4].addItem("sitemap.htm", "", 20, "left", "Sitemap", 0);
	
	
	menus[5] = new menu(140, "vertical", 0, 0, 0, 0, "#BDBEBF", "#D0D0D0", "tahoma", 10, "regular",
		"crisp", "#3F3F3F", "white", 0, "#D5D7DB", 0, false, false, true, false, true, 6, true, 0, 0, "#F5F6F7");
	
	menus[6] = new menu(140, "vertical", 0, 0, 0, 0, "#BDBEBF", "#D0D0D0", "tahoma", 10, "regular",
		"crisp", "#3F3F3F", "white", 0, "#D5D7DB", 0, false, false, true, false, true, 6, true, 0, 0, "#F5F6F7");	
	
	//writePageHeading(pageName);
	

} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.
  // function init(pageName) ends here
  

