function openCarousel(htmlUrl){
	Shadowbox.open({
		content: htmlUrl,
		player: "iframe",
		height: 466,
		width: 834,
               
		options: {modal:false, handleOversize:"none"}
	});
	
	return false;
}

function openHomeCarousel(){
        Effect.ScrollTo('content', {duration:'0.4', 
        			    afterFinish : function() {
					startVideo();
			}
	});
	if($('home-content')){
		$('home-content').morph('height:568px;');
	}
}

function startVideo(){
 	if($("flashContent"))$("flashContent").hide();
        if($("pay-off"))$("pay-off").hide();
        if($("hb"))$("hb").hide();
	Effect.Appear("videoCont"); 
        jwplayer().play();
	return false;
}

function ajaxRequest(goBackUrl,remoteUrl) {
    new Ajax.Request(remoteUrl, {
        method: 'get',
	onSuccess: function() {
		location.href = goBackUrl;
	}
    });
}

