// JavaScript Document


function InitNav() {
	$(".nav a").mouseover(function() {
		var id = GetID($(this),4);
		Highlight(id,'-current');
	});
	$(".nav a").mouseout(function() {
		var id = GetID($(this),4);
		Highlight(id,'');
	});
}

function Highlight(id, strCurrent) {
	if(!$("#aNav"+id).hasClass('current')) {
		//this is a current nav item, don't change it
		$("#aNav"+id+" img").attr("src",strRoot+"img/layout/nav/"+id+strCurrent+".png");
	}
}


function GetID(obj, intPos) {
	var strID = obj[0].id;
	return strID.substring(intPos);
}


