AC_FL_RunContent = 0;
function getFlashMovie(movieName) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}
function openGallery() {
	getFlashMovie("advent-nav").sendCallToFlash();
}
function colorHeader() {
	var color = "#BFBFBF";
	
	if (arguments[0] == "marketing") {
		color = "#A0CE66";
	} else if (arguments[0] == "exhibits") {
		color = "#92A4CB";
	} else if (arguments[0] == "spaces") {
		color = "#FFA52C";
	} else if (arguments[0] == "events") {
		color = "#A29E9E";
	}
	
    $('#home .col_3 > h2').each(
		function(){
			$(this).css('background-color', "#BFBFBF");
		}
	);
	
	$('#home div.' + arguments[0] + ' > h2').each(
		function(){
			$(this).css('background-color', color);
		}
	);
}

$(document).ready(function() {
	
	$('a.gallery_link').click(function() {
		$.scrollTo({ top: 0, left: 0 }, 800);
		openGallery();
		return false;
	});
	
	// Home page bar link colors
	$('.exhibits h2.bar a').hover(function() {
		$(this).parent('h2').css('background-color', '#95A4C9')
	}, function() {
		$(this).parent('h2').css('background-color', '#C8C8C8')
	});
	$('.spaces h2.bar a').hover(function() {
		$(this).parent('h2').css('background-color', '#F0A538')
	}, function() {
		$(this).parent('h2').css('background-color', '#C8C8C8')		
	});
	$('.events h2.bar a').hover(function() {
		$(this).parent('h2').css('background-color', '#A19E9E')
	}, function() {
		$(this).parent('h2').css('background-color', '#C8C8C8')		
	});
	
});
