
// JQuery IMG hover swapper - place id="swapit" in IMG tag, save 1st image as ??.png and 2nd image ??-over.png
$(document).ready(function() {
	$("#swapit").hover(function () {
	$(this).attr("src", $(this).attr("src").replace(/.png/, "-over.png"));
	$(this).attr("src", $(this).attr("src").replace(/.jpg/, "-over.jpg"));
	$(this).attr("src", $(this).attr("src").replace(/.gif/, "-over.gif"));
	},function () {
	$(this).attr("src", $(this).attr("src").replace(/-over.png/, ".png"));
	$(this).attr("src", $(this).attr("src").replace(/-over.jpg/, ".jpg"));
	$(this).attr("src", $(this).attr("src").replace(/-over.gif/, ".gif"));
	});
});



// JQuery hover fader - place class="fadeit" in any element
$(document).ready(function(){
	$(".fadeit").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
	$(".fadeit").hover(function(){
	$(this).fadeTo("slow", 0.6); // This should set the opacity to 100% on hover
	},function(){
	$(this).fadeTo("slow", 1.0); // This should set the opacity back to 30% on mouseout
	});
});



// JQuery multi level menu
function mainmenu(){
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(0);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}

 $(document).ready(function(){					
	mainmenu();
});