// JavaScript Document
function openImage(imagename){
  myimage = new Image();
  myimage.src = imagename;
//  var h = document.images[imagename].height + 20;
//  var w = document.images[imagename].width + 10;
  mywin = window.open( myimage.src, '_blank', 'menubar=no,tolbar=no, status=no, scrollbars=no');
  h = myimage.height;
  w = myimage.width;
  mywin.resizeTo(w + 32 ,h + 64);
  return false;
}

function loadImage(type, imgID, imgPath){
	if(type == 'g'){
//		oldHeight = changeHeight = document.getElementById('imgt'+imgID).height;
//		document.getElementById('imgt'+imgID).src = 'images/gamma/g' + imgID + 't.jpg';
		document.getElementById('imgt'+imgID).src = imgPath;
//		changeHeight = document.getElementById('imgt'+imgID).height - oldHeight;
	}

	if(type == 'd'){
//		oldHeight = document.getElementById('img'+imgID).height;
//		document.getElementById('img'+imgID).src = 'images/gamma/d' + imgID + '.jpg';
		document.getElementById('img'+imgID).src = imgPath;
//		changeHeight = document.getElementById('img'+imgID).height - oldHeight;
	}

/*	Main = document.getElementById('main');
	Content = document.getElementById('main-content');
	Main.style.height = Main.offsetHeight + changeHeight + 'px';	
	Content.style.height = Content.offsetHeight + changeHeight + 'px';
*/
	return false;
}


