function fix_ie_hover(navElement) {
	$$('TR','LI').each(function(node){
		node.onmouseover=function() {
			this.className+=" hover";
		}
		node.onmouseout=function() {
			this.className=this.className.replace(" hover", "");
		}
	});
}

function my_load() {
	if ($('home_splash')) {
		setTimeout("hide_splash()", 2000);
	}
	if ( $('work_image_nav') ) {
		$('work_image_nav').getElementsByClassName('img_nav').each(function(item) {
			var id = item.id.substring('catimg'.length,item.id.length);
			Event.observe(item, "mouseover", function(mouse){
				$('cat'+id).addClassName('on');
			})
			Event.observe(item, "mouseout", function(mouse){
				$('cat'+id).removeClassName('on');
			})
		});
	}
}

function hide_splash() {
	Element.show('main');
	new Effect.Fade('home_splash');
}

Event.observe(window,"load",my_load);
