function _setTop () {
	if ( navigator.appName == "Netscape" || navigator.appName == "Opera" ) {
		windowWidth = window.innerWidth - 16;
		windowHeight = window.innerHeight;
	} else if ( document.documentElement.clientWidth ) {
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	}

	var windowBoundary = 800;
	if ( windowHeight >= windowBoundary ) {
		offset = 0;
	} else if ( windowHeight < windowBoundary && windowHeight >= windowBoundary - 300 ) {
		offset = windowHeight - windowBoundary;
	} else {
		offset = -300;
	}
	document.getElementById( 'backBox' ).style.top = offset + "px";
	document.getElementById( 'backBox' ).style.width = windowWidth + "px";
	( windowWidth % 2 == 1 && navigator.appName == "Microsoft Internet Explorer" ) ? offset = 1 : offset = 0;
	if ( navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf( "MSIE 6" ) > 0 ) {
		document.getElementById( 'footerBox' ).style.width = windowWidth + "px";
// 		document.getElementById( 'footerBox' ).style.backgroundPosition = (( windowWidth - 3000 ) / 2 ) + "px 0px";
	} else {
		document.getElementById( 'frontBox' ).style.left = Math.floor (( windowWidth - 1248 ) / 2 + offset ) + "px";
	}
}

if ( window.addEventListener ) {
	window.addEventListener ( "load", _setTop, false );
	window.addEventListener ( "resize", _setTop, false );
} else {
	window.attachEvent ( "onload", _setTop );
	window.attachEvent ( "onresize", _setTop );
}

