var maxTabs=2; //most tabs used on all page sections
/********************* Preload *******************/
var fundprices_tab_1 = new Image(); fundprices_tab_1.src = "/pics/shared/fundprices_tab_1.gif";
var fundprices_tab_2 = new Image(); fundprices_tab_2.src = "/pics/shared/fundprices_tab_2.gif";

/********************* switchContent *******************/
function fundpricestab(num){
	var imageObj = getEl("fundpricestab");
	var secObj;
	var headertext1 = getEl("headertext1");
	var headertext2 = getEl("headertext2");
	
	imageObj.src = eval("fundprices_tab_" + num + ".src");
	for(i=1;i<4;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			  	
		}	
	}	
	
	if(num==1){
		headertext1.innerHTML = "Current Prices";
		headertext2.innerHTML = "as of " + this_navs;
	}else if(num==2){
		headertext1.innerHTML = "Historical Prices";
		headertext2.innerHTML = "";
	}	
}



