function domousenav(where,which,what,whichframe) {
	var browser = new Object();
	browser.platform = navigator.platform;
	//alert(browser.platform);
	if (browser.platform == "Win32") {
		// do nothing
	} else {
		var path = "images/";
		var ext = ".gif";
		var exts = "_M.gif";
		var fname = "";
		if (where == 1) {
			fname = path + what + exts;
		} else {
			fname = path + what + ext;
		}
		//alert(whichframe);
		whichframe.document.images[which].src = fname;
	}
}

function domouse(where,which,what) {
	var path = "images/";
	var ext = ".gif";
	var exts = "_M.gif";
	var fname = "";
	if (where == 1) {
		fname = path + what + exts;
	} else {
		fname = path + what + ext;
	}
	document.images[which].src = fname;
}

// usage:
/* <a href="#" onmouseover="domouse(1,'help','help')" onmouseout="domouse(0,'help','help')" */

function popupwindow(theurl, thewidth, theheight, scroll) {
	var winl = (screen.width - thewidth) / 2;
	var wint = (screen.height - theheight) / 2;
	winprops = 'height='+theheight+',width='+thewidth+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(theurl, "popup", winprops)
	if (parseInt(navigator.appVersion) >= 4) 
		{ 
		win.window.focus(); 
		};
}

// usage:
/* <a href="#" onclick="popupwindow('help.html','790','590','yes');return false;"> */


function preload_image(thename) {
	var path = "images/";
	image1 = new Image();
	image1.src = path + thename;
}

// usage:
/* <body onload = "preload_image('amica2_m.jpg')"> */
