function toggleHead(n){
    for(i=1; i<=3; i++)
    {       
        if(i==n){document.getElementById("lft"+i).style.display = "block";
		document.getElementById("lfta"+i).className = "hghead_act";
		}
        else{document.getElementById("lft"+i).style.display = "none";
		document.getElementById("lfta"+i).className = "";
		}
    }
}

function toggleHeadrt(n){
    for(i=1; i<=3; i++)
    {       
        if(i==n){document.getElementById("rt"+i).style.display = "block";
		document.getElementById("rta"+i).className = "hghead_acti";}
        else{document.getElementById("rt"+i).style.display = "none";
		document.getElementById("rta"+i).className = "";}
    }
}

function ZoomImage(){
//Zoomimage
		$('a.zoomimagelnk').zoomimage({
				controlsTrigger: 'mouseover',
				className: 'custom',
				shadow: 10,
				border: 20,
				centered: true,
				controls: false,
				opacity: 1,
				beforeZoomIn: function(boxID) {
			$('#' + boxID)
				.find('img')
				.css('opacity', 0)
				.animate(
					{'opacity':1},
					{ duration: 500, queue: false }
						);
			},
			beforeZoomOut: function(boxID) {
				$('#' + boxID)
					.find('img')
					.css('opacity', 1)
					.animate(
						{'opacity':0},
						{ duration: 500, queue: false }
					);
			}	
		});	   
		// END Zoomimage
}

$(window).load(function() {
     //$('.loader').fadeOut('slow', function() { $(this).remove(); });
	 //$("#mcs_container").mCustomScrollbar("vertical",320,"easeOutCirc",1.05,"auto","yes","yes",10);
	 //$("a.envoi").bind('click',function(){$("#mcs_container").mCustomScrollbar("vertical",320,"easeOutCirc",1.05,"auto","yes","yes",10);});
	 $("#columnspageleft").mCustomScrollbar("vertical",320,"easeOutCirc",1.05,"auto","yes","yes",10);
});
$(document).ready(function() { 
ZoomImage();
$('iframe').attr('allowTransparency', 'true');
$('a.external').click(function(){this.target = '_blank';});
//cycle & zoom ;
$('#flash').cycle({fx:'fade',speed:900,timeout:0,sync:2,next:'#next_btn',prev:'#prev_btn'});
$(".line_image a").append("<span></span>");
if ($.browser.msie && $.browser.version < 9) {
$(".line_image a").hover(function(){$(this).children("span").show();},function(){$(this).children("span").hide();});
} else { 
$(".line_image a").hover(function(){$(this).children("span").fadeIn(500);},function(){$(this).children("span").fadeOut(500);});
}



}); 
