var $j = jQuery.noConflict();
var playerConfig = { 
	controlBarBackgroundColor: '0xcccccc', 
	initialScale:'orig', 
	showMenu:true, 
	showVolumeSlider:true, 
	showMuteVolumeButton:true, 
	showFullScreenButton:true, 
	controlBarGloss:'high',
	loop:false

} 


$j('document').ready(
	function() {
		
		var flowplayer = null;
		
				
				$j('a.movie_splash').click(
					function() {
						
						playerConfig.videoFile = $j(this).attr('rel');
						
						if (flowplayer == null) { 
							flowplayer = flashembed(
								'Video',
								{
									src: 'mysite/flash/flowplayer/FlowPlayerLight.swf',
									bgcolor: '#6F7485'
								},
								{
									config: playerConfig

								} 
							);
						}
						else {     
							flowplayer.setConfig(playerConfig);  
						} 
						
						return false;
					}
				);

			//}
		//);
		
	}
);
