text=new Array();

text[1]="<b><i>permaster</i></b> &reg;<br>backwash drinking water<br>fine filters";

text[2]="<b><i>permaster</i></b> &reg; <b>sanus</b><br>carbon block filter";

text[3]="<b>Vital Premium</b><br>ultra-fine filtration<br>and vitalisation";

text[4]="<b><i>permasolvent</i></b> &reg; <b>aktiv</b><br>corrosion protection";

text[5]="<b><i>permasolvent</i></b> &reg; <b>magno</b><br>against magnetite sludge<br>in heating water";

text[6]="<b><i>permasolvent</i></b> &reg; <b>primus</b><br>lime protection";

text[7]="<b><i>ecomaster</i></b><br>demand driven circulation<br>pump control";

text[8]="<b><i>permasoft</i></b><br>demineralizing cartridge for<br>heating water treatment";

var x      = 0;
var xx     = -190;           // plus nach rechts - minus nach links
var yy     = -30;            // plus nach unten
var y      = 0;
var showit =  0;

    // Browser
    // ----------------------------------
    ns = (document.layers)? true:false
    ie4 = (document.all)? true:false
    ie5 = false;
    if (ie4) {
            if (navigator.userAgent.indexOf('MSIE 5')>0) {
                    ie5 = true;
            }
    }

   // IE auf MAC keine Fenster

        if ( navigator.platform.substring(0,3).toUpperCase() == "MAC" && (ie4 || ie5) )
        {
           mac = true;
           } else {
           mac = false;
           }




    if ( (ns) || (ie4) ) {
            if (ns) over = document.popDiv
            if (ie4) over = popDiv.style
            document.onmousemove = mouseMove
            if (ns) document.captureEvents(Event.MOUSEMOVE)
    }


    function wtl(txt) {
            if (ns) {
                    var lll = document.popDiv.document
                    lll.write(txt)
                    lll.close()
            } else {
                    if (ie4) document.all["popDiv"].innerHTML = txt
            }
    }


    function show(obj) {
            if (ns) obj.visibility = "show"
            else if (ie4) obj.visibility = "visible"
   }

    function hide(obj) {
            if (ns) obj.visibility = "hide"
            else if (ie4) obj.visibility = "hidden"
    }

    function moveTo(obj,lx,ly) {
            obj.left = lx
            obj.top = ly
    }


    function hideit() {
            if (mac) {return;}

                if ( (ns) || (ie4) )  {
                    showit = 0;
                    hide(over);
            }
    }


    // Popupfenster
    // ---------------------
    function fenst(text) {
            txt = "<TABLE><TR><TD class=script><SPAN>"+text+"<SPAN></TD></TR></TABLE>"
               wtl(txt);
            display_it();
    }


        function zeig(i) {
                if (mac) {return;}
                fenst(text[i]);
    }


    // anzeigen
    // ---------------
    function display_it() {
            if ( (ns) || (ie4) ) {
                    if (showit == 0)         {
                            moveTo(over,x+xx,y+yy);
                            show(over);
                            showit = 1;
                    }
            }
    }


    // mousemoves
    // -----------------------
    function mouseMove(e) {
            if (ns) {x=e.pageX; y=e.pageY;}
            if (ie4) {x=event.x; y=event.y;}
            if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
            if (showit) {
                    moveTo(over,x+xx,y+yy);
            }
    }