
	
	//===================================================================================
	// Pre-load images if any
	// The image objects aren't actually used anywhere, but it forces the image to preload

	var imgs = new Array();
	//imgs[0] = new Image();	// 7-thumbnails
	//imgs[0].src = "images/tab3bg_on.gif";

	//===================================================================================

	// If tab is an image instead of text
	function tab_hover(obj) {
		var cn = false;
		if(obj.className.match(/_off/)) {
			cn = obj.className.replace(/_off/g, "_hover");
		} else if(obj.className.match(/_hover/)) {
			cn = obj.className.replace(/_hover/g, "_off");
		}
		if(cn) obj.className = cn;
	}

	function tab_select(tabset, tabnum, obj, additional) {
		var x = 1;
		var onoff, tab;

		x = 1;
		while(tab = document.getElementById("tab" + tabset + "_" + x)) {
			onoff = x == tabnum ? "on" : "off";
			tab.className = printf("tab%s_%s tab%s_%s_%s", [tabset, onoff, tabset, x, onoff]);
			document.getElementById("tabcontent" + tabset + "_" + x).className = x == tabnum ? "tab_vis" : "tab_hid";
			x++; 
		}

		if(obj) obj.blur(); // Remove focus from the link

		return false;
	}


	function printf(S, L) { 
		var nS = "";
		var tS = S.split("%s");
		for(var i=0; i<L.length; i++) nS += tS[i] + L[i];
		return nS + tS[tS.length-1]; 
	} 



