   var shownElements = new Array();
   shownElements['countries'] = false;
   shownElements['pages'] = false;
   function expand(w) {
      var e = (document.getElementById(w + '_dropdown'));
      if (!shownElements[w]) {
         e.className = 'vis';
      } else {
         e.className = 'invis';
      }
      if (w=='pages') { hideS('countries'); } 
      if (w=='countries') { hideS('pages'); } 
      shownElements[w] = !shownElements[w];
   }

   function hideS(w) { 
      var c = document.getElementById(w+'_dropdown'); 
      c.className = 'invis'; 
      shownElements[w] = false;
   }

   function hideAll() {
      hideS('countries');
      hideS('pages');
   }

   document.onclick = function(event) {
      if (event == null && window.event) event = window.event; 
      if(event.target) {
         if (event.target.id == 'pages' || event.target.id == 'countries') {
         } else {
            hideAll();
         }
      } else {
         if (event.srcElement) {
            if (event.srcElement.id == 'pages' || event.srcElement.id == 'countries') {
            } else {
               hideAll();
            }
         }
      }
   }
var activeTab = document.getElementById('p-product-tab-highlights');
function ptabSwitchTo(id) {
   var tc = document.getElementById(id);
   if (null != activeTab) {
      activeTab.className = 'p-product-tab-inactive';
   }
   if (null != tc) {
      tc.className = 'p-product-tab-active';
      activeTab = tc;
   }
}

function openWindow(url, width, height, scrollbars, wname,
top, left) {
var scrW = window.screen.availWidth;
var scrH = window.screen.availHeight;
var w, h, sb, wnm;
if (!(w = width)) w = 640;
if (!(h = height)) h = 480;
if (!(sb = scrollbars)) sb = '1';
var l = (left ? left : Math.round((scrW - w) / 2));
var t = (top ? top : Math.round((scrH - h) / 2) - 20);
if (!(wnm = wname)) wnm = '_blank';

var sFeatures = "toolbar=0"
+ ", directories=0"
+ ", status=0"
+ ", menubar=0"
+ (", scrollbars=" + sb)
+ ", resizable=0"
+ (", width=" + w)
+ (", height=" + h)
+ (", left=" + l)
+ (", top=" + t);

var newWin = window.open(url, wnm, sFeatures);
newWin.status = "";
newWin.focus();
}
