/* ********************************* INIT */
$(document).ready(function() {
	swapValue()	;			//swapValue (fonction pour le champ de recherche)
	specialIE6();			//special pour IE6
});

/* ********************************* SWAP VALUE */
function swapValue() {
	if( $(".swapValue").length < 1 ) return false;
	swapValues=[];
	$(".swapValue").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])
				 }
			 })
	});
}

/* *********************************** SPECIAL POUR IE6 */
function specialIE6(){
	if ($.browser.msie && $.browser.version == 6.0) {
		/* ifixpng : PNG sur IE6  */
		$.ifixpng('css/skins/pixel.gif');
		$('img[src$=.png], .png').ifixpng();
	}
}

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};