jQuery(function(){
			
		flowplayer("player", "player/flowplayer-3.2.2.swf",{
		    
		
			clip:{
				
				provider: 'rtmp',
				
				scaling: 'fit',
				autoBuffering: true,
				autoStart: true,
				onBegin: function(clip){
					
					jQuery('#titlebox').html('... Buffering : Please Wait');
					jQuery('.clipItem').removeClass('clipCurrent');
					jQuery('#item'+clip.id).addClass('clipCurrent');
					
				},
				onStart: function(clip){
					var titlebox = jQuery('#titlebox');
					var hdbox = jQuery('#hdlink');
					titlebox.html('Playing: <strong><em>'+clip.title+'</em></strong>');
					hdbox.attr('href',clip.linkUrl);
					
				}
			},
		 
			screen:	{
				bottom: 0	// make the video take all the height
			},
		
			// change the default controlbar to modern
			plugins: {
				
				rtmp: {
					url: 'flowplayer.rtmp-3.2.1.swf',
					netConnectionUrl: 'rtmp://stream.moviebattles.com/vod'
					
				},
				
				controls: {
					url: 'flowplayer.controls-3.2.1.swf',
					playlist: true,
					backgroundColor: "transparent",
					backgroundGradient: "none",
					sliderColor: '#999999',
					sliderBorder: '1.5px solid rgba(180,160,100,0.5)',
					volumeSliderColor: '#999999F',
					volumeBorder: '1.5px solid rgba(160,160,160,0.5)',
		
					timeColor: '#aaaaaa',
					durationColor: '#535353',
		
					tooltipColor: 'rgba(230, 230, 150, 0.5)',
					tooltipTextColor: '#000000'
				},
				viral: {
					// load the viral videos plugin
					url: 'flowplayer.viralvideos-3.2.1.swf',
					
					// define a video title used in sharing
					share: {
						description: 'MovieBattles II Official Video Promo',
						livespaces: false,
						bebo: false
					}
				},
				gatracker: {
					url: "flowplayer.analytics-3.2.0.swf",
					labels: {
						start: "Start",	
						play: "Play",	
						pause: "Pause",	
						resume: "Resume",	
						seek: "Seek",	
						stop: "Stop",	
						finish: "Finish",	
						mute: "Mute",	
						unmute: "Unmute",	
						fullscreen: "Full Screen",	
						fullscreenexit: "Full Screen Exit"	
					},
				
					trackingMode: "AS3",
					googleId: "UA-17008329-1"
				}
			},
			canvas: {
				backgroundGradient: 'none'
			}
			

			
			
			

		});
		flowplayer("player").playlist("div.scrollableArea", {loop:true});
		
		
		jQuery('#scrollable').smoothDivScroll({autoScroll: "",autoScrollDirection: "endlessloop",autoScrollSpeed: 1,visibleHotSpots: "always",scrollingSpeed:10,hotSpotsVisibleTime:2});
		
		jQuery('#scrollable2').smoothDivScroll({autoScroll: "",autoScrollDirection: "endlessloop",autoScrollSpeed: 1,visibleHotSpots: "always",scrollingSpeed:10,hotSpotsVisibleTime:2});
		/*jQuery('#scrollable3').smoothDivScroll({autoScroll: "",autoScrollDirection: "endlessloop",autoScrollSpeed: 1,visibleHotSpots: "always",scrollingSpeed:3,hotSpotsVisibleTime:2});*/
 });
