// JavaScript Document
$(function(){
		//browser check
if ( $.browser.msie ) {
  $("body").addClass("explorer"  + parseInt($.browser.version) );
}
if ( $.browser.opera ) {
	//alert("This is Opera");
  $("body").addClass("opera"  +  parseInt($.browser.version) );
}
if ( $.browser.webkit ) {
	//alert("This is either Google or Safari");
  $("body").addClass("webkit");
}
if ( $.browser.mozilla ) {
  $("body").addClass("firefox");
}
			//remove the no-js class from the body to prove that javascript has loaded
			$("body").removeClass('no-js');
		   	//clear all the floats that wreck the layouts
		   	$(".button,.buttonRight,.hNav").append("<div class='clear'> </div>");
		    //do the menus
			//cache nav
		var nav = $("#mainNav");

		//add indicators and hovers to submenu parents
		nav.find("li").each(function() {
			if ($(this).find("ul").length > 0) {

				$("<span>").text(" ").appendTo($(this).children(":first"));

				//show subnav on hover
				$(this).mouseenter(function() {
					$(this).find("ul").stop(true, true).slideDown();
				});

				//hide submenus on exit
				$(this).mouseleave(function() {
					$(this).find("ul").stop(true, true).slideUp();
				});
			}
		});
		
		//big targets!!
		$(".bigTarget a").bigTarget({clickZone: 'div:eq(0)'});	
		   
		   });
