function openImageWindow(imagePath,imgWidth,imgHeight)
{
	var actualHeight = imgHeight+20;
	var actualWidth = imgWidth+20;
	var wndOptions = "height=" + actualHeight + ",width=" + actualWidth + ",left=10,top=10";
	wndName = "wpcc_img_window"; + actualWidth + actualHeight;
  var newWindow = window.open(imagePath,wndName,wndOptions);
	newWindow.focus();
}

// Initialization for transMenus
function initTransMenus()
{
  if (TransMenu.isSupported())
  {
  	TransMenu.initialize();

  	// hook all the highlight swapping of the main toolbar to menu activation/deactivation
  	// instead of simple rollover to get the effect where the button stays hightlit until
  	// the menu is closed.
  	/*menu1.onactivate = function() { document.getElementById("home").className = "hover"; };
  	menu1.ondeactivate = function() { document.getElementById("home").className = ""; };*/

  	menu2.onactivate = function() { document.getElementById("news").className = "hover"; };
  	menu2.ondeactivate = function() { document.getElementById("news").className = ""; };

  	/*menu3.onactivate = function() { document.getElementById("results").className = "hover"; };
  	menu3.ondeactivate = function() { document.getElementById("results").className = ""; };

  	menu4.onactivate = function() { document.getElementById("selection").className = "hover"; };
  	menu4.ondeactivate = function() { document.getElementById("selection").className = ""; };*/
  	
  	menu4.onactivate = function() { document.getElementById("statistics").className = "hover"; };
  	menu4.ondeactivate = function() { document.getElementById("statistics").className = ""; };

  	menu5.onactivate = function() { document.getElementById("youth").className = "hover"; };
  	menu5.ondeactivate = function() { document.getElementById("youth").className = ""; };

  	/*menu6.onactivate = function() { document.getElementById("history").className = "hover"; };
  	menu6.ondeactivate = function() { document.getElementById("history").className = ""; };

  	menu7.onactivate = function() { document.getElementById("findus").className = "hover"; };
  	menu7.ondeactivate = function() { document.getElementById("findus").className = ""; };

  	menu8.onactivate = function() { document.getElementById("contact").className = "hover"; };
  	menu8.ondeactivate = function() { document.getElementById("contact").className = ""; };*/

  	document.getElementById("home").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("home").onmouseout = function() { this.className = ""; }

  	document.getElementById("fixtures").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("fixtures").onmouseout = function() { this.className = ""; }

    document.getElementById("results").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("results").onmouseout = function() { this.className = ""; }

  	document.getElementById("selection").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
    }
  	document.getElementById("selection").onmouseout = function() { this.className = ""; }
  	
  	document.getElementById("gallery").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("gallery").onmouseout = function() { this.className = ""; }

  	document.getElementById("history").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("history").onmouseout = function() { this.className = ""; }

  	document.getElementById("findus").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("findus").onmouseout = function() { this.className = ""; }

  	document.getElementById("contact").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("contact").onmouseout = function() { this.className = ""; }
  	
  	document.getElementById("sponsors").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("sponsors").onmouseout = function() { this.className = ""; }
  	
  	document.getElementById("links").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("links").onmouseout = function() { this.className = ""; }
  	
  	document.getElementById("settings").onmouseover = function() {
  		ms.hideCurrent();
  		this.className = "hover";
  	}
  	document.getElementById("settings").onmouseout = function() { this.className = ""; }
  }
}
