function winTiny(desktopURL){
        desktop =window.open(desktopURL,"name","toolbar=no,location=no,status=1,menubar=no,scrollbars=yes,width=400,height=200,resizable=yes");
        }
		
function winFwp(desktopURL){
        desktop =window.open(desktopURL,"name","toolbar=no,location=no,status=1,menubar=no,scrollbars=yes,width=340,height=260,resizable=yes");
        }
		
function winSm(desktopURL){
        desktop =window.open(desktopURL,"name","toolbar=no,location=no,status=1,menubar=no,scrollbars=yes,width=500,height=425,resizable=yes");
        }

function winMd(desktopURL){
        desktop =window.open(desktopURL,"name","toolbar=no,location=no,status=1,menubar=no,scrollbars=yes,width=620,height=630,resizable=no");
        }

function winLg(desktopURL){
        desktop =window.open(desktopURL,"name","toolbar=yes,location=no,status=yes,menubar=no,scrollbars=yes,width=800,height=605,resizable=yes,screenX=20,screenY=20");
        }
		
function winXlg(desktopURL){
        desktop =window.open(desktopURL,"name","toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,width=980,height=605,resizable=yes,screenX=20,screenY=20");
        }
		
function winEs(desktopURL){
        desktop =window.open(desktopURL,"name","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=400,height=490,resizable=no,screenX=20,screenY=20");
        }

function map1(desktopURL){
        desktop =window.open(desktopURL,"name","toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,width=445,height=415,resizable=no");
        }

function map2(desktopURL){
        desktop =window.open(desktopURL,"name","toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,width=737,height=367,resizable=no");
        }

function CloseWin()
{
window.top.close();
}
function PrintWin(){window.print()}

// Copyright 1999 - 2002 by Ray Stott, Pop-up Windows Script ver 2.0
// OK to use if this copyright is included
// Script is available at http://www.crays.com/jsc          

var popWin = null    // use this when referring to pop-up window
var winCount = 0
var winName = "popWin"
function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){
  var d_winLeft = 20  // default, pixels from screen left to window left
  var d_winTop = 20   // default, pixels from screen top to window top
  winName = "popWin" + winCount++ //unique name for each pop-up window
  closePopWin()           // close any previously opened pop-up window
  if (openPopWin.arguments.length >= 4)  // any additional features? 
    winFeatures = "," + winFeatures
  else 
    winFeatures = "" 
  if (openPopWin.arguments.length == 6)  // location specified
    winFeatures += getLocation(winWidth, winHeight, winLeft, winTop)
  else
    winFeatures += getLocation(winWidth, winHeight, d_winLeft, d_winTop)
  popWin = window.open(winURL, winName, "width=" + winWidth 
           + ",height=" + winHeight + winFeatures)
  }
function closePopWin(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(popWin != null) if(!popWin.closed) popWin.close() 
  }
function getLocation(winWidth, winHeight, winLeft, winTop){
  return ""
  }

// for Netscape 4+ and IE 4+

function getLocation(winWidth, winHeight, winLeft, winTop){
  var winLocation = ""
  if (winLeft < 0)
    winLeft = screen.width - winWidth + winLeft
  if (winTop < 0)
    winTop = screen.height - winHeight + winTop
  if (winTop == "cen")
    winTop = (screen.height - winHeight)/2 - 20
  if (winLeft == "cen")
    winLeft = (screen.width - winWidth)/2
  if (winLeft>0 & winTop>0)
    winLocation =  ",screenX=" + winLeft + ",left=" + winLeft	
                + ",screenY=" + winTop + ",top=" + winTop
  else
    winLocation = ""
  return winLocation
  }
  

	
	//this portion of code could go in a .js include
//variable declarations
var fullurl, arrurl;
var one;
var two;
var three;
var four;
var five;
var six;
var seven;
var eight;
var nine;
//get full page URL
fullurl = document.URL;
//split the url into an array of strings using "/" as the delimiter
arrurl = fullurl.split("/");
//assign the country variable from the url array
one = arrurl[2];
two = arrurl[3];
three = arrurl[4];
four = arrurl[5];
five = arrurl[6];
six = arrurl[7];
seven = arrurl[8];
eight = arrurl[9];
nine = arrurl[10];

//****debug (un comment to see results)
//alert("One: "+one+"\nTwo: "+two+"\nThree: "+three+"\nFour: "+four+"\nFive: "+five+"\nSix: "+six+"\nSeven: "+seven+"\nEight: "+eight+"\nNine: "+nine);
//****


//google - yellow text fields on form fixer

  if(window.attachEvent)
    window.attachEvent("onload",restoreStyles);

  function restoreStyles(){
    inputList = document.getElementsByTagName("INPUT");
    for(i=0;i<inputList.length;i++)
      inputList[i].style.backgroundColor = "";
    selectList = document.getElementsByTagName("SELECT");
    for(i=0;i<selectList.length;i++)
      selectList[i].style.backgroundColor = "";
  }
