/* first instance: click small img to make large img appear */
var state = 'none';
function showhide(elementRef) {

	if (state == 'block') {state = 'none';}
	if (state == 'none') {state = 'block';}

	// IE
	if (document.all) {eval("document.all." + elementRef + ".style.display = state");}
	// NS
	if (document.layers) {document.layers[elementRef].display = state;}
	// OTHERS
	if (document.getElementById && !document.all) { 
		element = document.getElementById(elementRef);
		element.style.display = state;
	}
	
}

/* second instance: click on large img to make it disappear (close x) */
var state2 = 'none';
function showhide2(elementRef2) {

	if (state2 == 'block') {state2 = 'none';}
	else {state2 = 'none';}
	
	//IS IE
	if (document.all) {eval( "document.all." + elementRef2 + ".style.display = state2");}
	//IS NETSCAPE
	if (document.layers) {document.layers[elementRef2].display = state2;}
	// OTHERS
	if (document.getElementById && !document.all) {
		element = document.getElementById(elementRef2);
		element.style.display = state2;
	}
}

