

 	/**
	*  Function Name          : showHideQuickLinks()
	*  Purpose                : used to show or hide the quicklinks menu.
	*  Parameters             : -Nil-
	*  Return                 : -Nil-
	*  Called From Functions  : on click event of Quicklinks button
	*  Calling Functions      : -Nil-
	*
	*/ 	
 	function showHideQuickLinks()
 	{
 		var objLinksDiv = document.getElementById("quickLinks");
 		var objLinksDiv_6 = document.getElementById("quickLinks_6");
 		

 		var version=0;
					if (navigator.appVersion.indexOf("MSIE")!=-1){
					temp=navigator.appVersion.split("MSIE")
					version=parseFloat(temp[1])
					}

					if (version == "6")
					{
					
						 		if (objLinksDiv_6.style.display == "none")
						 		{	 				
									objLinksDiv_6.style.display = "inline";
									event.returnValue = false;				
									event.returnValue = null;	
								} 
								else
								{
									objLinksDiv_6.style.display = "none";
								}			
						
					}
					else
					{
					 		if (objLinksDiv.style.display == "none" )
					 		{	 				
								objLinksDiv.style.display = "inline";
								event.returnValue = false;				
								event.returnValue = null;	
							} 
							else
							{
								objLinksDiv.style.display = "none";
							}	
						}	
												
 	}
 	
 	
 	/**
	*  Function Name          : changeBGColor()
	*  Purpose                : used to change the menu item background color.
	*  Parameters             : obj
	*  Return                 : -Nil-
	*  Called From Functions  : on mouse hover of menu item.
	*  Calling Functions      : -Nil-
	*
	*/
	
 	
 	function changeBGColor(obj)
 	{	 		
		
 		if (obj.style.backgroundColor == "#484443")
 		{
 			obj.style.backgroundColor = "#ffd342";
 			obj.firstChild.firstChild.color = "#000000";
 		}
 		else
 		{
 			obj.style.backgroundColor = "#484443"
 			obj.firstChild.firstChild.color = "#ffffff";
 		}
 	}
 	
 	
 	/**
	*  Function Name          : showQuickLinkDialog()
	*  Purpose                : used to redirect the page to the specified url.
	*  Parameters             : url
	*  Return                 : -Nil-
	*  Called From Functions  : on click event of menu item.
	*  Calling Functions      : -Nil-
	*
	*/
	function showQuickLinkDialog(url)
	{
		window.open(url,'_self');
	}
	
	 	
	/**
	*  Function Name          : document.onclick
	*  Purpose                : used to hide the quicklinks menu.
	*  Parameters             : event
	*  Return                 : -Nil-
	*  Called From Functions  : on click event of document.
	*  Calling Functions      : -Nil-
	*
	*/
 	document.onclick = function(event)
 	{ 		
 		var objLinksDiv = document.getElementById("quickLinks");		
 		var objLinksDiv6 = document.getElementById("quickLinks_6");
		var el = event || window.event; 
 		target= el.target ? el.target :el.srcElement; 
		//Commented to make the code to be executed in both ie and fire fox
		//if (event.srcElement.name != "imgQuickLinks" && objLinksDiv.style.display == "inline") {
		if (target.name != "imgQuickLinks" && objLinksDiv.style.display == "inline" ) {
			objLinksDiv.style.display = "none";
			objLinksDiv6.style.display = "none";
		}
		else if (target.name != "imgQuickLinks" && objLinksDiv6.style.display == "inline" ) {
		objLinksDiv6.style.display = "none";
		}
 	}
 	
 	
 	
 	/**
	*  Function Name          : showHideQuickLinks()
	*  Purpose                : used to show or hide the quicklinks menu.
	*  Parameters             : -Nil-
	*  Return                 : -Nil-
	*  Called From Functions  : on click event of Quicklinks button
	*  Calling Functions      : -Nil-
	*
	*/ 	
 	function goToHomePage()
	{
			window.open('/','_self');
	}

