function doFadeIn(param){
		$('#backgroundCover').css({'opacity': '0.5'}); 
		$('#backgroundCover').css({'width': $(document).width()});
		$('#backgroundCover').css({'height': $(document).height()});
		var divHeight = ($(window).height() - 360)/2;
		if (param=='welcome'){
			var divWidth = ($(window).width() - 480) / 2;
			$('#videoBox').css({'width':480});
		}else{
			var divWidth = ($(window).width() - 640) / 2;
		}
		$('#backgroundCover').fadeIn('normal');
		$('#videoBox').css({'position' : 'absolute'});
		$('#videoBox').css({'z-index' : 100});
		$('#videoBox').css({'top' : divHeight-100}); 
		$('#videoBox').css({'left' : divWidth});
//		$('#videoBox').css({'top' : 50}); 
//		$('#videoBox').css({'left' : 50});
		$('#videoBox').fadeIn('slow');
	}

function showWelcome(){
	$('#backgroundCover').css({'opacity': '0.5'}); 
	$('#backgroundCover').css({'width': $(document).width()});
	$('#backgroundCover').css({'height': $(document).height()});
	var divHeight = ($(window).height() - 360)/2;
	var divWidth = ($(window).width() - 480) / 2;
	$('#backgroundCover').fadeIn('normal');
	$('#welcomeBox').css({'position' : 'absolute'});
	$('#welcomeBox').css({'z-index' : 100});
	$('#welcomeBox').css({'top' : divHeight-100}); 
	$('#videoBox').css({'left' : divWidth});
//	$('#videoBox').css({'top' : 50}); 
//	$('#videoBox').css({'left' : 50});
	$('#welcomeBox').fadeIn('slow');
}

function doFadeOut(){
			$('#videoBox').fadeOut('fast'); 
			$('#welcomeBox').fadeOut('fast');
			$('#backgroundCover').fadeOut('slow');
			$('#videoBox').empty();
	}

function ShowVideo(id){
		doFadeIn();$('#videoBox').innerHTML='';
		var reqURL = "/cruise/home.nsf/aGetVideo?open&id=" + id;
		$('#videoBox').load(reqURL) ;
	}
