function show_great(filename, width, height) {
var objImg=document.getElementById('greatphoto');
  if (!objImg) return false;

var src = objImg.src;
var fname = src.substring(src.lastIndexOf('/')+1,src.length);
var src = filename.substring(filename.lastIndexOf('/')+1,filename.length);

  if (fname==src) return false;
  objImg.src = 'i/0.gif';
  objImg.width=width;
  objImg.height=height;
  objImg.src = filename;

  objImg=document.getElementById('topbrd');
  if (objImg) objImg.width=width; 
  objImg=document.getElementById('btmbrd');
  if (objImg) objImg.width=width;
  objImg=document.getElementById('lftbrd');
  if (objImg) objImg.height=height;
  objImg=document.getElementById('rgtbrd');
  if (objImg) objImg.height=height;

  objTop=document.getElementById('spacer_top');
  if (objTop) {
    if (height==350) strH=1;
    if (height==320) strH=19;
    if (height==280) strH=39;
/*	if (width>height) {
	  strH=39;
	} else { strH=1; }
*/
	objTop.height=strH;
  }

  objBtm=document.getElementById('spacer_btm');
  if (objBtm) {
    if (height==350) strH=8;
    if (height==320) strH=20;
    if (height==280) strH=40;

/*	if (width>height) {
	  strH=40;
	} else { strH=8; }
*/
	objBtm.height=strH;
  }

}

function preload (path, name1,name2,name3,name4,name5,name6,name7) {
  var obj1= new Image(); obj1.src=path+name1;
  var obj2= new Image(); obj2.src=path+name2;
  var obj3= new Image(); obj3.src=path+name3;
  var obj4= new Image(); obj4.src=path+name4;
  var obj5= new Image(); obj5.src=path+name5;
  var obj6= new Image(); obj6.src=path+name6;
  var obj7= new Image(); obj7.src=path+name7;
}

function windowopen (filepath, width, height) {
 if (!width) width=455; if (!height) height=400;
 window.open(filepath, '_blank', 'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=no,width='+width+',height='+height);
}