// JavaScript Document
// Script by
// Alex Timmermans for CANMAKEITWORK.COM
$(document).ready(function(){
/*

/* make menus swap images when hovering */
$(".hovermenu").hover(
	function () {
		$(this).attr('src',"/images/nav_black/"+$(this).attr('name')+".png");
		$('#div_expertise').hide();
	}, 
	function () {
		$(this).attr('src',"/images/nav_white/"+$(this).attr('name')+".png");
	}
);
/* make submenus swap images when hovering */
$(".hoversubs").hover(
	function () {
		$(this).attr('src',"/images/nav_black/"+$(this).attr('name')+".png");
	}, 
	function () {
		$(this).attr('src',"/images/nav_white/"+$(this).attr('name')+".png");
	}
);
/* make scoremenus swap images when hovering */
$(".hoverscore").hover(
	function () {
		$(this).attr('src',"/images/nav_black/"+$(this).attr('name')+".png");
	}, 
	function () {
		$(this).attr('src',"/images/nav_white/"+$(this).attr('name')+".png");
	}
);
/* making sure the subs are hiden when mouse is out the navigation */
$("#expertise").hover(
	function () {
		$('#div_expertise').show();
	}
);
$("#roadguide").mouseleave(
	function () {
		$('#div_expertise').hide();
	}
);
});
