//*-----------------------------------------------------------------------*//
//*- Special effects for the navigation                                  -*//
//*-                                                                     -*//
//*- Programmed by : Ingo Hellwege                                       -*//
//*- Programmed for: WebMen Internet GmbH                                -*//
//*- Last modified : 04.01.2002                                          -*//
//*-----------------------------------------------------------------------*//



//*-----------------------------------------------------------------------*//
//*- Init                                                                -*//
//*-                                                                     -*//
//*-  - setting up vars and parameters (number of pics, ...)             -*//
//*-  - setting up alle needed arrays                                    -*//
//*-  - filling the array fields with pictures be using the names        -*//
//*-    from the liste "Name[x]" by preloading them into the cache       -*//
//*-----------------------------------------------------------------------*//
var msie      = navigator.appName != "Netscape";
if ( msie ){
 DefHeader   = "document.all";
 DefSichtbar = ".style.visibility";
 DefLeft     = ".style.pixelLeft";
 DefTop      = ".style.pixelTop";
 DefZeigen   = "visible";
 DefUnzeigen = "hidden";
}else{
 DefHeader   = "document.layers";
 DefSichtbar = ".visibility";
 DefLeft     = ".left";
 DefTop      = ".top";
 DefZeigen   = "show";
 DefUnzeigen = "hide";
}
var PicNumber    = 7;
var Pic_on       = new Array();
var Pic_off      = new Array();
var Name         = new Array();
Name[1]  = "btn_home";
Name[2]  = "btn_veranstaltungen";
Name[3]  = "btn_veroeffentlichungen";
Name[4]  = "btn_wirueberuns";
Name[5]  = "btn_links";
Name[6]  = "btn_kontakt";
Name[7]  = "btn_impressum";


for (var x = 1; x < PicNumber+1; x++){
 Pic_on[x] = new Image();
 eval('Pic_on['+x+'].src = "images/'+Name[x]+'_over.gif"');
 Pic_off[x] = new Image();
 eval('Pic_off['+x+'].src = "images/'+Name[x]+'_off.gif"');
}



//*-----------------------------------------------------------------------*//
//*- function switch_on()                                                -*//
//*-                                                                     -*//
//*-  - switching picture with name "Name" to the picture from the       -*//
//*     array with the number "Number".                                  -*//
//*-  - but not the one marked with the number "MarkerNumber"            -*//
//*-----------------------------------------------------------------------*//
function switch_on(Number){
 eval(DefHeader+'["lay'+Number+'"].document.images["Btn'+Number+'"].src = Pic_on[Number].src');
}


//*-----------------------------------------------------------------------*//
//*- function switch_off()                                               -*//
//*-                                                                     -*//
//*-  - switching picture with name "Name" back to the picture from      -*//
//*-    the array with the number "Number".                              -*//
//*-  - but not the one marked with the number "MarkerNumber"            -*//
//*-----------------------------------------------------------------------*//
function switch_off(Number){
 eval(DefHeader+'["lay'+Number+'"].document.images["Btn'+Number+'"].src = Pic_off[Number].src');
}



