$(document).ready(function(){ 
	$(document).pngFix();
	$('.carouselAuto').jcarousel({
			visible: 1,
			scroll: 1,
			auto: 3,
			wrap: 'last'
	});
	$('.carousel').jcarousel({
			visible: 1,
			scroll: 1,
			auto: 5,
			wrap: 'last'
	});
	$("ul.sf-menu").superfish({ 
		pathClass:  'actif',
		animation:   {opacity:'show'},
		speed: 'normal',
		autoArrows:    false,
		dropShadows:   false,
		delay: 200
	});
	// Caroussel
	$('.anythingFader').anythingFader({
		autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
		delay: 5000,                    // How long between slide transitions in AutoPlay mode
		startStopped: false,            // If autoPlay is on, this can force it to start stopped
		animationTime: 500,             // How long the slide transition takes
		hashTags: false,                 // Should links change the hashtag in the URL?
		buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
		pauseOnHover: true,
		startText: "",
		stopText: ""
	});
});


writeFlash_fr = function(id) {
  switch(id){
    case 'flash_magnet':
       document.getElementById(id).innerHTML = "<object type='application/x-shockwave-flash' data='themes/funnydoors/img/magnet-deco_fr.swf' width='668' height='360'><param name='movie' value='themes/funnydoors/img/magnet-deco_fr.swf' /></object>"; break;
  }}

writeFlash_en = function(id) {
  switch(id){  
    case 'flash_magnet':
       document.getElementById(id).innerHTML = "<object type='application/x-shockwave-flash' data='themes/funnydoors/img/magnet-deco_en.swf' width='668' height='360'><param name='movie' value='themes/funnydoors/img/magnet-deco_en.swf' /></object>";
       break;
  }}
