var params = { play: 'true', loop: 'false', menu: 'false', quality: 'high', scale: 'noscale', salign: 't', wmode: 'opaque', bgcolor: '#cccccc', devicefont: 'true', allowFullScreen: 'false', allowScriptAccess: 'sameDomain' };
var attributes = { id: 'homepage_splash', name: 'homepage_splash'};
swfobject.embedSWF('/splash/homepage.swf', 'splash', '100%', '100%', '9.0.0', '/splash/expressInstall.swf', flashvars, params, attributes);

function Panes () {
	this.minInnerHeight = 520;
	this.maxInnerHeight = 670;
	this.bottomMax = this.maxInnerHeight - this.minInnerHeight;
	this.innerHeight = 0;
	this.panes = $('#panes');
}

Panes.prototype = {
	init: function () {
		this.resize();
	},
	resize: function () {
		var windowHeight = getPageSize()[3];
		if (this.innerHeight == windowHeight) {
			return; // prevent horizontal resize
		}
		var paneHeight = 0;
		if (windowHeight > this.minInnerHeight && windowHeight < this.maxInnerHeight) {
			paneHeight = windowHeight;
		} else if (windowHeight < this.minInnerHeight) {
			paneHeight = this.minInnerHeight;
		} else {
			paneHeight = this.maxInnerHeight;
		}
		this.panes.height(paneHeight - 10);
		this.innerHeight = windowHeight;
	}
}

// -----------------------------------------------------------------------------------

$(function(){
	var panes = new Panes();
	panes.init();
	$(window).resize(function(){ panes.resize(); });

	// thenames logo mouseover handler
	if ($.browser.msie) {
		$('#thenames').mouseover(function(){
			$(this).addClass('over');
		})
		$('#thenames').mouseout(function(){
			$(this).removeClass('over');
		})
	}
})
