// JavaScript Document
// Masoud Baradaran Hakak    March 31, 2006
// Henderson and Bas
// Credits:			http://javascript.about.com



//global variables
var macie = 'www.google.ca';
var other = 'www.hotmail.com';


//helper function
function detectBrws () 
{	
	//attain current browser profile
	var agnt=navigator.userAgent.toLowerCase();
	var brwV;   //example  "Internet Explorer 6.0
	
	//check what profile is attained
	if (agnt.indexOf("msie") != -1) return 'IExp';
	if (agnt.indexOf("firefox") != -1) return 'Ffox';
	if (agnt.indexOf("safari") != -1) return 'Safa';
	if (agnt.indexOf("netscape") != -1) return 'nets';
	else 
		return 'UBOU';  //unidentified browser object used
}
	
//helper function
function detectOS () 
{
	var agnt=navigator.appVersion.toLowerCase();
	if (agnt.indexOf("win")!=-1) return 'Win';
	if (agnt.indexOf("mac")!=-1) return 'MacOS';
	if (agnt.indexOf("x11")!=-1) return 'UNIX';
	if (agnt.indexOf("linux")!=-1) return 'Linux';
	else 
		return 'UOSOU';		//unidentified operating system used
}

//detect if user is using a mac and ie
function macCheck ()
{
	if ((detectOS()== 'MacOS') && (detectBrws()=='IExp') || (detectOS()== 'MacOS') && (detectBrws()=='nets'))
		return (true);
	else
		return (false);
}
