

login_email_prompt = "EMAIL ADDRESS";
login_password_prompt = "****";

function toggle_coming_soon_text() {
	if ($("#coming_soon_rollover_text").width() == 0) {
		$("#coming_soon_rollover_text").animate( {width:"280px"}, 2000 );
	} else {
		$("#coming_soon_rollover_text").animate( {width:"0px"}, 2000 );
	}

}


function load_player(clipURL) {
	
	$('#video_marquee').attr('src','./images/video_background.jpg');
	$('#video_container').show();
	$('#video_navigation').show();
	
	setMedia(clipURL)

}

function setMedia(clipURL) {
	document.au_player.SetVariable('mediaPlayer.contentPath',clipURL);
}

function show_embed_tag(clip_string) {
	$('#video_navigation').hide();
	$('#video_navigation_share').show();
	$('#embed_tag').fadeIn('slow');
	clip_string = build_object_tag();
	$('#embed_tag_text').attr('value',clip_string);

}

function hide_embed_tag() {
	$('#video_navigation_share').hide();
	$('#video_navigation').show();
}

function build_object_tag() {
	
	tag = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="388" height="340" id="au_embed" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="' + flash_path + 'au_embed.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ecd5b3" />';
	tag += '<param name="FlashVars" value="video_path=' + current_clip + '"/>';
	tag += '<embed src="' + flash_path + 'au_embed.swf" FlashVars="video_path=' + current_clip + '" quality="high" bgcolor="#ecd5b3" width="388" height="340" name="au_embed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	tag += '</object>';
	
	return tag;
	
}

function endClip() {
	// fired at the end of a movie clip
}

// not used with ajax
function show_email_confirm_message (message, target_div) {
	$(target_div).fadeIn('slow');
	$(target_div).append(message);
	setTimeout("$('" + target_div + "').fadeOut('slow');",5000);
}

