/*
Detect browser and operating system
*/

// set default url base to append to file requests
//strUrlBase = "http://www.maniatv.com";
//strUrlBase = "http://dev1";
//strUrlBase = "";

// is this a linux machine
var intLinux = 0;
if ( navigator.userAgent.indexOf("Linux") != -1 )
	intLinux = 1;

// is this a mac machine
var intMac = 0;
if ( navigator.userAgent.indexOf("Mac") != -1 )
	intMac = 1;

// is this a windows machine
var intWindows = 0;
if ( navigator.userAgent.indexOf("Win") != -1 )
	intWindows = 1;
	
// if this is windows, what version
if ( intWindows )
{
	var intWinIndex;
	
	// get the windows version
	if ( navigator.userAgent.indexOf("Windows 3.1") != -1 )
		intWinIndex = 0;
	else if ( navigator.userAgent.indexOf("Win95") != -1 )
		intWinIndex = 1;
	else if ( navigator.userAgent.indexOf("Win98") != -1 )
		intWinIndex = 2;
	else if ( navigator.userAgent.indexOf("WinNT") != -1 || navigator.userAgent.indexOf("Windows NT") != -1 )
		intWinIndex = 3;
	else ( navigator.userAgent.indexOf("Windows XP") != -1 )
		intWinIndex = 4;
}


//// DETECT BROWSER
// is this browser internet explorer
var intMSIE = 0;
if ( navigator.userAgent.indexOf("MSIE") != -1 )
	intMSIE = 1;

// is this browser safari
var intSafari = 0;
if ( navigator.userAgent.indexOf("Safari") != -1 )
	intSafari = 1;
	
// is this browser firefox
var intFirefox = 0;
if (navigator.userAgent.indexOf("Firefox") != -1 )
	intFirefox = 1;
	

// is this browser opera
// is this browser netscape
// is this browser firefox
// is this browser mozilla
