<!-- Begin

function classoggle(tag, classa, classb) {
	if (tag.className==classa){
	tag.className=classb;
	} else {
	tag.className=classa;
	}
}

 function visoggle(divID) {
     var d = document.getElementById(divID);
     classoggle(d, 'hide', 'show');
}

//  End -->




<!-- Begin
//here you place the ids of every element you want.
//var ids=new Array('daily','mtd','ytd','asset','rr3','rr5','rr10');
var ids=new Array('asset','rr3','rr5','rr10');


function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

// END -->


<!-- Begin

// Changes the class of the given tag from classa to classb or back

function classoggle(tag, classa, classb) {
	if (tag.className==classa){
		tag.className=classb;
	} else {
		tag.className=classa;
	}
}
 
// Toggles the class name of the indexed div between 'hide' and 'show'
// and toggles the src attribute of the referenced img tag between openPicture and closePicture

function visoggle(divID, img) {
	var d = document.getElementById(divID);
	classoggle(d, 'hide', 'show');
}
 

// Toggles the indicated image and collapses all other ones

function visoggleSolo(divID, prefix, img, anchor, tagName){
	var d = document.getElementById(divID);
	var isHid = d.className == 'hide';
	var noImg = img=='null';
	collapseAll(prefix, 0, noImg, tagName);
	if (isHid){
		if (noImg) {
			visoggle(divID);
		} else {
			visoggle(divID, img);
		}
	}
	if (anchor != 'null') { 
		location.hash=anchor;
	}
}
 
// Collapses and changes the image for all tags that start with the given prefix. Expands them if exp=1

function collapseAll(start, exp, noImg, tagName) {
	var cTag = 'div';
	if(tagName != undefined && tagName!='null'){
	cTag = tagName;
	}//if
	var expand = exp==1;

	var newClass = 'hide';

	var allDivs = document.getElementsByTagName(cTag);
		for (i=0; i < allDivs.length; i++) {
		if (allDivs[i].id.indexOf(start) == 0) {
			allDivs[i].className = newClass
		}//if
	}//for
}//function

//  End -->