function ML_MainPage()
{
	this.link = new Array();
	
	this.swiftButton = function(id)
	{
		var buttonObj = document.getElementById(id);
		
		if(buttonObj)
		{
			if(buttonObj.className == "button")
			{
				buttonObj.className = "button-hover";
			}
			else
			{
				buttonObj.className = "button";
			}
		}
	}
	
	this.clickButton = function(id)
	{
		if(this.link[id])
			self.location.href = this.link[id];
	}
	
	this.viewScreenshot = function(src, width, height)
	{
		var container = document.getElementById('screenshotPopup');
		
		if(container)
		{
			container.style.marginLeft = "-" + Math.ceil(width / 2) + "px";
			container.style.marginTop = "-" + Math.ceil(height / 2) + "px";
			
			container.style.width = width + "px";
			
			document.getElementById('screenshotSrc').innerHTML = "<img src='/main/images/screenshots/" + src + ".gif'>";
			
			container.style.display = '';
		}
	}
}