/*
 * HIT IT Consulting & Services Web Platform
 * Copyright (C) 2006-2008, HIT IT Consulting & Services, individual authors
 * as indicated by the @author tags.
 *
 * This is CLOSED SOURCE SOFTWARE. You may neither read nor copy
 * and / or distribute any portion of this software without prior
 * permission by HIT IT Consulting & Services.
 *
 * @author Ben Hildebrand (ben.hildebrand [at] hit-consult.net
 */

function conditionalResize() {
	var availH;
	var availW;
    
	if(document.all){
		availW = document.documentElement.clientWidth;
		availH = document.documentElement.clientHeight;
	} else {
		availW = innerWidth;
		availH = innerHeight;
	}
	
	// alert( "availH: " + availH );
	
	if( availH < 800 ) {
		$( 'page' ).style.top = "-60px";

		$$( "body" ).each( function( elem ) {
			elem.style.backgroundImage = "";
			elem.style.backgroundPosition = "0px -70px";
		} );
	}
}

addLoadEvent( conditionalResize );

