var maxTabs=4; //most tabs used on all page sections
/********************* Preload *******************/
var falogin_tab_1 = new Image(); falogin_tab_1.src = "/pics/shared/falogin_tab_1.gif";
var falogin_tab_2 = new Image(); falogin_tab_2.src = "/pics/shared/falogin_tab_2.gif";
var falogin_tab_3 = new Image(); falogin_tab_3.src = "/pics/shared/falogin_tab_3.gif";
var falogin_tab_4 = new Image(); falogin_tab_4.src = "/pics/shared/falogin_tab_4.gif";

/********************* switchContent *******************/
function perftab(num){
	var imageObj = getEl("perftab");
	var secObj;	
	
	imageObj.src = eval("falogin_tab_" + num + ".src");
	
	for(i=1;i<5;i++){ //loop through tabs
		secObj = getEl("container_"+(i-1)); //get div by id
		if(i==num&&secObj){ //if active tab and object exists
			secObj.style.display = "inline"; //show block for tab
		} else if (secObj) {//if inactive tab and it exists
			secObj.style.display = "none";	//hide content for inactive tabs			  	
		}	
	}	
}
