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

/********************* switchContent *******************/
function monthquartertab(num){
	var imageObj = getEl("monthquartertab");
	var secObj;
	var datelineObj = getEl("datelinePerformance");
	
	imageObj.src = eval("monthquarter_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){
		datelineObj.innerHTML = "as of " + this_monthend;
	}else if(num==2){
		datelineObj.innerHTML = "as of " + this_quarterend;
	}
}

