// Xander Zerge web-site engine script. Copyright 2004-2005 by Xander Zerge. All rights reserved.
// Usage of any kind of this source code without written permission from Xander Zerge is prohibited.

// process jump menu selector
function xzJumpMenu(o) {
	eval("parent.location='"+o.options[o.selectedIndex].value+"'");
	o.selectedIndex=0;
}
// show popup image for screenshot
function openPopup(addr,w,h) {
	open(addr,'_blank','height='+h+',width='+w+',location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,left=50,top=50');
}
// process MouseIn/MouseOut messages for image, pass image as parameter.
// image file naming form: *_n.EXT: normal image, *_h.EXT: hover image, *_d.EXT: active pressed image
function xzImg(o,ext) {
	s=o.src;
	e=s.substr(s.length-4,4);
	o.src=s.substr(0,s.length-5)+ext+e;
}
// preload images
function preloadImages() {
  var args = preloadImages.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }	
}
// redirect page to homepage
function redirectHome()
{
	window.location.href="../";
}