function getElem(name) {    if (document.layers) 	return document.layers[name];    else if (document.all)	return document.all[name];    else if (document.getElementById)	return document.getElementById(name);}function showPic(whichpic) {    var imageId = 'stub';    var image = getElem(imageId);    var anchor = getElem('stubAnchor');    var text =  whichpic.href;    image.src = whichpic.href;    anchor.href = text.replace(/medium/g, "large");    //if (whichpic.title) {    //getElem('stubCaption').innerHTML = whichpic.title;    //getElem('stubCaption').className = "";    //} else {    //getElem('stubCaption').className = "hidden";    //}    image = getElem(imageId);    image.onload = function(elem) {      fadeIn(imageId,0,20);    };    setOpacity(image, 100);    return false;}function setOpacity(obj, opacity) {    opacity = (opacity >= 100)?99.999:opacity;    // IE/Win    obj.style.filter = "alpha(opacity:"+opacity+")";    // Safari<1.2, Konqueror    obj.style.KHTMLOpacity = opacity/100;    // Older Mozilla and Firefox    obj.style.MozOpacity = opacity/100;    // Safari 1.2, newer Firefox and Mozilla, CSS3    obj.style.opacity = opacity/100;}function fadeIn(objId,opacity,step) {    obj = getElem(objId);    if (opacity <= 100) {	setOpacity(obj, opacity);	opacity += step;	window.setTimeout("fadeIn('"+objId+"',"+opacity+","+step+")", 20);    }}function toggleDisplay(link, id, offtext, ontext) {    while(link.firstChild) {	link.removeChild(link.firstChild);    };    var div = getElem(id);    if(div.style.display == 'none') {	div.style.display = 'block';	link.appendChild(document.createTextNode(ontext));	//setOpacity(div, 0);	//fadeIn(id,0,20);    } else {	div.style.display = 'none';	link.appendChild(document.createTextNode(offtext));    }    return false;}