$(document).ready(function(){
	$('#s').val('Rechercher').focus(function(){
		if($(this).val()=='Rechercher') {
			$(this).val('');
		}
	}).focusout(function(){
		if($(this).val()=='') {
			$(this).val('Rechercher');
		}
	});
	$('#index-list li').mouseover(function(){
		$(this).siblings().stop(true,false).animate({'opacity':0.7});
	}).mouseout(function(){
		$(this).siblings().stop(true,false).animate({'opacity':1});
	});
	$("a[href^='http:']:not([href*='" + window.location.host + "'])").each(function() {               
        $(this).attr("target","_blank");
    });
	$('#quartier-left').mouseenter(function(){
		i=setInterval('scr(-10)',50);
	}).mouseleave(function(){
		clearInterval(i);
	});
	$('#quartier-right').mouseenter(function(){
		i=setInterval('scr(10)',50);
	}).mouseleave(function(){
		clearInterval(i);
	});
	$('.player').each(function(){
		var f= $(this).html();
		var swf=jsroottheme+'/swf/videoPlayerOver.swf';
		$(this).flash({
				swf: swf,
				width: 600,
				height: 400,
				flashvars: {
					videoURL:f,
					imageURL:'',
					autoPlay:'false',
					autoReplay:'false',
					autoLoad:'true',
				}
			}
		);
	});
});
var i;
function scr(dir){
	$('#quartier .container:first').scrollTo({top:0,left:'+='+dir+'px'},0);
}
