// SIFR REPLACEMENTS
var sifrReplacements = function(){		
	// siFR 3
	var aldo = {
		src: '/swf/AldoSemiBold.swf'
	};
	sIFR.activate(aldo);

	sIFR.replace(aldo, {
		selector: '#contentRight h2',
		//tuneHeight: -6,
		wmode: 'transparent',
		selectable: 1,
		css: [ '.sIFR-root {font-size: 18;color: #FFFFFF; background-color : #FFFFFF;}' ]
	});
	sIFR.replace(aldo, {
		selector: '#contentLeft .projetHaut h2 ',
		//tuneHeight: -6,
		wmode: 'transparent',
		selectable: 1,
		css: [ '.sIFR-root {font-size: 18;color: #FFFFFF; background-color : #FFFFFF;}' ]
	});
	sIFR.replace(aldo, {
		selector: '.contentText h1',
		//tuneHeight: -6,
		wmode: 'transparent',
		selectable: 1,
		css: [ '.sIFR-root {font-size: 30; color: #DB4310; background-color : #FFFFFF}' ]
	});

	sIFR.replace(aldo, {
		selector: '.blocVideo h2 span.coinGauche',
		//tuneHeight: -6,
		wmode: 'transparent',
		selectable: 1,
		css: [ '.sIFR-root {font-size: 20; color: #ffffff; background-color : #F54306}' ]
	});
}
sifrReplacements();

$(document).ready(function(){
	
	//search field
	if($("input[class='searchText']")){ 
		$("input[class='searchText']").focus(function(){	
			if($(this).attr('value') == $(this).attr('title')){
				$(this).attr('value', '');
			}
		});
		$("input[class='searchText']").blur(function(){	
			if($(this).attr('value') == ''){
				$(this).attr('value', $(this).attr('title'));
			}
		});			
	}

	//search field
	if($("#contentLeft input[class='texte']")){ 
		$("#contentLeft input[class='texte']").focus(function(){	
			if($(this).attr('value') == $(this).attr('title')){
				$(this).attr('value', '');
			}
		});
		$("#contentLeft input[class='texte']").blur(function(){	
			if($(this).attr('value') == ''){
				$(this).attr('value', $(this).attr('title'));
			}
		});	
	}		
		});

	
