// cross-browser in-frames print button
// script copyright Jens Finke, 2003
// http://www.bluegecko.org/kenya

flag=0

function easyprint(){
	window.focus();
	window.print();
	}

function ns4print(){
	if (self != top){
	alert ('To avoid errors when printing, this page will now reload in a new window. It should only take a second or two. Then press \"Print this page\" again.');
	window.open(location.href);
	}
	else window.print();
	}

function opprint(){
	alert('To print this page correctly, go to \"File\", \"Print Preview\" and select \"Active Frame\". Then go to \"File\" and \"Print\" and away you go!');
	flag=1
	}

if (navigator.appName == 'Microsoft Internet Explorer' && (navigator.appVersion.indexOf("MSIE 4") != -1)){
	document.write('<script src="../print.vbs" type="text\/vbscript"></script><form><input type=image value="Print this Page" src="../print.gif" border=0 height=16 width=101 ALIGN=RIGHT name="Print" onClick="easyprint()"></form>')
	flag=1
	}

if (navigator.appName == 'Microsoft Internet Explorer' && (parseInt(navigator.appVersion) >= 4) && (navigator.appVersion.indexOf("MSIE 4") == -1)){
	document.write('<A HREF="#" onClick="easyprint()"><IMG SRC="../print.gif" BORDER=0 HEIGHT=16 WIDTH=101 ALT="Print this Page"></A>')
	flag=1
	}

if (navigator.appName == 'Netscape' && (parseInt(navigator.appVersion) < 5)){
	document.write('<A HREF="#" onClick="ns4print()"><IMG SRC="../print.gif" BORDER=0 HEIGHT=16 WIDTH=101 ALT="Print this Page"></A>')
	flag=1
	}

if (navigator.appName == 'Netscape' && (parseInt(navigator.appVersion) >= 5)){
	document.write('<A HREF="#" onClick="easyprint()"><IMG SRC="../print.gif" BORDER=0 HEIGHT=16 WIDTH=101 ALT="Print this Page"></A>')
	flag=1
	}

if (navigator.appName == 'Opera'){
	document.write('<A HREF="#" onClick="opprint()"><IMG SRC="../print.gif" BORDER=0 HEIGHT=16 WIDTH=101 ALT="Print this Page"></A>')
	flag=1
	}

if (flag == 0){
	document.write('<A HREF="#" onClick="ns4print()"><IMG SRC="../print.gif" BORDER=0 HEIGHT=16 WIDTH=101 ALT="Print this Page"></A>')
	}
