$(function(){

$j = jQuery.noConflict();

// Diapos

$j('#diapo').cycle('fade')
$j('#diapo2').cycle('fade')

// Recuperer lien sur li
$j("#page .grid960 #sidebar ul li").click(function(){
window.location=$j(this).find("a").attr("href");
return false;
});

// Scroll vers un endroit precis de la page
$j('a[href^=#]').click(function() {
cible=$j(this).attr('href');
if($j(cible).length>=1){
hauteur=$j(cible).offset().top;
}
else{
hauteur=$j("a[name="+cible.substr(1,cible.length-1)+"]").offset().top;
}
$j('html,body').animate({scrollTop: hauteur}, 1000);
return false;
});

// Vide les champs automatiquement
$j(".autoEmpty").each(function(){
var defaultText = $j(this).val();
$j(this).focus(function(){
if($j(this).val()==defaultText){
$j(this).val("");
}
});
$j(this).blur(function(){
if($j(this).val()==""){
$j(this).val(defaultText);
}
});
});

// Cacher form pro FR
$j("#pro").hide();
$j("#choix").change(function() {
if ( $j("#choix").val() == "Professionnel"){
$j("#pro").show("slow");
}
else{
$j("#pro").hide("slow");
}
});

// Cacher form pro ENG
$j("#pro").hide();
$j("#choix_eng").change(function() {
if ( $j("#choix_eng").val() == "Business"){
$j("#pro").show("slow");
}
else{
$j("#pro").hide("slow");
}
});


});  // end jquery code




