// JavaScript Document

function getURL(url,location){
//	window.location.href = url;
	window.open(url,location);
}


function LoadMenu(){
	var menuLis = document.getElementById('nav').getElementsByTagName('li');
	
	function ShowMenuItems(obj){
		var menuSubLis = obj.getElementsByTagName('ul')[0];
		menuSubLis.style.display = "block";
		for(var t=0; t<menuSubLis.getElementsByTagName('li').length; t++){
	
			menuSubLis.getElementsByTagName('li')[t].onmouseover = function(){
				this.style.background = "url('/pix/inner_bar_over.gif') top left repeat-x";
			}
			menuSubLis.getElementsByTagName('li')[t].onmouseout = function(){
				this.style.background = "url('/pix/inner_bar.gif') top left repeat-x";
			}
					
			
		}
	}
	
	function HideMenuItems(obj){
		var menuSubLis = obj.getElementsByTagName('ul')[0];
		menuSubLis.style.display = "none";		
	}
	
	for(var i=0; i<menuLis.length; i++){
		
			
			menuLis[i].onmouseover = function(){
				this.style.cursor = "pointer";
				this.style.backgroundColor = "white";
				this.style.color = "white";
				this.style.textDecoration = "none";
				this.style.background = "url('/pix/menu_rbg.jpg') top left repeat-x";
				ShowMenuItems(this);
			}
			
			menuLis[i].onmouseout = function(){
				this.style.cursor = "default";
				this.style.backgroundColor = "white";
				this.style.color = "white";
				this.style.textDecoration = "none";
				this.style.background = "none";
				HideMenuItems(this);
			}
			
		
		
		
	}
	
	
}

