function cherche_navigateur_simple() {
	// on cr�e la variable qui accueillera le message relatif au navigateur
	var navigateur = "";
	// Attention, l'ordre de recherche est important !! Parce que IE reprend la mention 'Mozilla' et Opera reprend la mention 'MSIE' !!
	// on teste si on trouve la mention 'Opera...' dans le nom du navigateur
	if ( navigator.userAgent.indexOf('Opera 5') != -1 ) { navigateur = 'inc'; }
	// on teste si on trouve la mention 'MSIE' dans le nom du navigateur
	else if ( navigator.userAgent.indexOf('MSIE 6.0') == 25 ) { navigateur = 'mie'; }
	else if ( navigator.userAgent.indexOf('Mozilla') != -1 ) { navigateur = 'net'; }
	// si rien n'a �t� reconnu...
	else { navigateur = 'inc'; }
	// on affecte la variable 'navigateur' au formulaire
	return navigateur;
}

function showlistone() {
	$('.list:eq(0)').show('blind',1500);
}

// JavaScript Document
$(document).ready(function() {

	//alert("ss");
	$("a[rel$='external']").attr('target','_blank');
	$("a[href$='#']").attr('href','javascript:void(0);');

	$("img[src$='.png']").ifixpng();
	
	//$('.cycle').cycle();
	
	if(cherche_navigateur_simple()=='mie') {
		$(".full").fullsize({shadow: false});
	}else{
		$(".full").fullsize();
	}
	
	$('.hideshow:first a.link').css('background','url(medias/core/imgs/puce-moins.gif) no-repeat left center');
	$('.hideshow:first .hsdata').animate({height:$('.hsheight',this).height()+10},1000);
	$('.hideshow a.link').click(function() {
		if($(this).next('.hsdata').css('height')=='0px') {
			var hsh = $(this).next('.hsdata:hidden').children('.hsheight').height();
			$('.hideshow a.link').not($(this)).css('background','url(medias/core/imgs/puce-plus.gif) no-repeat left center').next('.hsdata:visible').animate({height:'0px'},500);
			$(this).css('background','url(medias/core/imgs/puce-moins.gif) no-repeat left center').next('.hsdata:hidden').animate({height:hsh+10},1000);
		}
	});
	
	$('.swf').each(function(){
		swfobject.embedSWF($(this).metadata().url,$('div',this).attr('id'),$(this).metadata().width,$(this).metadata().height,"9.0.0",false,false,{wmode:"transparent"},false);
	});
	
	$("#newsBlocs").cycle({
		fx:'scrollHorz',
		timeout:0,
		next:'#next', 
		prev:'#prev'
	});
	
	$("#ticker").jStockTicker({interval:45});
	
	/*$('.data-bloc .next').each(function() {
		$(this).prev().append($(this));
	});*/
	
	//setTimeout('showlistone()',1500);
	
	$('#listes .alist').click(function() {
		$('.list:visible').hide('blind',{queue:"listes"},1000);
		$('#'+$(this).attr('rel')).show('blind',{queue:"listes"},1000);
	});
	
	$("[title]").mbTooltip({
		wait:200, //before show
		ancor:"mouse", //"parent"
		fade:100
	});
	
});