
function openYouTube(youTubeUrl){
	// create a flash object with the passed-in flash movie
	var fo = new FlashObject(youTubeUrl, "flashobject", "746", "413", "6.0.29");
	fo.addParam("quality", "high");
	fo.addParam("play", "true");
	fo.addParam("wmode", "transparent");
	fo.write("beboYouTubeVideo");

	$('#beboYouTubeGallery').modal(
		{
			containerCss:{
				width			: '786px',
				height			: '480px',
				left			: '50%',
				top				: '50%',
				marginLeft		: '-394px',
				marginTop		: '-241px',
				backgroundColor	: '#000',
				overflow		: 'hidden',
				borderWidth		: '1px',
				borderColor		: '#333',
				borderStyle		: 'solid'
			},
			overlayCss:{
				backgroundColor	: '#000',
				cursor			: 'wait',
				overflow		: 'hidden'
			},
			overlay		: 70,
			close		: false,
			persist		: true,
			onOpen:function (dialog){
				dialog.overlay.fadeIn(
					'slow',
					function () {
						dialog.container.slideDown(
							'slow',
							function () {
								dialog.data.show(); 
								$(".beboYouTubeGallery").show();
								
							}
						);
					}
				);
			}
		}
	);	
	return false;		
}

function closeYoutube(){
	$.modal.close();
	return false;
}


