/* This javascript is created by Webstyle Center. You are not allowed to copy the scripts below. Please visit www.webstylecenter.com to request a copy of the script you want */

function getWindowHeight() {
	var windowHeight = 0;
	
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}

function getWindowWidth() {
	var windowWidth = 0;
	
	if (typeof(window.innerWidth) == 'number') {
		windowWidth = window.innerWidth;
	}
	else {
		if (document.documentElement && document.documentElement.clientWidth) {
			windowWidth = document.documentElement.clientWidth;
		}
		else {
			if (document.body && document.body.clientWidth) {
				windowWidth = document.body.clientWidth;
			}
		}
	}
	return windowWidth;
}

window.onresize = function() {
	plek();
}


function plek() {
	
	
	var windowHeight = getWindowHeight();
	var windowWidth = getWindowWidth();
	var pixels;
	
	pixels = (windowHeight / 2) - 315;
	
	
	if(pixels < 1) {pixels = 1; }
	
	document.getElementById('everything').style.marginTop = pixels + 'px'; 
	
	var minderbreed = 940 - windowWidth;
	var bob = 401 - minderbreed;
	
		
	if(minderbreed > 0) { document.getElementById('simms').style.width = bob + 'px'; } else { document.getElementById('simms').style.width = '401px'; };
	
	
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}