if(document.all){
	// fix background image flicker in IE6
	try {
		document.execCommand("BackgroundImageCache", false, true);
	} catch(e) {

	}
}

snap_css = function() {
	var divContentStyle = document.getElementById("content").style;
	divContentStyle.position   = "relative";
	divContentStyle.position   = "static";
	divContentStyle.marginLeft = "0px";
}

if (document.addEventListener) {
    document.addEventListener("DOMContentLoaded", snap_css, false);
}

// Function to Add "_embed" for ID-based Access of Flash Video Player
function getEmbedFlag() {
	if (navigator.appName.indexOf("Microsoft") != -1) return '';
	else return '_embed';
}

//Get the promo video
function getVideo() {
	$('#promo_video').show();
	$('#btn_video').hide();
	setTimeout('playVideo()', 1000);
}

//Play the promo video
function playVideo() {
	document.getElementById('ana08_player'+getEmbedFlag()).playMovie();
}

//Hide the promo video
function hideVideo() {
	$('#promo_video').hide();
	$('#btn_video').show();
}

//Get the recap video
function getRecap() {
	$('#recap_video').show();
	$('#flash_header').hide();
}