var currentPage="Home";
        
function setCurrentPage(newPage, theVideo) {
	currentPage = newPage;
	SendDataToFlashMovie(newPage, theVideo);
}

function getFlashMovieObject(movieName){
	if (window.document[movieName]){
		return window.document[movieName];
	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1){
		if (document.embeds && document.embeds[movieName])
		return document.embeds[movieName];
	}
	else // if (navigator.appName.indexOf(”Microsoft Internet”)!=-1)
{
		return document.getElementById(movieName);
		
	}
}

function SendDataToFlashMovie(newPage, theVideo)
{
	var flashMovie=getFlashMovieObject('videoHeadline');
	flashMovie.sendTextToFlash(newPage, theVideo);
}

$(function() {
	$("#videoMenu a").each(function() {
		var linkID=$(this).attr("href");
		$(this).removeAttr("href");
		$(this).click(function() {
			$("#videoMenu a").removeClass("current");
			$("div.tab").removeClass('current');
			$(linkID).addClass("current");
			//alert(linkID)
			$(this).addClass("current");
		});
	});
});