var maxTabs=3; //most tabs used on all page sections
/********************* Preload *******************/
var contact_tab_1 = new Image(); contact_tab_1.src = "/pics/shared/contact_tab_1.gif";
var contact_tab_2 = new Image(); contact_tab_2.src = "/pics/shared/contact_tab_2.gif";
var contact_tab_3 = new Image(); contact_tab_3.src = "/pics/shared/contact_tab_3.gif";

/********************* switchContent *******************/
function contacttab(num){
	var imageObj = getEl("contacttab");
	var secObj;
	
	imageObj.src = eval("contact_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			  	
		}	
	}	
}


