if (window.navigator.appName != "Microsoft Internet Explorer")
{	
	window.parent.location.assign("Error.html");
}

function setLocation(location)
{
	window.parent.mainWin.location = location;
}

function Button_Down()
{
	var button = event.srcElement;
	button.src = "Images/" + button.id + "_Down.gif";	
	button.onmouseover = "";
	button.onmouseout = "";
	button.style.cursor = 'auto';
	
	//setting all buttons to init situation:
	if (button.id != "mainPage")			
		setButton(document.all.mainPage);
	if (button.id != "revenues")			
		setButton(document.all.revenues);
	if (button.id != "comperativeRevenues")			
		setButton(document.all.comperativeRevenues);
	if (button.id != "pieRevenues")			
		setButton(document.all.pieRevenues);
	if (button.id != "percentileRevenues")			
		setButton(document.all.percentileRevenues);
	if (button.id != "configuration")			
		setButton(document.all.configuration);	
}

function Button_Over()
{
	var button = event.srcElement;
	button.src = "Images/" + button.id + "_Over.gif";			
}

function Button_Out()
{
	var button = event.srcElement;
	button.src = "Images/" + button.id + ".gif";			
}

function setButton(button)
{
	button.src = "Images/" + button.id + ".gif";
	button.onmouseover = Button_Over;
	button.onmouseout = Button_Out;
	button.style.cursor = 'hand';
}