// NOTE:  New Browser detection code, more effecient and allows Netscape 4.0
//        And the new IE 4.0 which now supports image arrays.
//
//  This code is now being used throughout the net, but this is the source
//  you should refer to for updates.  We're modifying it as the net changes.
//
//  Copyright 1996-97 Project Cool, Inc.  Used by the net, with permission but
//  we would appreciate it if you would give us credit in the source or a link
//  from your site. This statement must be included in the webpage.
//  http://www.projectcool.com
//
        browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))

 if ( browser) {
  imghome1 = new Image(); imghome1.src = "gfx/home1_.gif"; 
  imghome2 = new Image(); imghome2.src = "gfx/home2_.gif"; 
  imghome3 = new Image(); imghome3.src = "gfx/home3_.gif"; 
  imghome4 = new Image(); imghome4.src = "gfx/home4_.gif"; 
  imghome5 = new Image(); imghome5.src = "gfx/home5_.gif"; 
  imghome6 = new Image(); imghome6.src = "gfx/home6_.gif";
  }

function imgAct1(imgName) { if ( browser ) { document["home1"].src = eval(imgName + "home1.src"); }}
function imgAct2(imgName) { if ( browser ) { document["home2"].src = eval(imgName + "home2.src"); }}
function imgAct3(imgName) { if ( browser ) { document["home3"].src = eval(imgName + "home3.src"); }}
function imgAct4(imgName) { if ( browser ) { document["home4"].src = eval(imgName + "home4.src"); }}
function imgAct5(imgName) { if ( browser ) { document["home5"].src = eval(imgName + "home5.src"); }}
function imgAct6(imgName) { if ( browser ) { document["home6"].src = eval(imgName + "home6.src"); }}
function imgInact1(imgName) { if ( browser ) { document["home1"].src = "gfx/home1.gif"; }}
function imgInact2(imgName) { if ( browser ) { document["home2"].src = "gfx/home2.gif"; }}
function imgInact3(imgName) { if ( browser ) { document["home3"].src = "gfx/home3.gif"; }}
function imgInact4(imgName) { if ( browser ) { document["home4"].src = "gfx/home4.gif"; }}
function imgInact5(imgName) { if ( browser ) { document["home5"].src = "gfx/home5.gif"; }}
function imgInact6(imgName) { if ( browser ) { document["home6"].src = "gfx/home6.gif"; }}


function statusbartext(message) { window.status=message; }

function displayWindow1(url, width, height, left, top ) {
  var Win;
  Win = displayWindow.window.close();
  Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',resizable=0,scrollbars=no,menubar=no') ;
  Win = displayWindow.window.close();
}

function displayWindow_new(url, width, height, left, top) {
 window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',resizable=0,scrollbars=no,menubar=no') ;
}

function displayWindow(url, name)
{
var Win = window.open(url, name,"height=620,width=620,scrollbars=yes,resizable=yes") ;
}

function displayWindowBis(url, name)
{
var Win = window.open(url, name,"height=398,width=398,scrollbars=yes,resizable=yes") ;
}

function displayWindow2(url,name) 
{
var Win = window.open(url, name,"height=303,width=450") ; 
}
function displayWindow3(url,name) 
{
var Win = window.open(url, name,"height=450,width=320") ; 
}

function show_picture_scroll(pag,pic_w,pic_h){
 if(typeof pag!='string')pag=pag.href
 pic_l=(screen.width)?(screen.width-pic_w)/2:0
 pic_t=(screen.height)?(screen.height-pic_h)/2:0
 window.open(pag,'new','menubar=no, toolbar=no, location=no, scrollbars=yes, resizable=no, status=no,width='+pic_w+', height='+pic_h+', left='+pic_l+', top='+pic_t).focus()
 return false}
