/**
 * Utilisé en home
 */

$(document).ready(function(){
	$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 0, false);
	$("#featured > ul").tabs( "rotate" , 4500, true)
/*
	$('#mycarousel').jcarousel({
        start: 0,
		scroll: 1,
		visible: 2,
		auto: 3,
		wrap:"circular"
    });
	*/
	
});



// fonctions de la map home
function mapIdfHover(state)
{
	if(state == true)
	{
		src = $('#img_map_france').attr('src');
		
		if($('#map_home').is(':visible'))
		{
			if(src == "/library/themes/default/images/map/map_fr.jpg")
				$('#img_map_france').attr('src', '/library/themes/default/images/map/map_fr_over.jpg');
		}
		else
		{
			if(src == "/library/themes/default/images/map/map_fr_big.jpg")
				$('#img_map_france').attr('src', '/library/themes/default/images/map/map_fr_over_big.jpg');
		}
		
	}
	else
	{
		if($('#map_home').is(':visible'))
			$('#img_map_france').attr('src', '/library/themes/default/images/map/map_fr.jpg');
		else
			$('#img_map_france').attr('src', '/library/themes/default/images/map/map_fr_big.jpg');
	}

}


function mapIdf(state)
{
	if(state == true)
	{
		$("#map_france").fadeOut('slow', function(){
			
			$("#map_idf").fadeIn('slow');
			
		});
	}
	else
	{
		$("#map_idf").fadeOut('slow', function(){
			
			$("#map_france").fadeIn('slow');
			
		});
	}
	
}
