function switchTabEndCapsOver(el) {
	if (document.all) {
		document.all['tab'+el+'R'].style.background = 'url(images/TabHoverR.gif)';
		document.all['tab'+el+'L'].style.background = 'url(images/TabHoverL.gif)';
	} else {
		document.getElementById('tab'+el+'R').setAttribute("style", "background-image:url(images/TabHoverR.gif);");
		document.getElementById('tab'+el+'L').setAttribute("style", "background-image:url(images/TabHoverL.gif);");
	}
}

function switchTabEndCapsOff(el) {
	if (document.all) {
		document.all['tab'+el+'R'].style.background = 'url(images/TabR.gif)';
		document.all['tab'+el+'L'].style.background = 'url(images/TabL.gif)';
	} else {
		document.getElementById('tab'+el+'R').setAttribute("style", "background-image:url(images/TabR.gif);");
		document.getElementById('tab'+el+'L').setAttribute("style", "background-image:url(images/TabL.gif);");
	}
}
/* same thing, but for tabOn tabs; el is ignored, so I can leave the number in when copying from page to page */
function switchTabOnEndCapsOver(el) {
	if (document.all) {
		document.all['tabOnR'].style.background = 'url(images/TabHoverR.gif)';
		document.all['tabOnL'].style.background = 'url(images/TabHoverL.gif)';
	} else {
		document.getElementById('tabOnR').setAttribute("style", "background-image:url(images/TabHoverR.gif);");
		document.getElementById('tabOnL').setAttribute("style", "background-image:url(images/TabHoverL.gif);");
	}
}

function switchTabOnEndCapsOff(el) {
	if (document.all) {
		document.all['tabOnR'].style.background = 'url(images/tabOnR.gif)';
		document.all['tabOnL'].style.background = 'url(images/tabOnL.gif)';
	} else {
		document.getElementById('tabOnR').setAttribute("style", "background-image:url(images/tabOnR.gif);");
		document.getElementById('tabOnL').setAttribute("style", "background-image:url(images/tabOnL.gif);");
	}
}

function MM_preloadImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
