function pageHeightDesign()
{
	//Hauteur visible de l'écran
	var screenHeight = $(window).height();
	
	//Hauteur du body
	var bodyHeight	 = $('body').height();
	
	//Hauteur du pied de page
	var footerHeight = $('#footer').height();
	
	if(bodyHeight < screenHeight){
	
		$('#footer').height(screenHeight - bodyHeight + footerHeight);
	}	
}

function datasTableOdd()
{
	$('.datas-table tr:even').css("background", "#F7F7F7");
	$('.datas-table tr:odd').css("background", "#FFFFFF");
}



function loginFormValues()
{
	var loginAutoValue = 'Identifiant client';
	
	if($('#header-acces-abonnes form #identifiant').val() == '' || $('#header-acces-abonnes form #identifiant').val() == loginAutoValue) {
		
		$('#header-acces-abonnes form #identifiant').val(loginAutoValue);
		$('#header-acces-abonnes form #identifiant').addClass('wait');
	}	
	
	var passAutoValue = '0000000000';
	
	if($('#header-acces-abonnes form #password').val() == '' || $('#header-acces-abonnes form #password').val() == passAutoValue) {
		
		$('#header-acces-abonnes form #password').val(passAutoValue);
		$('#header-acces-abonnes form #password').addClass('wait');
	}	
	
	$('#header-acces-abonnes form #identifiant').focus(function(){
		
		if($(this).val() == loginAutoValue){
				
			$(this).val('');
			$(this).removeClass('wait');
		}	
	});
	
	$('#header-acces-abonnes form #password').focus(function(){
		
		if($(this).val() == passAutoValue){
			
			$(this).val('');
			$(this).removeClass('wait');
		}
	});	
		
}

function ongletActif()
{	
	if($('#onglet_actif').val() != '')
		$('.menu-bar li:eq(' + $('#onglet_actif').val() + ')').addClass('actif');
}

$(ongletActif);
$(loginFormValues);
$(pageHeightDesign);
$(datasTableOdd);