// JavaScript Document
function setTop(pos, margin) {
	if(document.layers) {
		document.layers["container"].top = pos; 
		document.layers["container"].marginTop = margin;
	} else if(document.getElementById) {
		document.getElementById("container").style.top = pos;
		document.getElementById("container").style.marginTop = margin;
	} else if(document.all)	{
		document.all["container"].style.top = pos;
		document.all["container"].style.marginTop = margin;
	}
}
function setLeft(pos,margin) {
	if(document.layers) {
		document.layers["container"].left = pos; 
		document.layers["container"].marginLeft = margin;
	} else if(document.getElementById) {
		document.getElementById("container").style.left = pos;
		document.getElementById("container").style.marginLeft = margin;
	} else if(document.all)	{
		document.all["container"].style.left = pos;
		document.all["container"].style.marginLeft = margin;
	}
}
function resizePage() {
	var availHeight = document.documentElement.clientHeight;
	if (availHeight < 600) {
		setTop("0px","0px");
	} else {
		setTop("50%", "-300px");
	}
	var availWidth = document.documentElement.clientWidth;
	if (availWidth < 950) {
		setLeft("0px","0px");
	} else {
		setLeft("50%","-475px");
	}
}
