﻿// Paramétrage Jquery

jQuery().ready(function(){
	
	/* Hack pour ie6 */
	
	jQuery("#menu_pied ul li").hover(
			function(){ 
				$(this).addClass("hover");
			},
			function(){ 
				$(this).removeClass("hover");
			}
	);
	
	/* CAROUSEL HOME PAGE */
	
	/*jQuery("#carousel .jcarousel").jCarouselLite({
		btnNext: ".carousel_next",
		btnPrev: ".carousel_prev",
    	speed: 1000, 
		visible: 3
	});*/
	
	/* gestion du splash */
	
	jQuery(".close").click(
		function(){
			jQuery(".splash").fadeOut();
			return false;	
		}
	)
	
	/* Gestion des class du menu automatique */
	
	/*jQuery("#menu_haut div>ul>li").addClass('marron');
	jQuery("#menu_haut div>ul>li:nth-child(2)").removeClass('marron');
	jQuery("#menu_haut div>ul>li:nth-child(2)").addClass('rouge');
	jQuery("#menu_haut div>ul>li:nth-child(3)").removeClass('marron');
	jQuery("#menu_haut div>ul>li:nth-child(3)").addClass('vert');
	jQuery("#menu_haut div>ul>li:nth-child(4)").removeClass('marron');
	jQuery("#menu_haut div>ul>li:nth-child(4)").addClass('bleu');*/
	
	/* Gestion du carousel */
	
	$('#preFeature').siteFeature({
		containerWidth: '738px',				// sets the generated Container's width
		containerHeight: '378px',				// sets the generated Container's height
		imgWidth: '570px',						// sets the width of the ImageBox/TextBox section. When subtracted from the Container's width - yields the Tabs width.
		tabsLocation: 'right',
		tabLock: 6,
		tabBgImg: 'http://www.theatreagora.com/wp-content/themes/agora/_img/arrow-right.png',		// relative path for Image used as Highlighted Tab background (ie: the arrow)
		tabBgImgIE6: 'http://www.theatreagora.com/wp-content/themes/agora/_img/arrow-right.gif',
		txtBoxHorizontalHeight: '90px',		// sets the height of the Horizontal TextBox
		autoPlay: true,						// determines if the tabs cycle automatically
		autoPlayInterval: 5000,					// sets the autoPlay interval
		pauseOnHover: true,						// pause the autoPlay when hovering on siteFeature
		imgBgsAnimationDuration: 800,			// sets the duration for ImageBackground In animations (in milliseconds)
		imgBgsAnimationList: ['fade']
	});
	
});
