/*style.js
*Inhalt: CSS-Regeln f&uuml;r behaviour
*Letzte Aenderung am: 22.10.07
*Art:
*/
var myrules = {
// Regel fuer SPAN-Element falls es sich im A-Element befindet
        '#navigation a' : function(el){
        var i =(Browser.IE)?0:1;
                el.onmouseover = function(){
               // alert(this.childNodes[i].nodeName);
                if(this.childNodes.length >1) {
                  this.childNodes[i].className = "hover";
                   // alert(this.childNodes[i].className);
                 new Effect.BlindDown(this.childNodes[i]);
               }
                };
                el.onmouseout = function(){
                   if(this.childNodes.length >1) {
                       //   new  Effect.Fade(this.childNodes[i]);
                         this.childNodes[i].className = "";
                   }
                }
        },
// nach Seitenanfang - Grafik tauschen
        '#up' : function (el) {
                 el.onmouseover = function () {
                                this.src='grafiken/up_neg.jpg';
                };
                el.onmouseout = function () {
                               this.src='grafiken/up.jpg';
                };
                el.onclick =function () {
                            window.location.href = "#oben";
                }
        },
// Seite drucken - Grafik tauschen
        '#pr' : function (el) {
                el.onmouseover = function () {
                             this.src='grafiken/print_gr_neg.jpg';
                };
                el.onmouseout = function () {
                             this.src='grafiken/print.jpg';
                };
                el.onclick = function () {
                            print();
                }

        },
// Seite drucken - Grafik tauschen
        '#prt' : function (el) {
                el.onmouseover = function () {
                             this.src='grafiken/print_neg.jpg';
                };
                el.onmouseout = function () {
                             this.src='grafiken/print_kl.jpg';
                };
                el.onclick = function () {
                            print();
                }

        },
// Startseite  - Grafik tauschen
        '#home' : function (el) {
                el.onmouseover = function () {
                             this.src='grafiken/home_neg.jpg';
                };
                el.onmouseout = function () {
                             this.src='grafiken/home.jpg';

                };
                el.onclick = function () {
                             location.href='index.html';
                }
        },
// Grafiken der Listpunkte tauschen
        '#node a' : function (el) {
                      el.onmouseover = function () {
                            this.className = "mouseover";
                            this.parentNode.className ="invert";
                      };
                      el.onmouseout = function () {
                            this.className = "";
                            this.parentNode.className ="";
                }
        }
};

Behaviour.register(myrules);