<!-- Hide the script for older browsers

//------------------------------------------------------------------------------    

function checkBrowser() {       
//purpose:  test the version of the browser for the following script

  if (navigator.appVersion.indexOf("(X11") != -1 || 
    navigator.appVersion.indexOf("(Mac") != -1) return 1;
  else return 0;
}

//------------------------------------------------------------------------------    

// declare and initialise the global tracker variables for 
// the description window

stat = 0;
dow = 0;

function showDesc(url, dow, winwidth, winheight) {
// purpose:  popup a separate window for the description of each produce
//           keep track if window is open and close in case it is
 


  // check the state of the popup window, if it is not open then pop it up
  if (stat == 0) {
    description = window.open(url, 'descr', 'width=' + winwidth + ',height=' + winheight);
    description.focus();
    stat = dow;
    if (checkBrowser() == 1 ) window.open(url, 'descr');
  } else {
    // the window was open, therefore close it
    description.close();
    // if a new one is to be displayed then open the corresponding page
    if (stat != dow) { 
      stat = dow;
      description=window.open(url, 'descr', 'width=' + winwidth + ',height=' + winheight);
      description.focus();
      if (checkBrowser() == 1 ) window.open(url, 'descr');
    } else {
      stat = 0;
    }
  }
}

//==============================================================================
    
//end hide for older browsers -->
