/**
 * @author jhendrickson
 */
$(document).ready(function(){
	if (!jQuery.browser.msie) {
		$('.rounded').corners('10px bottom');
		$('.sub-navigation-box').corners('3px');
		$('.sub-navigation-box div').corners('3px left');
	}
	
	// START THE FLASH MOVIE
	swfobject.registerObject("flash-box-movie", "9.0.0", "expressInstall.swf");
	
	// THIS FUNCTION WAS PULLED FROM: http://codylindley.com/Webdev/295/javascript-get-page-height-with-scroll
	function Viewport(){ 
		this.windowX = (document.documentElement && document.documentElement.clientWidth) || window.innerWidth || self.innerWidth || document.body.clientWidth; 
		this.windowY = (document.documentElement && document.documentElement.clientHeight) || window.innerHeight || self.innerHeight || document.body.clientHeight; 
		this.scrollX = (document.documentElement && document.documentElement.scrollLeft) || window.pageXOffset || self.pageXOffset || document.body.scrollLeft; 
		this.scrollY = (document.documentElement && document.documentElement.scrollTop) || window.pageYOffset || self.pageYOffset || document.body.scrollTop; 
		this.pageX = (document.documentElement && document.documentElement.scrollWidth) ? document.documentElement.scrollWidth : (document.body.scrollWidth > document.body.offsetWidth) ? document.body.scrollWidth : document.body.offsetWidth; 
		this.pageY = (document.documentElement && document.documentElement.scrollHeight) ? document.documentElement.scrollHeight : (document.body.scrollHeight > document.body.offsetHeight) ? document.body.scrollHeight : document.body.offsetHeight;
	}
	
	var dimensions = new Viewport();
	
	// SET THE BODY BOX HEIGHT DYNAMICALLY
	$('#body-box').css('height',dimensions.pageY);
});
