$(function() {

    /*
        1.) Form Field Value Swap
    */

    swapValues = [];
    $(".clearform").each(function(i){
        swapValues[i] = $(this).val();
        $(this).focus(function(){
            if ($(this).val() == swapValues[i]) {
                $(this).val("");
            }
        }).blur(function(){
            if ($.trim($(this).val()) == "") {
                $(this).val(swapValues[i]);
            }
        });
    });
});
var thisurl = 'http://www.beaulieu-maternite.ch';
$(document).ready(function(){ 
jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	{
		jQuery("<img>").attr("src", arguments[i]);
	}
}
$.preloadImages(thisurl +"/img/navigation/menu_principal/accueil_on.gif");

$(
	function()
	{
		// set up rollover
		$("img.rollover").hover(
			function()
			{
	
				this.src = this.src.replace("_off","_on");
				
			},
			function()
			{
				this.src = this.src.replace("_on","_off");
			}
		);
	}
);
});


