<!--
function createRequestObject(){
	if (navigator.appName == 'Microsoft Internet Explorer') {
		return new ActiveXObject('Microsoft.XMLHTTP');
	}	else {
		return new XMLHttpRequest();
	}
}

function ajax(obj, source){
 var http = createRequestObject();
 http.open('get', source);

 http.onreadystatechange = function(){
 	if (http.readyState == 4) {
 		document.getElementById(obj).innerHTML = http.responseText;
 	}
 }
	http.send(null);
}

function resizeWindow(){
 nWidth  = document.images[0].width;
 nHeight = document.images[0].height;

 if (window.innerWidth) {
  window.innerWidth = nWidth;
  window.innerHeight = nHeight;
 }else if(document.all){
  window.resizeTo(nWidth, nHeight);
  nWidth  -= (document.body.clientWidth - nWidth);
  nHeight -= (document.body.clientHeight - nHeight);
  window.resizeTo(nWidth, nHeight);
 }
}

function toggleDiv(id, selected, select){
 var divDiv = document.getElementById(id);
 if(selected == select || selected == true){
  divDiv.style.display = "block";
 }else{
  divDiv.style.display = "none";  
 }
}

function ableElement(id, selected, select){
 if(selected == select){
  document.getElementById(id).disabled              = false;
  document.getElementById(id).style.backgroundColor = "FFFFFF";
 }else{
  document.getElementById(id).disabled              = true;
  document.getElementById(id).style.backgroundColor = "D4D0C8";
 }
}

function switchPhoto(obj){
 document.getElementById('photo').src = obj.href;
 document.getElementById('photo').alt = obj.firstChild.getAttribute('alt');
 
 document.getElementById('zoom').href = obj.href.replace('large', 'extra_large');
 
}
// -->