function showMe(node, sender) {		if($('currentClient')) $('currentClient').id = '';	sender.id = "currentClient";	newNode = node;	currentNode = document.getElementsByClassName('imageContainer');	imageArray = $(newNode).getElementsByTagName('img');		for (x = 0; x < currentNode.length; x++) {				if (Element.visible(currentNode[x])) {			oldNode = currentNode[x];			new Effect.Opacity(currentNode[x], {from: 1.0, to: 0.0, duration: 0.5});						if ($(newNode).childNodes.length < 2) {											setTimeout("switchMe()", 700);				}						else {							for (y = 1; y < imageArray.length; y++) {					Element.hide(imageArray[y]);				}								setTimeout("switchMe()", 700);			}		}	}}function rotateImage(direction) {	//In this case, newNode is actually the current node being displayed	for (z = 0; z < imageArray.length; z++) {		if(Element.visible(imageArray[z]))			currImageNode = imageArray[z];	}	if (direction.id == "rightArrow") {		if (currImageNode.nextSibling) {			nextImageNode = currImageNode.nextSibling;			new Effect.Opacity(currImageNode, {from: 1.0, to: 0.0, duration: 0.5});			setTimeout("switchMe2()", 700);		}	}	else if (direction.id == "leftArrow") {		if (currImageNode.previousSibling) {			nextImageNode = currImageNode.previousSibling;			new Effect.Opacity(currImageNode, {from: 1.0, to: 0.0, duration: 0.5});			setTimeout("switchMe2()", 700);		}	}		}function switchMe() { 	var currHeight = Element.getHeight('stage');	$('stage').style.height = currHeight + 'px';	Element.hide(oldNode);	var newHeight = $(newNode).firstChild.getAttribute('height');	var newPercentage = (newHeight/currHeight) * 99;	new Effect.Scale('stage', newPercentage, {scaleX: false, duration: 0.5});	Effect.Appear(newNode, {duration: 2.5});	if (imageArray.length > 1)		Effect.Appear('arrows', {duration: 2.5});	else Effect.Fade('arrows', {durations: 2.5});}function switchMe2() {	var currHeight = Element.getHeight('stage');	$('stage').style.height = currHeight + 'px';	Element.hide(currImageNode);	var newHeight = $(nextImageNode).getAttribute('height');	var newPercentage = (newHeight/currHeight) * 99;	new Effect.Scale('stage', newPercentage, {scaleX: false, duration: 0.5});	Effect.Appear(nextImageNode, {duration: 2.5});}