var initFunctions = Array(0);
function addToOnLoad(functionName)
{
initFunctions[initFunctions.length] = functionName;
}


function init()
{
for (var f = 0;f < initFunctions.length;f++)
	{
	eval(initFunctions[f] + "()");
	}	
}
window.onload=init;

function helpResize(){
	if	(document.body.scrollHeight > 580) {
		window.resizeTo(565,580);
	} else {
		window.resizeTo(565,document.body.scrollHeight+65);
	}
}

function helpWideResize(){
	if	(document.body.scrollHeight > 580) {
		window.resizeTo(785,580);
	} else {
		window.resizeTo(785,document.body.scrollHeight+65);
	}
}


var newwindow = '';

function videopop(url)
{
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = url;
	}
	else
	{
		newwindow=window.open(url,'name','status,height=460,width=610');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}