/** Used with ExpandableDivElement.  08-Feb-16: Add cookies. Now requires prototype.js. 08-Jul-28: Add guaranteeExpandDiv. 09-Dec-16: Use Blind effects instead of show/hide. (Note: Slide effect does not work on nested/AJAX divs) **/function collapseOrExpandDiv(divName, imgName, colImgPath, expImgPath) {	var el = document.getElementById(divName);	var img = document.getElementById(imgName);	if ( el.style.display != 'none' ) {	Effect.BlindUp(el);	//	el.style.display = 'none';		document.images[imgName].src = colImgPath;		storeExpandableDivCookie(divName, false);	}	else {		// el.style.display = 'block';		Effect.BlindDown(el);		document.images[imgName].src = expImgPath;		storeExpandableDivCookie(divName, true);	}}function guaranteeExpandDiv(divName, imgName, colImgPath, expImgPath) {	var el = document.getElementById(divName);	if( el.style.display == 'none') {		collapseOrExpandDiv(divName, imgName, colImgPath, expImgPath);	}}function storeExpandableDivCookie(folderID, isExpanded) {	var cookieName = 'gse_expandedDivs';	var c = getCookie(cookieName);	var parts;	if(c == null) {		parts = new Array();	} else {		parts = c.split(',');	}  	// turn it into unique values array	parts = parts.uniq(); // requires prototype.js	// if expanded, add id; otherwise, remove it	if(isExpanded) {		parts.push(folderID);	} else {		parts = parts.without(folderID); // requires prototype.js	}	// turn the array back to a csv	var val = parts.join(',');	setCookie(cookieName, val, 1);}