//  this little object is used in many places to provide information about the browser and platform. 
function Browser() {
	var b=navigator.appName;
	if (b=="Netscape") this.b="ns";
	else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie";
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	//this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.ie6up = ((navigator.appVersion.indexOf("MSIE 6")!=-1)||(navigator.appVersion.indexOf("MSIE 7")!=-1));
	this.opera=(this.b=="opera");
	var ua=navigator.userAgent.toLowerCase();
	this.mac = (ua.indexOf("mac")!=-1);
	this.win = (ua.indexOf("windows")!=-1);

}
var is = new Browser();
var pathToRoot = "../index.php";

//print page function
function printPage()
			{
				
				newwindow=window.open();
				newdocument=newwindow.document;
				newdocument.title = 'Print';
				newdocument.write('<html><head><style type="text/css">body,td,th {	font-family: "Lucida Sans Unicode", "Trebuchet MS", Tahoma;	font-size: 12px;}</style><link href=\"../css/default.css\" rel="stylesheet\" type="text/css\" /></head><body>');
				newdocument.write(document.getElementById('printAreaBX').innerHTML);
				newdocument.write('</body></html>');
				newwindow.focus();
				newwindow.print();
			
			}


//this function bookmarks the current page
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}