$(document).ready( function () {
// Start Init





// Animations
//$('#content').css({'overflow':'hidden'});
//$('.item01 #menu').css({opacity: "0.1", left:"-1500px"});
//$('.item01 #menu').stop().animate({opacity: "1", left: "0"},1500);
//
//
//$(function(){
//	$(".item01 #colLeft").css({ top: "-800px"});
//	$(".item01 #colLeft").animate({ top: "0"}, 1200)
//});
//


// External Link
function open_ext_link()
{
	var liens = document.getElementsByTagName('a');
	for (var i = 0 ; i < liens.length ; ++i)  {
		if (liens[i].className == 'extLink')  {
			liens[i].title = 'S\'ouvre dans une nouvelle fenêtre';
			// Au clique de la souris.
			liens[i].onclick = function()  {
				window.open(this.href);
				return false; 
			};
		}
	}
}
window.onload = open_ext_link;


// Opacity Fade
$(function() {
$(".gallery img").css("opacity","0.3");

//on hover
$(".gallery img").hover(function () {
$(this).stop().animate({
opacity: 1.0
}, "slow");
},

// On mouse out
function () {
$(this).stop().animate({
opacity: 0.3
}, "slow");
});
});


// langList Opacity Fade
$(function() {
$("#langList a").css("opacity","0.3");

//on hover
$("#langList a").hover(function () {
$(this).stop().animate({
opacity: 1.0
}, "slow");
},

// On mouse out
function () {
$(this).stop().animate({
opacity: 0.3
}, "slow");
});

$("#langList .langActive a").css("opacity","1");
});


// ShadowBox

Shadowbox.init({
    displayCounter: false,
	modal: false,
	fadeDuration: 0.2,
	overlayColor: "#000000"
});


//Scrollbar
$('#scrollbar1').tinyscrollbar();


// MiniTabs
// Initialize.
function init_tabs() {

    // Does element exist?
    if (!$('ul.subMenuTab').length) {
        // If not, exit.
        return;
    }

    // Reveal initial content area(s).
    $('div#content').each(function() {
		$(".contentTab").hide(); //Hide all content
    });





    // Listen for click on tabs.
    $('ul.subMenuTab a').click(function() {

        // If not current tab.
        if (!$(this).hasClass('current')) {

        // Change the current indicator.
        $(this).addClass('current').parent('li').siblings('li').find('a.current').removeClass('current'),

        // Show target, hide others.
            $($(this).attr('href')).fadeIn(1000).siblings('div.contentTab').hide();
        }

        // Nofollow.
        this.blur();
        return false;
    });
}
init_tabs();




// End Init
});

