// JavaScript Document
function test() {
	alert("hello world");
}
function showMessagePopUp()
{
	var message_panel = document.getElementById('message_panel');
	var fade_out = document.getElementById('fadeout');
	var w = 600;
	var h = 300;
	var xc = 0;
	var yc = 0;
	var docwidth = 0;
	var docheight = 0;
	// get the x and y coordinates to center the newsletter panel
	if (typeof(window.innerHeight) === 'number') {
		//FF height wrong
		xc = Math.round((window.innerWidth / 2) - (w / 2));
		yc = Math.round((window.innerHeight / 3) - (h / 2));
		docheight = document.height;//window.innerHeight;
		docwidth = window.innerWidth;
	} else {
		//IE yc wrong
		xc = Math.round((document.body.clientWidth / 2) - (w / 2));
		yc = Math.round((document.documentElement.clientHeight / 3) - (h / 2));
		docheight = document.body.clientHeight;
		docwidth = document.body.clientWidth;
	}
	// show the newsletter panel
	message_panel.style.left = xc + "px";
	message_panel.style.top = yc + "px";
	fade_out.style.width = docwidth + "px";
	fade_out.style.height = docheight + "px";
	message_panel.style.display = 'block';
	fade_out.style.display = 'block';
	return false;
}
function closeMessagePopUp()
{
	var message_panel = document.getElementById('message_panel');
	var fade_out = document.getElementById('fadeout');
	message_panel.style.display = 'none';
	fade_out.style.display = 'none';
}