/* Definition der Buttons */


// Navigation //
home_on=new Image();
home_on.src="../images/buttons/home_on.gif";
home_off=new Image();
home_off.src="../images/buttons/home.gif";
home_akt=new Image();
home_akt.src="../images/buttons/home_akt.gif";

advertising_on=new Image();
advertising_on.src="../images/buttons/advertising_on.gif";
advertising_off=new Image();
advertising_off.src="../images/buttons/advertising.gif";
advertising_akt=new Image();
advertising_akt.src="../images/buttons/advertising_akt.gif";

beach_on=new Image();
beach_on.src="../images/buttons/beach_on.gif";
beach_off=new Image();
beach_off.src="../images/buttons/beach.gif";
beach_akt=new Image();
beach_akt.src="../images/buttons/beach_akt.gif";

beauty_on=new Image();
beauty_on.src="../images/buttons/beauty_on.gif";
beauty_off=new Image();
beauty_off.src="../images/buttons/beauty.gif";
beauty_akt=new Image();
beauty_akt.src="../images/buttons/beauty_akt.gif";

body_on=new Image();
body_on.src="../images/buttons/body_on.gif";
body_off=new Image();
body_off.src="../images/buttons/body.gif";
body_akt=new Image();
body_akt.src="../images/buttons/body_akt.gif";

cover_on=new Image();
cover_on.src="../images/buttons/cover_on.gif";
cover_off=new Image();
cover_off.src="../images/buttons/cover.gif";
cover_akt=new Image();
cover_akt.src="../images/buttons/cover_akt.gif";

fashion_on=new Image();
fashion_on.src="../images/buttons/fashion_on.gif";
fashion_off=new Image();
fashion_off.src="../images/buttons/fashion.gif";
fashion_akt=new Image();
fashion_akt.src="../images/buttons/fashion_akt.gif";

lifestyle_on=new Image();
lifestyle_on.src="../images/buttons/lifestyle_on.gif";
lifestyle_off=new Image();
lifestyle_off.src="../images/buttons/lifestyle.gif";
lifestyle_akt=new Image();
lifestyle_akt.src="../images/buttons/lifestyle_akt.gif";

sports_on=new Image();
sports_on.src="../images/buttons/sports_on.gif";
sports_off=new Image();
sports_off.src="../images/buttons/sports.gif";
sports_akt=new Image();
sports_akt.src="../images/buttons/sports_akt.gif";

contact_on=new Image();
contact_on.src="../images/buttons/contact_on.gif";
contact_off=new Image();
contact_off.src="../images/buttons/contact.gif";
contact_akt=new Image();
contact_akt.src="../images/buttons/contact_akt.gif";


// Funktion zum wechseln der Bilder //
// function wechsel(im,io) { document.images[im].src=eval(io+".src"); }
function wechsel(imgID,imgObjName) { document.images[imgID].src = eval(imgObjName + ".src") }

/*
Beispiel Fenster zentriert, ohne scroll, groesse fest): 
<a href="javascript:PopUp('beispiel.htm','fenstername','450','330','1','0','0','0','0')">Beispiel</a>

Beispiel Fenster positioniert(X;Y), mit scroll: 
<a href="javascript:PopUp('beispiel.htm','fenstername','450','330','0','0','0','10','10')">Beispiel</a>

javascript:PopUp('Ziel','fenstername','breite','hoehe','mittig','goresse','scroll','linke position','rechte position')
*/
function PopUp(url, name, width, height, center, resize, scroll, posleft, postop) {
    if (posleft != 0) { X = posleft }
    if (postop != 0) { Y = postop  }

    if (!scroll) { scroll = 1 }
    if (!resize) { resize = 1 }

    if (scroll != 0) { scroll = 1 }

    if ((parseInt (navigator.appVersion) >= 4 ) && center == 1) {
    X = (screen.width  - width ) / 2;
    Y = (screen.height - height) / 2;  }

    var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}


