addLoadListener(resize);/*function resize() {    if (!document.getElementsByTagName) return false;	var image = document.getElementsByTagName("div");	for (var i=0; i<image.length; i++) {		if (image[i].className == "resultImage") {			var width = image[i].firstChild.width;			alert (width);			}		}}function resize() {    if (!document.getElementsByTagName) return false;	var image = document.getElementsByTagName("img");	for (var i=0; i<image.length; i++) {			var width = image[i].width;			alert (width);		}}*/function resize(){	if(!document.getElementsByTagName) return false;	if(!document.getElementById("slideshowsummary")) {	var resizeWidth = 200;	var resizeHeight = 200;	var maxHeight = 1;	var image = document.getElementsByTagName("a");	for (var i=0; i<image.length; i++) 	{		if (image[i].className == "lightbox") 		{			var width = image[i].firstChild.clientWidth;			var height = image[i].firstChild.clientHeight;			//alert (width +" x "+ height);			var aspect = width/height;			//alert (aspect);						if (width > resizeWidth && height < resizeHeight)			{				image[i].firstChild.setAttribute("width",resizeWidth);			}						if (width < resizeWidth && height > resizeHeight)			{				image[i].firstChild.setAttribute("height",resizeHeight);			}						if (width > resizeWidth && height > resizeHeight)			{				if (width > height)				{					image[i].firstChild.setAttribute("width",resizeWidth);				}				else				{					image[i].firstChild.setAttribute("height",resizeHeight);				}			}						//Detect the height of the image & see if it is the maximum height			if (height > maxHeight) {				maxHeight = height;				if (maxHeight > resizeHeight) {					maxHeight = resizeHeight;				}			}					}	}		//Resize the class="image" style to the height of the largest image on the screen	var thumbnail = document.getElementsByTagName("div");	for (var i=0; i<thumbnail.length; i++) 	{		if (thumbnail[i].className == "image") 		{			// This won't work in IE as it ignores style changes			//thumbnail[i].setAttribute("style","height:"+maxHeight+"px;");			thumbnail[i].style.height = maxHeight+11+"px";		}	}	}}//Fade out the cartMessage & remove it from the DOMvar removeElement = function() {	var el = this.getEl();	el.parentNode.removeChild(el);}YAHOO.example.init = function() {    var anim = new YAHOO.util.Anim('cartMessage', { opacity: { to: 0 } }, 3, YAHOO.util.Easing.easeOut);   YAHOO.util.Event.on(window, 'load', anim.animate, anim, true);   anim.onComplete.subscribe(removeElement);   anim.animate();};//  wait for 2 seconds before running the fadesetTimeout("YAHOO.util.Event.onAvailable('cartMessage', YAHOO.example.init)",2000);//Disable the "other" radio button option in the Request a copy form//until the button has been selectedfunction disableInput() {	if(!document.getElementById) return false;	var input = document.getElementById("useOtherDesc");	input.value= "";	input.disabled = true;}function enableInput() {	if(!document.getElementById) return false;	var input = document.getElementById("useOtherDesc");	input.disabled = false;}var ids = ["usePersonal", "useEducation", "useCommercial", "useOther"];function selectRadio(e) { 	if (this.id =="useOther") {		enableInput();	} else {		disableInput();	}	}//YAHOO.util.Event.addListener(ids, "click", selectRadio);YAHOO.util.Event.addListener(["usePersonal", "useEducation", "useCommercial", "useOther"], "click", selectRadio);YAHOO.util.Event.onAvailable('useOtherDesc', disableInput);