
		// PAVE COULEUR
		$(document).ready(function(){
			
            $('.pave').fadeTo(0,0).EffectChain({order:"random",effect:"fadeTo",fadeToOpacity:1});
        });
       
       // PANEL SLIDER
       jQuery(window).bind("load", function() {
			jQuery("div#slider1").codaSlider()
			
			//call every __ seconds  
      var autoSlide = setTimeout(function()  
      		{  
        $(".menu0").click();  
        	}, 3000);
		
		});

      
       // FLOWPLAYER
       $(document).ready(function() {
			        
			// setup playlist
			$("div.items").playlist(
			
				// flash configuration (required) 
				{src:"js/flowplayer/FlowPlayerDark.swf"},
			
				// flowplayer configuration (optional)
				{initialScale:'scale', hideControls:'true', autoPlay:'false'},
			 
				// playlist configuration (optional) 
				{loop:'false', autoPlay:'false'}
			 		
			 		);
						
			// setup scrolling				
			$("div.playlist").scrollable({size:4, items:'.items',vertical:true});	
		});

		// PRETTYPHOTOS
		$(document).ready(function(){
			$("a[rel^='prettyOverlay'],a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed: 'normal', /* fast/slow/normal */
				padding: 0, /* padding for each side of the picture */
				opacity: 1, /* Value betwee 0 and 1 */
				showTitle: false, /* true/false */
				allowresize: true, /* true/false */
				counter_separator_label: '/' /* The separator for the gallery counter 1 "of" 2 */
				});
		});


		// CONTACT FORM
		$(document).ready(function() { 
			var options = { 
				target:        '#alert'
				}; 
		$('#contactForm').ajaxForm(options); 
				}); 

		$.fn.clearForm = function() {
  			return this.each(function() {
			var type = this.type, tag = this.tagName.toLowerCase();
			if (tag == 'form')
			  return $(':input',this).clearForm();
			if (type == 'text' || type == 'password' || tag == 'textarea')
			  this.value = '';
			else if (type == 'checkbox' || type == 'radio')
			  this.checked = false;
			else if (tag == 'select')
			  this.selectedIndex = -1;
 			 });
		};
		
		// DEBUT DU SCRIPT de REDIRECTION si I.E. 5 à 6 
		if(navigator.userAgent.indexOf("MSIE 5.0") != -1)
			{
 		window.location = "http://www.ba-badesign.fr/mettre-a-jour.html";
			}
		else if(navigator.userAgent.indexOf("MSIE 5.5") != -1)
			{
		window.location = "http://www.ba-badesign.fr/mettre-a-jour.html";
		}
		else if(navigator.userAgent.indexOf("MSIE 6") != -1)
		{
		window.location = "http://www.ba-badesign.fr/mettre-a-jour.html";
		}
		else
		{
		 "";
		}


