// Name: CUFON
	
	Cufon.replace('.menu li a, h1, h2, .headerTitle', {hover: true});

// --------------------------------------------------

// Name: Blur Anchors

	function blurAnchors(){
		if(document.getElementsByTagName) {
			var a = document.getElementsByTagName("a");
			//collect all anchors A
			for(var i = 0; i < a.length; i++){
				// mouse onfocus, blur anchors
				a[i].onfocus = function(){this.blur();};
			}
		}	
	}
	window.onload = blurAnchors; 
	
//

$(document).ready(function(){
    $(".form_mailer").each(function(){
        var form = this;
        $(this).find(".buttonpas").each(function(){
            $(this).click(function(){
                error = 0;
                $(form).find(".required").each(function(){
                    if($(this).val() == ""){
                        $(this).addClass("red");
                        error++;
                    } else {
                        $(this).removeClass("red");
                    }
                });
                if(error == 0){
                    $(form).submit();
                } else {
                    
                }
            });
        });
    });
});
