// window.onload = fixmargin;

// window.onresize = fixmargin;

function fixmargin() {
	
	var contentHeight = 656;
	var marginTop	  = 0;
	
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
		windowHeight = document.documentElement.clientHeight;
	} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
		windowHeight = document.body.clientHeight;
	}
	
	if (windowHeight > contentHeight) {
		marginTop = Math.round((windowHeight - (contentHeight)) / 2);
	}
	
	document.getElementById('container').style.top = marginTop + "px";
}

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

function popup(url, winName, width, height)
{
	win = window.open(url,winName,"location=no,status=no,scrollbars=auto,width=" + width + ",height=" + height);
	
	win.focus();
}
