// Do we have the better browser... :-)
var bIsIE;

// Loading...
function LoadProc()
{
	HideAll(); // hide all languages
	if (navigator.appVersion.charAt(0) <= '3')
	{
		window.location.replace("DownloadBrowser.htm");
		return true;
	}

	if (navigator.appName == "Microsoft Internet Explorer")
		bIsIE = true;
	else
		bIsIE = false;	
	
	return true;
}

// Menu hovering...
function MenuItemProc(item, on, status)
{
	if (on == 0)
	{
		item.style.color = '#ffffe1';
		item.style.backgroundColor = '#3c5a96';
	}
  	else
	{
    	item.style.color = '#0000ff';
		item.style.backgroundColor = '#96aadc';
	}
	
	window.status = status;	
	return true;
}

function HideAll()
{
	MG1.style.display='none';

}

// Show/Hide section...
function Show(obj)
{
	// hide
	if (obj.style.display == '')
	{
		obj.style.display='none';
	}
	// show
	else
	{
		if(obj == MG1)
		{
			MG1.style.display='';

		}
		

	}
		
}

// Info hovering...
function InfoItemProc(item, on, status)
{
	if (on == 0)
	{
		item.style.color='#000000';
	}
  	else
	{
    	item.style.color='#0000ff';
	}
	
	window.status=status;
	return true;
}

// Info hovering...
function ImageItemProc(sStatus)
{
	window.status=sStatus;
	return true;
}

// Status Text...
function ShowStatusHome()
{
	window.status="n!trob!t home";
	return true;
}

// Returns the day...
function GetDay(nDay)
{
	var Days = new Array("Sundy","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	return Days[nDay];
}

// Returns the month...
function GetMonth(nMonth)
{
	var Months = new Array("January","February","March","April","May","Juny","July","August","September","October","November","December");
	return Months[nMonth];	  	 
}

// Returns a formatted date string...
function DateString()
{
	var Today = new Date();
	if (bIsIE)
		var sDate = GetDay(Today.getDay()) + ", " + Today.getDate() + ". " + GetMonth(Today.getMonth()) + " " + Today.getYear();
	else
		var sDate = GetDay(Today.getDay()) + ", " + Today.getDate() + ". " + GetMonth(Today.getMonth()) + " 2002";

	document.write("<h5 class='DateFormat'>" + sDate + "</h5>");
	return true;
}

function NitroDraftPresentation()
{
	var win;
	win = window.open("APPZ/Index.htm", "NitroDraftPresentation", "width=470, height=400, screenX=210, screenY=210");
}

