pudl_AddEventListener(window,'load',function(){
	$('div.items span').autoEllipsis();
	$('div.scrollable').scrollable({circular:true});
	$f('flow_player',{
			src:'/flowplayer/flowplayer.swf',
			wmode:'transparent',
			onFail:function(){
				if(this.getContainer().nextSibling){
					this.getContainer().nextSibling.style.display='';
					this.getContainer().parentNode.removeChild(this.getContainer());
				}
			}
	},{
			screen:{
				bottom:40
			},
			clip:{
				baseUrl:'/files/isl-groop/video-tutorial/',
				url:'ISL_Groop_0_Introduction.f4v',
				scaling:'fit',
				onStart: function(){
					this.getPlugin('captions').loadCaptions(0,this.getClip().completeUrl.replace(/f4v$/,'srt.php'),'srt');
				}
			},
			play:{
				replayLabel:''
			},
			plugins:{
				controls: {
					url: '/flowplayer/flowplayer.controls.swf',
					bottom:0,
					opacity:1.0,
					backgroundColor:'#067CC4',
					all:true,
					play:true,
					scrubber:true
				},
				content: {
					url:'/flowplayer/flowplayer.content.swf',
					bottom: 25,
					width: '100%',
					height:56,
					borderRadius: 0,
					border: 0,
					backgroundColor: '#000000',
					backgroundGradient: 'none',
					opacity: 1,
					style: {
						'body':{
							textAlign:'center',
							fontSize:'20px'
						}
					}
				},
				captions: {
					url:'/flowplayer/flowplayer.captions.swf',
					captionTarget:'content'
				}
			}
	}).playlist($('div#flow_scrollable div.items'),{playingClass:'active',loop:true});
});

