//This file has been added for ENH-97(Digital Libraries)

// Displays library homepage when clicked on library link in drop down of Digital library topbar
//function showLibraryPage(strProductName)
//{
//	if(strProductName == "Living Green") {
//		document.libraries.action="/livinggreen/home";
//		document.libraries.submit();
//	}
//	else if(strProductName == "Early Peoples") {
//		document.libraries.action="/earlypeoples/home";
//		document.libraries.submit();
//	}
//	return false;
//}
function getObject(objectId) {
	if (document.all && !document.getElementById) {
		return document.all(objectId);
	} else {
		return document.getElementById(objectId);
	}
}

//Expands or collapses the index side of volume homepage
//Changed the images path to /digitallibraries/images/ for ENH-112
function exp_coll(type){
	var oType = document.getElementById("img_"+type);
	var oSub = document.getElementById("ul_"+type);
	if(oSub.style.display == 'block'){
		oType.src="/digitallibraries/images/document-content-plus.gif"
		oSub.style.display = 'none';
	}
	else{
		oType.src="/digitallibraries/images/document-content-minus.gif";
		oSub.style.display = 'block';	
	}	
}
