function curator_toggleDisplay(id){
	if(document.getElementById(id).style.display == 'block'){
		  document.getElementById(id).style.display = 'none';
	} else {
		  document.getElementById(id).style.display = 'block';
	}
} 

function curator_toggleButton(image){
	imgName = image.src; 
    extIndex = imgName.lastIndexOf('.');
    imgExt = imgName.substring(extIndex,imgName.length);
    imgName = imgName.substring(0,extIndex); 
    if (imgName.substring(imgName.length-5,imgName.length) == '-over') {
    	newImgName = imgName.substring(0,imgName.length-5)+imgExt;
    } else {
    	newImgName = imgName+'-over'+imgExt;
    }
    image.src = newImgName;
}

function curator_toggleBox(boxname, contentID) {
    // Get array of "div" elements that are in the boxcontainer
    var boxes = document.getElementById('boxcontainer_'+boxname).getElementsByTagName('div');
    // Hide all of them
    for(var i=0; i<boxes.length; i++) { 
    	if (boxes[i].className == 'toggle_box '+boxname+'_box') {
        	boxes[i].style.display = 'none';
        }
    }
    document.getElementById(boxname+'_box_'+contentID).style.display = 'block';
}

