// Rollovers
function imgRollover(id,img,state,type){
  document.images[id].src = "/images/" + img + "_" + state + "." + type;
}

 function newWindow(theImage) {
    var W = theImage.width;
    var H = theImage.height;

    var X = (screen.width/2)-(W/2);
    var Y = (screen.height/2)-(H/2);

    //alert(W+","+H+","+X+","+Y);

    var winPref = "width=" + W + ",height=" + H
                + ",innerWidth=" + W + ",innerHeight=" + H
                + ",left=" + X + ",top=" + Y
                + ",screenX=" + X + ",screenY=" + Y
                + ",dependent=yes,titlebar=no,scrollbars=no,resizable=no";

    var myWin = top.open( theImage.src, "myWin", winPref );

    if ( !myWin.opener )
        myWin.opener = top;

    myWin.focus();
    return false;
 }
 
 function openWin(id,url,width,height) {
    var win = new Window(id, {className: "alphacube", title: "", width:width, height:height, zIndex:1000, opacity:1, resizable: true, url: url});
    win.setDestroyOnClose();
	win.showCenter(true);
}