$(document).ready(function(){

	// Remplacement des H2 FR
    $('h2.francais').flash(
        { 
            src: "/image/Hector.swf", 
            flashvars: { 
                css: [
                    '* { color: #ff8c2b; font-size: 22pt; text-transform: uppercase; }'
                ].join(' ')
            }
        },
        { version: 7 },
        function(htmlOptions) {
            htmlOptions.flashvars.txt = this.innerHTML;
            this.innerHTML = '<div>'+this.innerHTML+'</div>';
            var $alt = $(this.firstChild);
            htmlOptions.height = $alt.height();
            htmlOptions.width = $alt.width();
			htmlOptions.wmode = 'transparent';
            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
	
	// Remplacement des H2 EN
    $('h2.english').flash(
        { 
            src: "/image/Hector.swf", 
            flashvars: { 
                css: [
                    '* { color: #c7161f; font-size: 22pt; text-transform: uppercase; }'
                ].join(' ')
            }
        },
        { version: 7 },
        function(htmlOptions) {
            htmlOptions.flashvars.txt = this.innerHTML;
            this.innerHTML = '<div>'+this.innerHTML+'</div>';
            var $alt = $(this.firstChild);
            htmlOptions.height = $alt.height();
            htmlOptions.width = $alt.width();
			htmlOptions.wmode = 'transparent';
            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
	


	
	$('#english').flash(
        { src: '/image/contact_en.swf', width: 175, height: 20 },
        { version: 9 },
        function(htmlOptions) {
            $this = $(this);
            htmlOptions.flashvars.adresse = $this.attr('adresse');
            htmlOptions.wmode = 'transparent';
            this.innerHTML = '';
			 $(this).addClass('contact').prepend($.fn.flash.transform(htmlOptions));
		   return false;
        }
    );	
	
	$('#francais').flash(
        { src: '/image/contact.swf', width: 175, height: 20 },
        { version: 9 },
        function(htmlOptions) {
            $this = $(this);
            htmlOptions.flashvars.adresse = $this.attr('adresse');
            htmlOptions.wmode = 'transparent';
            this.innerHTML = '';
			 $(this).addClass('contact').prepend($.fn.flash.transform(htmlOptions));
		   return false;
        }
    );	
	

});