function checkFlash()
{
	var hasFlash = false;
	try {
	  var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
	  if(fo) hasFlash = true;
	}catch(e){
	  if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) hasFlash = true;
	}
	return hasFlash;
}
function displayFaq(param)
{
	var oldId=document.getElementById('temoin').value;
	if (oldId>0 && oldId!='')
	{
		$('#div_'+oldId).slideUp('show');	
		//$('#div2_'+oldId).attr('class','faq');	
		$('#div2_'+oldId).addClass("faq").removeClass("faq2");
	}
	$('#div_'+param).slideDown('show');
	$('#div2_'+param).addClass("faq2").removeClass("faq");
	document.getElementById('temoin').value=param;
}
function startJs()
{
	$("#hd1b ul:not(.sub_menu) li:not(.sel,.nohl)").mouseover(function(){
		$(this).stop().animate({backgroundPosition:"(0px 21px)"}, {duration:50});
	});
	$("#hd1b ul:not(.sub_menu) li:not(.sel,.nohl)").mouseout(function(){
		$(this).stop().animate({backgroundPosition:"(0px 33px)"}, {duration:250});
	});	
	$('#hd1r a').mouseover(function(){
		$(this).children('img').stop().animate({top:"0px"}, {duration:150});						
	});
	$('#hd1r a').mouseout(function(){
		$(this).children('img').stop().animate({top:"5px"}, {duration:150});						
	});
	if ($(".faq").length > 0)
	{
		$(".faq").hover(
		  function () {
			$(this).children('div').children('p').stop().animate({
			  opacity: 1,
			  right: '0px'
			},500);
		  },
		  function () {
			$(this).children('div').children('p').stop().animate({
			  opacity: 0,
			  right: '300px'
			},500);
		  }
		);
	}
	if ($("a.ImageGal").length > 0)
	{
		$("a.ImageGal").fancybox({
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'elastic',
			'overlayOpacity': 0.6, 
			'overlayColor': '#000', 
			'titlePosition' 	: 'over',
			'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">' +  (currentIndex + 1) + ' / ' + currentArray.length + ' - ' + title + '</span>';
			}
		});
	}
	if ($("#slider2").length > 0)
	{
		$('#slider2').bxSlider({'auto': true, 'autoDelay': 2500, 'pause': 4000, 'displaySlideQty': 1, 'speed': 500, 'controls': false});
	}
	if ($("#slider_produits").length > 0)
	{
		$('#slider_produits').bxSlider({'mode': 'vertical', 'auto': true, 'autoDelay': 3000, 'pause': 4000, 'displaySlideQty': 3, 'speed': 500, 'controls': false});
	}
	if ($("#slider_services").length > 0)
	{
		$('#slider_services').bxSlider({'mode': 'vertical', 'auto': true, 'autoDelay': 3500, 'pause': 4000, 'displaySlideQty': 3, 'speed': 500, 'controls': false});
	}
	if ($("#slider_clients").length > 0)
	{
		$('#slider_clients').bxSlider({'auto': true, 'autoDelay': 4000, 'pause': 4000, 'displaySlideQty': 1, 'speed': 500, 'controls': false});
	}
	
}
