$(document).ready(function() {
					   
	$('#menu ul.mMenu li.ae').css('background','url(../images/nav/right.gif) right center no-repeat #020167');
	
	$('#menu ul.mMenu li.ae').hover(function(){
		$(this).find('a').css({color:'#fff'});
		$(this).css('background','url(../images/nav/down.gif) right center no-repeat #000099');
		$(this).find('ul.subMenu').css({left: ($(this).width()+10) + 'px',display:'block'});
		$(this).find('ul.subMenu li.na a').css({color:'#eef323'});
		$(this).find('ul.subMenu li').click(function(){
			document.location.href = $(this).find('a').attr('href');									
		});
	},function(){
		$(this).find('a').css({color:'#eef323'});
		$(this).css('background','url(../images/nav/right.gif) right center no-repeat #020167');
		$(this).find('ul.subMenu').css({display:'none'});		
	});
	
	$('#menu ul.mMenu li.na').hover(function(){
		$(this).find('a').css({color:'#fff'});		
		$(this).css('background','#000099');
	},function(){
		$(this).find('a').css({color:'#eef323'});
		$(this).css('background','#020167');	
	});
	
	if($('#menu ul.mMenu li').find('a').attr('href') != '#')
	{
		$('#menu ul.mMenu li').click(function() {
			document.location.href = $(this).find('a').attr('href');					  
		});
	}
	
	$('ul.subMenu li.na').hover(function(){
		$(this).css('background','#000099');
	},function(){
		$(this).css('background','#020167');
	});
	
	
	$('.downloads table tr.data').hover(
		function () {
			$(this).css('cursor','pointer');
			$('#messenger').html("<em>Click " + $(this).find('td a').html() + " to download form.</em>");
			$(this).css('background','#eee');
		  },
		  function () {
			$(this).css('cursor','defualt');
			$('#messenger').html('');
			$(this).css('background','#fff');
		  }
	);
	
	$('#table-data table tr td.right').hover(
		function () {
			$(this).css('background','#eee');
		  },
		  function () {
			$(this).css('background','#fff');
		  }
	);
	
	$('.downloads table tr.download-pdf').hover(
		function () {
			$(this).css('cursor','pointer');
			$('#messenger').html("<em>Click to download " + $(this).find('td a').html() + "</em>");
			$(this).find('td').find('div').html('<img src="../images/Download.png" height="16px" width="16px" alt="" />');
			$(this).css('background','#eee');
		  },
		  function () {
			$(this).css('cursor','defualt');
			$('#messenger').html('');
			$(this).find('td').find('div').html('');
			$(this).css('background','#fff');
		  }
	);
});

function MM_openBrWindow(theURL,winName,features) 
{
  window.open(theURL,winName,features);
}
function hilite(dom)
{
	$('#table-data table tr td').css('background','#fff');
	$(dom + 'r').find('td').css('background','#eee');
}
