<!--

var arrPageLocation;
var strPageLocation;

function PrintPage() {

	arrPageLocation = window.location.href.split('#');
	if (arrPageLocation[0] != '') { strPageLocation = arrPageLocation[0]; } else { strPageLocation = window.location.href; }
	
	if (strPageLocation != '') {
		//if ((is.ns4) || (is.ns6) || (is.ns7) || (is.op3) || (is.mac)) {
			if (strPageLocation.indexOf("?") != -1) {
				strPageLocation = strPageLocation + '&print=yes&back=yes';
			} else {
				strPageLocation = strPageLocation + '?print=yes&back=yes';
			}			
			window.location = strPageLocation;			
		//} else {
			//if (strPageLocation.indexOf("?") != -1) {
				//strPageLocation = strPageLocation + '&print=yes';
			//} else {
				//strPageLocation = strPageLocation + '?print=yes';
			//}	
			//top.frames[0].location = strPageLocation;
		//}
	}
	
}

function PrintThispage() {
	if ((is.ns4) || (is.ns6) || (is.ns7) || (is.op3) || (is.mac)) {
	
	} else {
		top.frames[0].focus();
		top.frames[0].print();
		top.frames[0].location = 'blank.html';
	}
}

var strWindowValues;
var strURL;

function WindowOpen(strWindowValues,strURL) {
	newWin = window.open(strURL,'',strWindowValues);
	if (newWin.opener == null) newWin.opener = self; 
}

function Email() {
	if ((is.ns4) || (is.ns6) || (is.ns7) || (is.op3) || (is.mac)) {
		alert('Sorry, but this feature is only available in Microsoft Internet Explorer')
	} else {
		theemail = '';
		theurl = window.location.href;
		thesubject = escape("Baker Nisbet");
		thebody = escape("Check out this page on the Baker Nisbet website - ") + theurl;
		theblah = "?subject=" + thesubject + "&body=" + thebody;
		window.location.href = "mailto:" + theemail + theblah;
	}
}
						
function AddFav() {
	if (is.ns4 || is.ns6 || is.ns7 || is.op3 || is.mac) {
		alert('Sorry, but this feature is only available in Microsoft Internet Explorer')
	} else {
		window.external.AddFavorite(location.href,document.title);
	}
}




//-->
