addEvent( window, 'load', load ); var popID; var tID; var flash; function load() { inMenu = false; body = document.getElementsByTagName( "body" )[0]; last = null; if( getNode( "m2" ) == null ) return; var m2 = new MenuP( getNode( "m2" )); m2.add( new Menu( "O firmie Finestra", "ofirmie.php" ) ); m2.add( new Menu( "Realizacje", "ofirmie.php?r=realizacje" ) ); m2.add( new Menu( "Certyfikaty", "ofirmie.php?r=certyfikaty" ) ); m2.add( new Menu( "Dystrybucja", "ofirmie.php?r=dystrybucja" ) ); m2.create(); if( getNode( "m3" ) == null ) return; var m3 = new MenuP( getNode( "m3" )); m3.add( new Menu( "Aluplast - Ideal 2000", "oknapcv.php?r=ideal2000" ) ); m3.add( new Menu( "Aluplast - Ideal 3000", "oknapcv.php?r=ideal3000" ) ); m3.add( new Menu( "Aluplast - Ideal 4000", "oknapcv.php?r=ideal4000" ) ); m3.add( new Menu( "Aluplast - Ideal 5000", "oknapcv.php?r=ideal5000" ) ); m3.add( new Menu( "Aluplast - Ideal 6000", "oknapcv.php?r=ideal6000" ) ); m3.add( new Menu( "Roplasto 6001", "oknapcv.php?r=roplasto6001" ) ); m3.add( new Menu( "Roplasto 7001", "oknapcv.php?r=roplasto7001" ) ); m3.create(); if( getNode( "m15" ) == null ) return; var m15 = new MenuP( getNode( "m15" )); m15.add( new Menu( "Konstrukcje aluminiowe - METALPLAST", "konstrukcjealuminiowe.php?r=konstrukcjealuminiowe" ) ); m15.add( new Menu( "Systemy okienno-drzwiowe", "konstrukcjealuminiowe.php?r=systemyokiennodrzwiowe" ) ); m15.add( new Menu( "Systemy fasadowe", "konstrukcjealuminiowe.php?r=systemyfasadowe" ) ); m15.add( new Menu( "Pozostałe systemy", "konstrukcjealuminiowe.php?r=pozostalesystemy" ) ); m15.create(); if( getNode( "m19" ) == null ) return; var m19 = new MenuP( getNode( "m19" )); m19.add( new Menu( "Szyby ciepłochronne Eurotherm", "szyby.php?r=eurotherm" ) ); m19.add( new Menu( "Super szyby ciepłochronne Extratherm", "szyby.php?r=extratherm" ) ); m19.add( new Menu( "Szyby bezpieczne antywłamaniowe Contratherm i Multitherm", "szyby.php?r=contratherm_multitherm" ) ); m19.add( new Menu( "Szyby dźwiękochłonne Fonotherm", "szyby.php?r=fonotherm" ) ); m19.add( new Menu( "Szyby przeciwsłoneczne Climatherm i Reflectotherm", "szyby.php?r=climatherm_reflectotherm" ) ); m19.add( new Menu( "Szyby ornamentowe Decotherm", "szyby.php?r=decotherm" ) ); m19.add( new Menu( "Szyby ze szprosami", "szyby.php?r=zeszprosami" ) ); m19.add( new Menu( "Oszklenia strukturalne", "szyby.php?r=oszkleniastrukturalne" ) ); m19.create(); if( getNode( "m28" ) == null ) return; var m28 = new MenuP( getNode( "m28" )); m28.add( new Menu( "Technika okienna", "okucia.php?r=technikaokienna" ) ); m28.add( new Menu( "Technika drzwiowa", "okucia.php?r=technikadrzwiowa" ) ); m28.create(); } function MenuP ( node ) { this.node = node; this.menuItems = new Array(); MenuP.prototype.add = function( menuItem ) { this.menuItems[ this.menuItems.length ] = menuItem; } MenuP.prototype.create = function( ) { var dNode = document.createElement( "div" ); dNode.className = "jsMenu"; var str = "_" + this.node.id; dNode.setAttribute( "id", str ); var w = this.node.offsetWidth; dNode.style.width = w > 160 ? w+"px" : "160px"; dNode.style.top = ( this.node.offsetTop + this.node.offsetHeight ) + "px" ; dNode.style.left = (this.node.offsetLeft) + "px"; addEvent( this.node, "mouseover", function() { showMenuInTime(str, 150) } ); addEvent( this.node, "mouseout", function() { setInMenu(false) } ); dNode.setAttribute( "pItemID", this.node.id ); addEvent( dNode, "mouseover", function() { setInMenu(true) } ); addEvent( dNode, "mouseout", function() { setInMenu(false) } ); var html = "