$(document).ready(function() 
{
	// Set up Sliders
	// **************
	delay	= 4000;
	$(function(){
	
		$('.publicite').anythingSlider({
			theme           : 'metallic'
			,easing          : 'swing'
			,autoPlay		: true
			,delay			: delay
			,hashTags		: false
			,onSlideComplete : function(slider){
				/*if(slider.pages == slider.currentPage)
				{
					$('.publicite').data('AnythingSlider').startStop(false);
					setTimeout(function()
					{
						$('.publicite').anythingSlider(1);
						$('.publicite').data('AnythingSlider').startStop(true);
					},delay)
				}*/
			}
		});//$('#slider1').anythingSlider
		
		
		$('#i0').click(function(){
			document.location.href = $(this).find('a').attr('href');
		})
		
		$('#i2').click(function(){
			document.location.href = $(this).find('a').attr('href');
		})
		
		
		

		//Analytics
		$('#accueil #vous-avez-un-projet-en-tete').click(function()
			{
				_gaq.push(['_trackEvent', 'Accueil > RDV[1-projet-en-tete]', 'clicked'])
			}
		);
		$('#accueil #collaborez-avec-une-agence-web-de-montreal').click(function()
			{
				_gaq.push(['_trackEvent', 'Accueil > Agence Web[2-collaborer]', 'clicked'])
			}
		);
		$('#accueil #propulsez-votre-entreprise-dans-les-nuages').click(function()
			{
				_gaq.push(['_trackEvent', 'Accueil > Site Web[3-propulsez votre entreprise]', 'clicked'])
			}
		);
		

	});//$(function(){
});

