// Site link path (with trailing slash), referenced multiple times within this file.
var link_path  = "/";

/* "Printable version" Popup Script * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function Print() { 
	var whatLanguage = location.pathname;

	var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,scrollbars=yes,width=750,height=600,left=100,top=25";
	//var sTitle = document.getElementById('printTitle').innerHTML;
	var sContent = document.getElementById('text-content').innerHTML;
	
	var winprint=window.open("","",sOption); 
		winprint.document.open(); 
		winprint.document.write('<html>');
		winprint.document.write('<head><title>the Jane Goodall Institute (Hong Kong)</title><link rel=\"stylesheet\" type=\"text/css\" href=\"'+link_path+'common/jg2007.css\"><link rel=\"stylesheet\" type=\"text/css\" href=\"'+link_path+'common/print.css\"></head>');
		winprint.document.write('<body class=\"#print\">'); 
		winprint.document.write('<table border=\"0\" cellpadding=\"20\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#FFFFFF\">');
		winprint.document.write('<tr><td width=\"100%\">');
		winprint.document.write('<img src=\"'+link_path+'images/wrapper/logo-print.gif\" alt=\"the Jane Goodall Institute (Hong Kong)\" width=\"500\" height=\"42\" border=\"0\"><br><img src=\"'+link_path+'images/wrapper/spacer.gif\" width=\"1\" height=\"15\" border=\"0\" alt=\"\">');
		//winprint.document.write(sTitle);
		winprint.document.write('<br><br>');
		winprint.document.write(sContent);
		winprint.document.write('<hr size=\"1\"><img src=\"'+link_path+'images/wrapper/spacer.gif\" width=\"1\" height=\"6\" border=\"0\" alt=\"\"><br>Copyright &copy; Jane Goodall Institute of Canada.');
		winprint.document.write('</table>');
		winprint.document.write('</body>');
		winprint.document.write('</html>');
		winprint.document.close();
		winprint.focus(); 
}
	
function popUp_small(url) {
        popupWin = window.open(url, 'RS_JOIN_POPUP_Small', 'width=300,height=200,left=240,top=25,resizable=no, toolbar=no')
}

function popUp_large(url) {
        popupWin = window.open(url, 'RS_JOIN_POPUP_Large', 'width=570,height=400,left=240,top=25,resizable=no, toolbar=no, scrollbars=1')
}

function popUp_Custom(url, w, h)
{
	var winprop = "width=" + w + ",height=" + h;
	openwin = window.open(url,'',winprop+',left=240,top=25,resizable=no, toolbar=no, scrollbars=1');
} 	