// navigationtop.js für www.hs-designteam.de © 07-2005 Hartmut Schneider hs designteam
// created 02.07.2005 last update 02.07.2005
// Hauptnavigation oben Button RollOver
// für alle Seiten im Seitenkopf
// Pfad: root (index.html)

/* testen Browserkompatibiltaet */
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3 ||
browserName == "Microsoft Internet Explorer" && browserVer >= 4)
compatible = "yes";
else compatible = "no";

/* preloading image link1 */
link1on = new Image;
link1on.src = "grafikkopf/home2.gif"; /* MouseOver */
link1off = new Image;
link1off.src = "grafikkopf/home1.gif"; /* Normal */

/* preloading image link2 */
link2on = new Image;
link2on.src = "grafikkopf/designteam2.gif"; /* MouseOver */
link2off = new Image;
link2off.src = "grafikkopf/designteam1.gif"; /* Normal */

/* preloading image link3 */
link3on = new Image;
link3on.src = "grafikkopf/webdesign2.gif"; /* MouseOver */
link3off = new Image;
link3off.src = "grafikkopf/webdesign1.gif"; /* Normal */

/* preloading image link4 */
link4on = new Image;
link4on.src = "grafikkopf/webservice2.gif"; /* MouseOver */
link4off = new Image;
link4off.src = "grafikkopf/webservice1.gif"; /* Normal */

/* preloading image link5 */
link5on = new Image;
link5on.src = "grafikkopf/referenzen2.gif"; /* MouseOver */
link5off = new Image;
link5off.src = "grafikkopf/referenzen1.gif"; /* Normal */

/* preloading image link6 */
link6on = new Image;
link6on.src = "grafikkopf/kontakt2.gif"; /* MouseOver */
link6off = new Image;
link6off.src = "grafikkopf/kontakt1.gif"; /* Normal */

/* preloading image link7 */
link7on = new Image;
link7on.src = "grafikkopf/impressum2.gif"; /* MouseOver */
link7off = new Image;
link7off.src = "grafikkopf/impressum1.gif"; /* Normal */

/* preloading image link7 */
link8on = new Image;
link8on.src = "grafikkopf/sitemap2.gif"; /* MouseOver */
link8off = new Image;
link8off.src = "grafikkopf/sitemap1.gif"; /* Normal */

/* funktion RollOver */
function img_act(imgName) {
if (compatible == "yes") {
imgOn = eval(imgName + "on.src");
document [imgName].src = imgOn;
}
}

function img_inact(imgName) {
if (compatible == "yes") {
imgOff = eval(imgName + "off.src");
document [imgName].src = imgOff;
}
}

