var ltie7 = ($.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent));
$(function(){
	if (ltie7) {
		$("#footerList li:first-child").css({borderLeft: 'none'});
		$("th:first-child, td:first-child").css({border: 'none'});
		$(".annexesItem:first-child").css({border: 'none'});
		$(".menuSsListDisplayed .menuSsItem:first-child").css({border: 'none'});
		$(".homePushItem:first-child").css({border: 'none'});
	}
	
	$(".radio").css('border','none');
	
	if ($('body').is('#home')) {
		homeInputsText.init();
	}
	
	$("#formAER").submit(function(){
		$("#load").show();
	});
	
});


var homeInputsText = function(){
	function init(){
		$('#annuaireInputText,#competence,#text').each(function(){
			var elmt=$(this);
			inserLabelIntoInput(elmt.attr('value'),elmt);
		});
	}
	return {init:init}
}();

function inserLabelIntoInput (value,input) {
	if (input.val() && value) {
		input.focus(function(){if(input.val() == value) input.val('');});
		input.blur(function(){if(input.val() == '')input.val(value);});
		
	}
}
