//#########################  Link Swap v1.1 #######################//
//-------- ©2002 Gianni Bellono <http://gbellono.4pro.net/> -------//
//--------      if you use this script, please be fair      -------//
//--------           and don't strip the credits            -------//
//_________________________________________________________________//
//------- required page declarations:
//preloadButtonSet(num,plain,over,click) for each link or map
//------- link declaration:
//onmouseover="return overLink(arrayNum,'msg');" onmouseout="return outLink(arrayNum);" onclick="return clickLink(arrayNum,this)"
//------- optional xtra scripts:
//statusbar.js
//unfocus.js
//_________________________________________________________________//
// v1.1:
// introduced the !=null check so that a call like
//	onmouseover="return overLink(null,'msg');" onmouseout="return outLink(null);" onclick="return clickLink(null,this)"
// will work without swapping images. In this way you can call
// the same function also if you just need to display msg in statusbar
//_________________________________________________________________//

function overLink(num,theStr) {
	if (document.images && num != null){
		eval("document.button"+num+".src = over_pics["+num+"].src;");
	}
 	if (typeof(overStatus)=='function') {overStatus(theStr)};
	return true; 
}

function outLink(num) {
	if (document.images && num != null){
	 	eval("document.button"+num+".src = out_pics["+num+"].src;");
	}
 	if (typeof(outStatus)=='function') {outStatus()};
	return true;
 }

function clickLink(num,x) {
 	if (typeof(outStatus)=='function') {outStatus()};
	if (document.images && num != null) {
		eval("document.button"+num+".src = click_pics["+num+"].src;");
	}
 	if (typeof(defocus)=='function') {defocus(x)};
	return true;
 }