function LoadGallery(pictureName,imageFile,titleCaption,captionText)
{
  if (document.all)
  	{
	document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
	document.getElementById(pictureName).filters.blendTrans.Apply();
 	}
  document.getElementById(pictureName).src = imageFile;
  if (document.all)
 	{
 	document.getElementById(pictureName).filters.blendTrans.Play();
	}
}

function popupWindowRates(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=250,screenX=230,screenY=150,top=150,left=230')
}

function popupWindowInfo(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=280,screenX=230,screenY=150,top=150,left=230')
}

var i=0;
function resize() {
  if (navigator.appName == 'Netscape') i=10;
  if (document.images[0]) {
  imgHeight = document.images[0].height+45-i;
  imgWidth = document.images[0].width+30;
  var height = screen.height;
  var width = screen.width;
  var leftpos = width / 2 - imgWidth / 2;
  var toppos = height / 2 - imgHeight / 2;
  window.moveTo(leftpos, toppos);
  window.resizeTo(imgWidth, imgHeight);
  }
  self.focus();
}


