$(function(){
		   
	var base = $("base").attr("href");
	
// Animation du logo en haut de page
// ***
	
	if( !$.browser.msie ){
	$("#logo img").mouseover(function(){ $(this).animate({ opacity : 0.5 }); });
	$("#logo img").mouseout(function(){ $(this).animate({ opacity : 1 }); });
	}
	
	//$("#common").hide();
	//$("#common").slideDown("slow");
	
// Ajout d'un _blank valide xhtml 
//***

	$("a[href^=http://] , ._blank ").click(function(){
		if($(this).attr("href") == base) {
			return true;
		}else{
			window.open(this.href,'_blank');
			return false;
		}
	});
	

// Portfolio, switch des images de présentation
// ***
	
	$(".pf-pagination a").click(function(){		
		id = this.hash.replace("#","");
		
		$(".pf-pagination a").each(function(){
			if( this.hash.replace("#","") == id ){
				$(this).addClass("page-actif");
			}else{
				$(this).removeClass("page-actif");
			}
		});
		
		$(".pf-captures img").each(function(){
			if($(this).attr("id") != id){
				$(this).hide();
			}else{
				$(this).show();
			}
		});
		
		return false;
	});
	
// Ajout d'un faviconize
// ***

	$("._blank").faviconize({position : "before",className: "faviconize"});
	  
	//$("#contact input[type=text], #contact textarea").css({ opacity : 0.4 });
});