var myheight;
window.onload = function () {
	var flashvars = {};
	var params = {};
	params.allowscriptaccess = "always";
	params.wmode = "transparent";
	var attributes = {};
	attributes.id = "takeOver";
	swfobject.embedSWF("swf/vid.swf", "interactiveMapContent", "840", "696", "9.0.0", false, flashvars, params, attributes);
	if ($.cookie('seenIt') == 'yes') {
		$('.flashOverLay').css('display','none');
	} 
	else {
		$('.flashOverLay').css({
			"width": "840px",
			"top": "253px",
			"left": "52px"
		});
		$('.cufon').hide();
	    myheight = $('.colum1').height();
		$('.colum1').css('height', 345 + 'px');
		//$('.colum1 h2').css('display','none');
	}
	var replaybutton = document.getElementById("replaybutton"); //getElementById finds an element according to its "id" property  
	replaybutton.onclick = function () {
		$(".flashOverLay").show(); //This
		$('.flashOverLay').css({
			"width": "840px"
		});
		$('.cufon').hide();
		document['takeOver'].testAs();
	};
};

loadHolder = function () {
	$(".flashOverLay").show();
	$('.flashOverLay').css({
		"top": "253px",
		"left": "52px"
	});
	var myheight = $('.colum1').height();
	$('.colum1').css('height', myheight + 'px');
	$('.colum1').innerHTML.remove(); //This
  	$('.cufon').hide(); //This
	$('.cufon-alt').show(); //This
};

hideCuffonPlease = function () {
	$('.cufon').hide();
};

function debugPlease() {
	alert("debug");
}

function hideHolder() {
	//document['takeOver'].unloadFlash();
	$('.flashOverLay').css('display','none');
	$('.colum1').css('height', myheight + 345 + 'px');
	//$('.colum1 h2').css('display','block');
	$('.cufon').show();
}
