$(document).ready(function(){


	// External Window Links
	$('a.new-window').click(function(){
		window.open(this.href);
		return false;
	});

	//Mini Site Window Links  975
	$('a.mini-link').click(function(){
	window.open(this.href,"_blank","width=970,height=700,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
		return false;
	});


	// IE radio button change event fix
	if ($.browser.msie) {
        $('input:radio').click(function () {
            this.blur();
            this.focus();
        });
    }

	// Navigation Drop Down Menus
	$("#header ul li a").mouseover(function(){
		$(this).parent().children("ul").show();
	});
	
	$("#header ul li a").mouseout(function(){
		$(this).parent().children("ul").hide();
	});
	
	$("#header ul li ul").mouseover(function(){
		$(this).show();
	});
	
	$("#header ul li ul").mouseout(function(){
		$(this).hide();
	});
	
	
	

	// Hover Swap
	$(".hover-swap").hover(function(){
			var source = $(this).attr("src");
			var extension = source.substring(source.length - 4);
			var location = source.substring(0,source.length - 4);
			if (location.substring(location.length - 7) != "-active")
			{
				$(this).attr("src",location + "-on" + extension);
			}
		},
		function(){
			var source = $(this).attr("src");
			var extension = source.substring(source.length - 4);
			var location = source.substring(0,source.length - 4);
			if (location.substring(location.length - 7) != "-active")
			{
				$(this).attr("src",location.substring(0,location.length - 3) + extension);
			}
		}
	);
	

});

