﻿/*
	From:       ddmenu.js
	Changed By: Rory Dueck
	Date:       06-17-09
    Description: Converted to jQuery inorder to handle instances where '#navWrap' doen't exsit and recall.
*/

$(function() {
$("#mainnav li").each(function() {
		$(this).mouseover(function() {
			$(this).addClass("sfhover")
		}).mouseout(function() {
			$(this).removeClass("sfhover")
		})
		
		// Fixes a tag padding not being clickable in ie6
		if ($.browser.version<7.0 && $.browser.msie) {
			$(this).click(function(){
				location = $(this).find(">a").attr("href");
			})
		}
})
$("#nav > li:first").addClass("first");
$("#nav > li:last").addClass("last");
});
