/*  MouseOver - jQuery
-------------------------------------------------------------------------------------------*/
function imageSwitch(imgObj,hovSuffix,offSuffix)
{

	jQuery(imgObj).hover(
						 
		function() {
			this.src = this.src.replace( offSuffix, hovSuffix );
		},
		function() {
			this.src = this.src.replace( hovSuffix, offSuffix );
		}
		
	);
	
	
}


/*  Checks to if pageName is the current Location
-------------------------------------------------------------------------------------------*/
function isPage(pageName)
{

	currentPage = $(location).attr('href')
	
	if (currentPage.match(pageName) != null)
	{
		return true;
	}

}



/*  Single Select Checkboxes
-------------------------------------------------------------------------------------------*/
$(document).ready(function() {

		$('.checkboxes .checkbox').click(function() {
											 
				$('.checkboxes .checkbox').attr('checked', false);
				$(this).attr('checked', true);
			});
 
 });
 
 
/*  On DOM Ready
-------------------------------------------------------------------------------------------*/
jQuery().ready(function(){
			   
	imageSwitch("#navMiddle a img.off","_hov.gif","_off.gif");

});



/*  MouseOver Fix for IE8
-------------------------------------------------------------------------------------------*/
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);




