$(document).ready(function() {
	
	//$(document).pngFix(); 
	
	//$("a.images-set").fancybox();
	/*$("a.iframe").fancybox({
		//'titleShow': false,
		'hideOnContentClick': false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'
	});*/
	
	$(".play").click(function() {
		$.fancybox({
				'padding'		: 0,
				'autoScale'		: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'title'			: this.title,
				'width'			: 350,
				'height'		: 300,
				'href'			: this.href,
				'type'			: 'iframe'
			});
	
		return false;
	});
	
	$(".swf").click(function() {
		$.fancybox({
				'padding'		: 0,
				'autoScale'		: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'title'			: this.title,
				'width'			: 640,
				'height'		: 480,
				'href'			: this.href,
				'type'			: 'swf'
			});
	
		return false;
	});
	
	$f(".audio", "/images/flowplayer-3.1.5.swf", { 
 
	    // fullscreen button not needed here 
	    plugins: { 
	        controls: { 
	            fullscreen: false, 
	            time:false, 
	            mute:false,
	            volume:false,
	            //backgroundColor: 'transparent',  
	            backgroundColor: '#ffffff',  
	            bufferColor:'#00659F',
	            buttonColor:'#1895DA',
	            buttonOverColor:'#00659F',
	            progressColor:'#1895DA',
	            sliderColor:'#1895DA',
            	volumeSliderColor:'#1895DA',
            	timeBgColor:'#1895DA',
            	tooltipColor: '#1895DA', 
            	tooltipTextColor: '#ffffff',  
            	//scrubberBorderRadius: 0,
            	scrubberHeightRatio: 0.2,
            	//scrubberBarHeightRatio: 0, 
            	volumeSliderHeightRatio: 0.2,
	            height: 18 
	        }
	    }, 
	     canvas:  { 
	     	background: 'transparent',  	
		    //background: '#ffffff', 
		    backgroundGradient: 'none'
		},
	    clip: { autoPlay: false } 
	});
 
	
	
	$f(".video", "/images/flowplayer-3.1.5.swf", { 
	    plugins: { 
	        controls: { 
	            backgroundColor: '#ffffff',  
	            bufferColor:'#00659F',
	            buttonColor:'#1895DA',
	            buttonOverColor:'#00659F',
	            progressColor:'#1895DA',
	            sliderColor:'#1895DA',
            	volumeSliderColor:'#1895DA',
            	timeBgColor:'#1895DA',
            	tooltipColor: '#1895DA', 
            	tooltipTextColor: '#ffffff',  
            	scrubberHeightRatio: 0.3,
            	volumeSliderHeightRatio: 0.3
	        }
	        
	    }, 
	     canvas:  { 
		    background: '#ffffff', 
		    backgroundGradient: 'none'
		},
	    clip: { autoPlay: true } 
	});
	
	$(".track-list").click(function(){	
		$(this).find("ul").slideToggle();
  		$(this).toggleClass("track-show");
		return false;
	});
	
	
	
});
