browser = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3 || navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4);

function callPicture(imgName,base) {
	if (browser) {
		imgOn = base + "images/universallinks/" + imgName + "_on.gif";
		document[imgName].src = imgOn;
		}
}

function resetPicture(imgName,base) {
	if (browser) {
		imgOff = base + "images/universallinks/" + imgName + "_off.gif";
		document[imgName].src = imgOff;
	}
}

function changeLang() {
	isFrench = location.href.substring(location.href.length-6,location.href.length-5);
	if (isFrench == 'f') {
		newLang = location.href.substring(0,location.href.length-7) + ".html";
	}
	else {
		newLang = location.href.substring(0,location.href.length-5) + "_f.html";
	}
	location.href = newLang;
}

function copyrightWindow(copyrightLang,base) {
	copyright = base + "acknowledgments/copyright" + copyrightLang + ".html";
	var attributes = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=440,height=280"
	newwindow=window.open(copyright,'copyright',attributes);
}

function englishFooter(bgColor,baseLevel) {
	var base = "";
	for (i=0;i<baseLevel;i++) {
		base = base + "../";
	}
	base = base + "content/";
	var HandsOnFooter = "<center><br><br><table width=358 border=0 cellpadding=10 cellspacing=0><tr><td align=center valign=middle bgcolor=#" + bgColor + "><table width=245 border=0 cellpadding=0 cellspacing=0><tr><td width=104 align=center valign=middle><a href=" + base + "index.html onMouseOver=\"callPicture('" + bgColor + "_home','" + base + "');\" onMouseOut=\"resetPicture('" + bgColor + "_home','" + base + "');\"><img src=" + base + "images/universallinks/" + bgColor + "_home_off.gif width=104 height=11 border=0 alt=\"Hands On! Home\" name=" + bgColor + "_home></a><br></td><td width=12 align=center valign=middle><img src=" + base + "images/universallinks/" + bgColor + "_spacer.gif width=12 height=11 border=0 alt=\"\"><br></td><td width=60 align=center valign=middle><a href=\"javascript:vmcFeedback('http://www.virtualmuseum.ca/cgi-bin/VMC_Feedback/e_vmc_feedback.cgi?s=one&w=handso')\" onMouseOver=\"callPicture('" + bgColor + "_feedback','" + base + "');\" onMouseOut=\"resetPicture('" + bgColor + "_feedback','" + base + "');\"><img src=" + base + "images/universallinks/" + bgColor + "_feedback_off.gif width=60 height=11 border=0 alt=\"Feedback\" name=" + bgColor + "_feedback></a><br></td><td width=12 align=center valign=middle><img src=" + base + "images/universallinks/" + bgColor + "_spacer.gif width=12 height=11 border=0 alt=\"\"><br></td><td width=57 align=center valign=middle><a href=\"javascript:changeLang()\" onMouseOver=\"callPicture('" + bgColor + "_francais','" + base + "');\" onMouseOut=\"resetPicture('" + bgColor + "_francais','" + base + "');\"><img src=" + base + "images/universallinks/" + bgColor + "_francais_off.gif width=57 height=11 border=0 alt=\"Fran&cdile;ais\" name=" + bgColor + "_francais></a><br></td></tr></table><img src=" + base + "images/spacer.gif width=10 height=2 border=0 alt=\"\"><br><a href=\"javascript:copyrightWindow('','" + base + "');\" onMouseOver=\"callPicture('" + bgColor + "_copyright','" + base + "');\" onMouseOut=\"resetPicture('" + bgColor + "_copyright','" + base + "');\"><img src=" + base + "images/universallinks/" + bgColor + "_copyright_off.gif width=338 height=6 border=0 alt=\"&copy 2002 Manitoba Crafts Museum and Library. All Rights Reserved.\" name=" + bgColor + "_copyright></a><br></td></tr></table><br><br></center>\n";
	document.write(HandsOnFooter);
}

function frenchFooter(bgColor,baseLevel) {
	var base = "";
	for (i=0;i<baseLevel;i++) {
		base = base + "../";
	}
	base = base + "content/";
	var HandsOnFooter = "<center><br><br><table width=366 border=0 cellpadding=10 cellspacing=0><tr><td align=center valign=middle bgcolor=#" + bgColor + "><table width=329 border=0 cellpadding=0 cellspacing=0><tr><td width=163 align=center valign=middle><a href=" + base + "index_f.html onMouseOver=\"callPicture('" + bgColor + "_accueil','" + base + "');\" onMouseOut=\"resetPicture('" + bgColor + "_accueil','" + base + "');\"><img src=" + base + "images/universallinks/" + bgColor + "_accueil_off.gif width=163 height=9 border=0 alt=\"De leurs mains... accueil\" name=" + bgColor + "_accueil></a><br></td><td width=12 align=center valign=middle><img src=" + base + "images/universallinks/" + bgColor + "_spacer.gif width=12 height=11 border=0 alt=\"\"><br></td><td width=93 align=center valign=middle><a href=\"javascript:vmcFeedback('http://www.museevirtuel.ca/cgi-bin/VMC_Feedback/f_vmc_feedback.cgi?s=one&w=handso')\" onMouseOver=\"callPicture('" + bgColor + "_commentaires','" + base + "');\" onMouseOut=\"resetPicture('" + bgColor + "_commentaires','" + base + "');\"><img src=" + base + "images/universallinks/" + bgColor + "_commentaires_off.gif width=93 height=9 border=0 alt=\"Commentaires\" name=" + bgColor + "_commentaires></a><br></td><td width=12 align=center valign=middle><img src=" + base + "images/universallinks/" + bgColor + "_spacer.gif width=12 height=11 border=0 alt=\"\"><br></td><td width=49 align=center valign=middle><a href=\"javascript:changeLang()\" onMouseOver=\"callPicture('" + bgColor + "_english','" + base + "');\" onMouseOut=\"resetPicture('" + bgColor + "_english','" + base + "');\"><img src=" + base + "images/universallinks/" + bgColor + "_english_off.gif width=49 height=9 border=0 alt=\"English\" name=" + bgColor + "_english></a><br></td></tr></table><img src=" + base + "images/spacer.gif width=10 height=4 border=0 alt=\"\"><br><a href=\"javascript:copyrightWindow('_f','" + base + "');\" onMouseOver=\"callPicture('" + bgColor + "_copyrightf','" + base + "');\" onMouseOut=\"resetPicture('" + bgColor + "_copyrightf','" + base + "');\"><img src=" + base + "images/universallinks/" + bgColor + "_copyrightf_off.gif width=346 height=8 border=0 alt=\"&copy; 2002 Manitoba Crafts Museum and Library. Tous droits r&eacute;serv&eacute;s.\" name=" + bgColor + "_copyrightf></a><br></td></tr></table><br><br></center>\n";
	document.write(HandsOnFooter);
}
