function getAppVersion() 
{ 
   appname= navigator.appName; 
   appversion = navigator.appVersion; 
   majorver = appversion.substring(0, 1); 
   if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1; 
   if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1; 
   return 0; 
} 

function chgImg(myNum, myName)  
{ 
   if (getAppVersion())  
   { 
       document[myName].src = img[myNum].src; 
   } 
} 
imgsrc = new Array(); 
imgsrc[0] = "./imagens/home2.gif"; 
imgsrc[1] = "./imagens/home2_hoover.gif"; 
if (getAppVersion()) 
{ 
   img = new Array(); 
   for (i = 0; i < imgsrc.length; i++) 
   { 
      img[i] = new Image(); 
      img[i].src = imgsrc[i]; 
   } 
}

// Begin Quick Preview 
timeout =60; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
baseurl = "./";
function fotoWindow(URL, WIDTH, HEIGHT, TITLE) {
var winl = (screen.width - WIDTH) / 2;
var wint = (screen.height - HEIGHT) / 2;
windowprops = "left=" + winl + ",top=" + wint + ",width=" + (WIDTH+20) + ",height=" + (HEIGHT+20);
text = "<html><head><title>" + TITLE + "</title></head><body bgcolor='white'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
text += "><center><img src=\"" + baseurl + URL + "\" width=" + WIDTH + " height=" + HEIGHT + "></center></body></html>";
winame = window.open("",TITLE, windowprops);
winame.focus();
winame.document.open();
winame.document.write(text);
winame.document.close();
}
//  End


// Menu DropDown
function dropMenu(form)
{
var uid = new Date().getTime(); // unique ID to name popup
var myindex=form.sel_URL.selectedIndex; // number of selection
str = new String(form.sel_URL.options[myindex].value); // value of selection
strarray = str.split(/\,/); // splits value on a comma

if (strarray[0] == "main") // loads in frames
{
parent.frames['main'].location = strarray[1];
parent.frames['main'].focus();
}

if (strarray[0] == "_top") // loads on window top
parent.location.href = strarray[1];

if (strarray[0] == "_blank") // loads in new page
w=window.open(strarray[1], '',"toolbar=1,location=1,status=1,menubar=1,scrollbars=1, resizable=1");

myindex = 0; // reset pulldown menu
setTimeout('document.menu.sel_URL.selectedIndex=0', 5000);
}
// End

