// JavaScript Document
$(document).ready(function(){$('#main_container').corner("bl br 10px");$("#slide-ul").load('bloc-promo.php');function callMeOften(){$.ajax({method:'get',url:'bloc-promo.php?var='+(new Date()).getTime(),dataType:'text',success:function(text){$("#slide-ul").fadeOut('fast').html(text).fadeIn('fast');}});}
setInterval(callMeOften,10000);$(function(){$("#slide-actus").jCarouselLite({vertical:true,circular:true,speed:1500,auto:8000,visible:6,scroll:3});$("#slide-jobs").jCarouselLite({vertical:true,circular:true,speed:1500,auto:8000,visible:2,scroll:1});$("#slide-annonces").jCarouselLite({vertical:true,circular:true,speed:1500,auto:8000,visible:3,scroll:3});});$("#contact_client input[type=text],#contact_client textarea").each(function(){if($(this).val()!=''){$(this).css('background-image','none');}});$("#contact_client input[type=text],#contact_client textarea").focus(function(){if($(this).val()==''){$(this).css('background-image','none');}});$("#contact_client input[type=text],#contact_client textarea").blur(function(){if($(this).val()==''){$(this).css('background-image','url(images/sprites-forms.png)');}});if($("#input_recherche").val()==''){$("#input_recherche").val($("#input_recherche").attr('placeholder'));}
if($("#captcha").val()==''){$("#captcha").val($("#captcha").attr('placeholder'));}
$("#input_recherche,#form_annoncer input,#form_annoncer textarea").blur(function(){if($(this).val()==''){$(this).val($(this).attr('placeholder'));}});$("#input_recherche,#form_annoncer input,#form_annoncer textarea").focus(function(){if($(this).val()==$(this).attr('placeholder')){$(this).val('');}});$('#weather').hover(function(){$('#weather-details').show();},function(){$('#weather-details').hide();});$('.yui-gb:first').css('border','none');$(".bloc_resultat").each(function(){$(this).wrap("<a href='#' class='lien_bloc'></a>");});$("a.lien_bloc").each(function(){var lien=$(this).find("a.btn_details").attr('href');$(this).attr('href',lien);});$("a.lien_bloc").each(function(){var lien=$(this).find("a.lien_annonce").attr('href');$(this).attr('href',lien);});$(".bloc_resultat").hover(function(){$(this).addClass('odd');},function(){$(this).removeClass('odd');});});var tabb=new Array("http://www.les3frontieres.net/webcam/cam_1.jpg","http://www.les3frontieres.net/webcam/cam_2.jpg");var indiceb=0;function nouvelleImage(){++indiceb;if(indiceb==tabb.length)indiceb=0;document.images['img_webcam'].src=tabb[indiceb];}setInterval("nouvelleImage();",5000);
