////  INIT LIBS  ////////////////////////////////////////////////////////////
jQuery(document).ready(function(){

$("#slideshow").slideshow();
$("a[rel=gallery]").fancybox({
	'transitionIn'		: 'none',
	'transitionOut'		: 'none',
	'titlePosition' 	: 'over'
});

$("#tabs a").click(function(e){
	var cl = $(this).attr("rel");
	$("#tabs a").removeClass("selected");
	$(this).addClass("selected")
	$(".ro, .fr, .en").hide()
	$("." + cl).show();
	e.preventDefault();
})
 
if(typeof makePlayer == 'function') { 
  	makePlayer(); 
}

});
	
if(typeof makePlayer == 'function') { 
	soundManager.flashVersion = 9;
	soundManager.useHighPerformance = true; // keep flash on screen, boost performance
	soundManager.wmode = 'transparent'; // transparent SWF, if possible
	soundManager.useFastPolling = true; // increased JS callback frequency
	soundManager.url = '/swf';
	// custom page player configuration

	var PP_CONFIG = {
	  autoStart: false,      // begin playing first sound when page loads
	  playNext: false,        // stop after one sound, or play through list until end
	  useThrottling: false,  // try to rate-limit potentially-expensive calls (eg. dragging position around)</span>
	  usePeakData: false,     // [Flash 9 only] whether or not to show peak data (left/right channel values) - nor noticable on CPU
	  useWaveformData: false,// [Flash 9 only] show raw waveform data - WARNING: LIKELY VERY CPU-HEAVY
	  useEQData: false,      // [Flash 9 only] show EQ (frequency spectrum) data
	  useFavIcon: false,     // try to apply peakData to address bar (Firefox + Opera) - performance note: appears to make Firefox 3 do some temporary, heavy disk access/swapping/garbage collection at first(?) - may be too heavy on CPU
	  useMovieStar: false     // Flash 9.0r115+ only: Support for a subset of MPEG4 formats.
	}
  }
