jQuery(document).ready(function() {
	//Set inner page content areas to the same height
	var max_height = 0;
	jQuery("#sidebar, #main-content").each(function() {
		if(jQuery(this).height() > max_height) max_height = jQuery(this).height();
	});
	jQuery("#sidebar").css("min-height", parseInt(max_height + 20) + 'px');
	if(parseInt(jQuery.browser.version) == 6) {
		jQuery("#inner-logo").css("width", "276px");
		jQuery("#sidebar").css("min-height", parseInt(max_height + 20) + 'px');
		jQuery("#sidebar").css("height", parseInt(max_height + 20) + 'px');
		jQuery("#main-content").css("height", parseInt(max_height - 10) + 'px');
	}
	else {
		jQuery("#main-content").css("min-height", parseInt(max_height - 10) + 'px');
	}
	
	//Rollovers for blue li's in #nav
	jQuery(".blue-separator:not(.active)").hover(
		function() {
			jQuery(this).addClass("active");
		},
		function() {
			jQuery(this).removeClass("active");
		}
	);
	
	//Take off the separator on the last utility nav li
	jQuery("#utility-nav li:last").children("a").addClass("no-separator");
	
	//Print when clicking the print icon
	jQuery("#print a").click(function() {
		window.print();
	});
	jQuery(".stico_default, .stbutton").css("padding", "0").removeClass("stico_default");
	
	//*
	jQuery("#popup").dialog();
	jQuery("#popup a").blur();
	//*/
});

var flashvars = {};
var params = {
	wmode: "transparent"	
}
swfobject.registerObject("flash", "9", false);

function expandPage() {
	var max_height = 0;
	jQuery("#sidebar, #main-content").each(function() {
		if(jQuery(this).height() > max_height) max_height = jQuery(this).height();
	});
	jQuery("#sidebar").css("min-height", parseInt(max_height + 20) + 'px');
	if(parseInt(jQuery.browser.version) == 6) {
		jQuery("#inner-logo").css("width", "276px");
		jQuery("#sidebar").css("min-height", parseInt(max_height + 20) + 'px');
		jQuery("#sidebar").css("height", parseInt(max_height + 20) + 'px');
		jQuery("#main-content").css("height", parseInt(max_height - 10) + 'px');
	}
	else {
		jQuery("#main-content").css("min-height", parseInt(max_height - 10) + 'px');
	}
}