function hasClassName(element,className)
{
	if (element.className.indexOf(className) > -1)
	{
		return true;
	}
	return false;
}

function openVideo()
{
	var videoWindow = window.open("/support/videos/"+this.id+".htm", 'video', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=770,height=431');
	videoWindow.focus();
	return true;
}

function resetStatus()
{
	status=defaultStatus;
	return true;
}

function init()
{
	var anchors = document.getElementsByTagName('a');
	for(var i=0; i<anchors.length;i++)
	{
		if(hasClassName(anchors[i],'openVideo'))
		{
			anchors[i].onclick = openVideo;
			anchors[i].onmouseover = resetStatus;
			anchors[i].href = 'javascript:void(0);';
		}
	}
	
	defaultStatus="Successful Hosting"
	
	return true;
} 

window.onload=init