function preloadImages() {
	document.preload = new Array();
	if (document.images) {
		for (var i = 0; i < preloadImages.arguments.length; i++) {
			document.preload[i] = new Image();
			document.preload[i].src = preloadImages.arguments[i];
		}
	}
}

preloadImages(
	'/images/template/navbg.png', 
	'/images/template/navspacer.png',
	'/images/template/subnav_outer.png',
	'/images/template/subnav_bot.png',
	'/images/template/subsubnav_bot.png',
	'/images/redarrow.gif',
	'/images/template/subnav_li.png'
);

//fake css :hover for ie6
if(window.attachEvent && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf('MSIE')+5))<7){
 fix = function()
 {
  //fake css :hover for nav menu, level 2
  var navRoot = document.getElementById('navmainul');
  if(navRoot!=null)
  {
   for (var i=0; i<navRoot.childNodes.length; i++)
   {
    var aNode = navRoot.childNodes[i];
    if(aNode.nodeName=='LI')
    {
     aNode.onmouseover=function(){this.className+=' over'; document.getElementById('nav').className.replace('hidesubs','');};
     aNode.onmouseout=function(){this.className=this.className.replace('over','');};
    };
   };
  };
 };
 window.attachEvent("onload", fix);
};
