﻿/* DECO-FRUIT Javascript */

function redirectDropdown(object) {
   window.location.href = object.options[object.selectedIndex].value;
};


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

/*--- popup ---*/

  var myWindow = null;

  function closeMyWindow() {
    if (myWindow && !myWindow.closed) {
      myWindow.close();
      myWindow = null;
    }
  }


  function openMyWindow(url, width, height) {
    if (!window.open) return true;
    closeMyWindow();
    var x = (screen.width -width) >>1,
        y = (screen.height-height)>>1;
    myWindow = window.open(url,'popWin',
      'width='    + width +
      ',height='  + height +
      ',left='    + x +
      ',top='     + y +
      ',screenX=' + x +
      ',screenY=' + y +
	 /* ',menubar=1' +  */
      ',scrollbars=yes');
    if (!myWindow) return true;
    myWindow.focus();
    return false;
  }
