function toggleTextOut(e,txtval) {
	if(e.value=="") e.value = txtval;

}
function toggleTextIn(e,txtval) {
	if(e.value==txtval) e.value="";
	else e.select();
}

$(document).ready(function(){
	$(".swap").hover(
			function(){
				if($(this).attr("src").indexOf("-on") == -1) {
				var newSrc = $(this).attr("src").replace(".gif","-on.gif");
				$(this).attr("src",newSrc);
				}},
				function(){
				if($(this).attr("src").indexOf(".gif") != -1) {
				var oldSrc = $(this).attr("src").replace("-on.gif",".gif");
				$(this).attr("src",oldSrc);
				}
				});
	
});
$(document).ready(function(){
	$(".swap2").hover(
			function(){
				if($(this).attr("src").indexOf("-on") == -1) {
				var newSrc = $(this).attr("src").replace(".png","-on.png");
				$(this).attr("src",newSrc);
				}},
				function(){
				if($(this).attr("src").indexOf(".png") != -1) {
				var oldSrc = $(this).attr("src").replace("-on.png",".png");
				$(this).attr("src",oldSrc);
				}
				});
	
});
$(document).ready(function(){
	$(".swap3").hover(
			function(){
				if($(this).attr("src").indexOf("-on") == -1) {
				var newSrc = $(this).attr("src").replace(".jpg","-on.jpg");
				$(this).attr("src",newSrc);
				}},
				function(){
				if($(this).attr("src").indexOf(".jpg") != -1) {
				var oldSrc = $(this).attr("src").replace("-on.jpg",".jpg");
				$(this).attr("src",oldSrc);
				}
				});
	
});

$(document).ready(function(){
    $("#main-navigation  li").hover(
        function(){ $("ul", this).fadeIn("fast"); }, 
        function() { $("ul", this).fadeOut("fast");  } 
    );
    if (document.all) {
        $("#main-navigation li").hoverClass ("sfHover");
    }
});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
}; 

/*$(document).ready(function(){
$("div.gallery-img img").mouseOver(
	function(){ $("span.details", this).fadeIn("fast"); 
		alert(test);
	}, 
	function() { $("span.details", this).fadeOut("fast");  } 
);

}); 
*/


