function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function attachevents()
{
//	var divid = id;
//	var rtdivid = rid; 
	MM_preloadImages('images/menu_lnk_left.png','images/menu_lnk_rgt.png');
	if(navigator.userAgent.indexOf('MSIE 6') != -1)
	{
		var chklinks = getid('menu').getElementsByTagName("li");
		for(var i=0; i<chklinks.length; i++)
		{
			if(chklinks[i].className != 'selected')
			{
				chklinks[i].onmouseover= hoverinfn;
				chklinks[i].onmouseout = hoveroutfn;
			}
		}
	}
	if(navigator.userAgent.indexOf('Safari') != -1)
	{
		getid('rtsec').style.width='116px';
	}
	if(navigator.userAgent.indexOf('Macintosh') != -1)
	{
		if(navigator.userAgent.indexOf('Firefox') != -1)
		{
			getid('rtsec').style.width='133px';
		}
	}
	getid('headerbot').style.zIndex='0';
	getid('menu').style.zIndex='999';
}
function hoverinfn()
{
	this.childNodes[0].style.background="url(images/menu_lnk_left.png) no-repeat left 5px";	
	this.childNodes[1].style.background="url(images/menu_ahover_bg.png) no-repeat left 6px";	
	this.childNodes[2].style.background="url(images/menu_lnk_rgt.png) no-repeat left 5px";	
}
function hoveroutfn()
{
	this.childNodes[0].style.background="url(images/menu_a_bg.png) no-repeat left bottom;";	
	this.childNodes[1].style.background="url(images/menu_a_bg.png) no-repeat left bottom;";	
	this.childNodes[2].style.background="url(images/menu_a_bg.png) no-repeat left bottom;";	
}
function getid(id)
{ 
	return document.getElementById(id);	
}
window.onload=attachevents;