function isNetscape ()
{
	if (navigator.appName=='Netscape')
	{
		return true;
	}
	else
	{
		return false;
	}
}

function isDom ()
{
	if (document.getElementById)
	{
		return true;
	}
	else
	{
		return false;
	}
}


function isIE ()
{
	if (navigator.appName=='Microsoft Internet Explorer')
	{
		return true;
        }
	else
	{
		return false;
	}
}

function isWindows ()
{
	return (navigator.userAgent.indexOf ('Win') >= 0);
}

function isMac ()
{
	return !isWindows ();
}

function isOpera()
{
	if (navigator.userAgent.toLowerCase().indexOf("opera") != -1)
	{
		return true;
        }
	else
	{
		return false;
	}
}

var replacePath = "../replace/";

//var cdPath = 'file:///MMHE/data/';
//var cdPath = this.location.toString ().toLowerCase ().substr (0, this.location.toString ().toLowerCase ().lastIndexOf ('hd_data/globals/')) + "data/";
//var hdPath = this.location.toString ().toLowerCase ().substr (0, this.location.toString ().toLowerCase ().lastIndexOf ('globals/'));
var cdPath = (this.location.toString ().toLowerCase ().lastIndexOf ('hd_data/') >= 0) ? this.location.toString ().toLowerCase ().substr (0, this.location.toString ().toLowerCase ().lastIndexOf ('hd_data/globals/')) + "data/" : this.location.toString ().toLowerCase ().substr (0, this.location.toString ().toLowerCase ().lastIndexOf ('/')) + "/data/";
var hdPath = (this.location.toString ().toLowerCase ().lastIndexOf ('hd_data/') >= 0) ? this.location.toString ().toLowerCase ().substr (0, this.location.toString ().toLowerCase ().lastIndexOf ('globals/')) : this.location.toString ().toLowerCase ().substr (0, this.location.toString ().toLowerCase ().lastIndexOf ('/')) + "/hd_data/";