var WEBROOT = 'http://www.uranium.ws/';


$(document).ready(function(){


	// NAVIGATION
	$('#navigation').flash(
        { src: WEBROOT +'includes/images/navigation.swf', width: 966, height: 25 },
        { version: 9 },
        function(htmlOptions) {
            $this = $(this);
            htmlOptions.flashvars.langue = $this.attr('langue');
            htmlOptions.flashvars.traduction = $this.attr('traduction');
			htmlOptions.flashvars.alignement = $this.attr('alignement');
            htmlOptions.wmode = 'transparent';
            this.innerHTML = '';
			 $(this).addClass('navigation').prepend($.fn.flash.transform(htmlOptions));
		   return false;
        }
    );
	
	
	// CONTENU
	$('#slideshow').flash(
        { src: WEBROOT +'includes/images/slideshow.swf', width: 966, height: 250 },
        { version: 9 },
        function(htmlOptions) {
            $this = $(this);
            htmlOptions.wmode = 'transparent';
            this.innerHTML = '';
			 $(this).addClass('slideshow').prepend($.fn.flash.transform(htmlOptions));
		   return false;
        }
    );


	// GALERIE
	$('#galerie').flash(
        { src: WEBROOT +'includes/images/galerie.swf', width: 866, height: 600 },
        { version: 9 },
        function(htmlOptions) {
            $this = $(this);
            htmlOptions.flashvars.seasonName = $this.attr('seasonName');
            htmlOptions.flashvars.collectionName = $this.attr('collectionName');
            htmlOptions.wmode = 'transparent';
            this.innerHTML = '';
			 $(this).addClass('galerie').prepend($.fn.flash.transform(htmlOptions));
		   return false;
        }
    );


	// PNGFIX IE
	$('img[@src$=.png]').ifixpng();
	
});