/***********************************************
* Pop-it menu- Š Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT


linkset[0]='<a href="osiowe_ov.html">typ OV</a>'
linkset[0]+='<a href="osiowe_ovk.html">typ OVK</a>'
linkset[0]+='<a href="osiowe_ov1.html">typ OV1</a>'
linkset[0]+='<a href="osiowe_ovk1.html">typ OVK1</a>'
linkset[0]+='<a href="osiowe_hxm.html">typ HXM</a>'
linkset[0]+='<a href="osiowe_compact.html">typ COMPACT</a>'
linkset[0]+='<a href="osiowe_hv.html">typ HV</a>'
linkset[0]+='<a href="osiowe_hve.html">typ HVE</a>'

linkset[1]='<a href="kanaly_okragle_tt.html">typ TT</a>'
linkset[1]+='<a href="kanaly_okragle_vk.html">typ VK</a>'
linkset[1]+='<a href="kanaly_okragle_vkm.html">typ VKM</a>'
linkset[1]+='<a href="kanaly_okragle_td.html">typ TD</a>'
linkset[1]+='<a href="kanaly_okragle_k.html">typ K</a>'
linkset[1]+='<a href="kanaly_okragle_kv.html">typ KV</a>'
linkset[1]+='<a href="kanaly_okragle_kd.html">typ KD</a>'


linkset[2]='<a href="kanaly_prostokatne_vkp.html">wentylatory serii VKP</a>'
linkset[2]+='<a href="kanaly_prostokatne_vkpi.html">wentylatory serii VKPI</a>'
linkset[2]+='<a href="kanaly_prostokatne_vkpf.html">wentylatory serii VKPF</a>'
linkset[2]+='<a href="kanaly_prostokatne_eka.html">standardowe EKA</a>'
linkset[2]+='<a href="kanaly_prostokatne_kha.html">standardowe KHA</a>'

linkset[3]='<a href="promieniowe_sem.html">seria SEM</a>'
linkset[3]+='<a href="promieniowe_dem.html">seria DEM</a>'

linkset[4]='<a href="dachowe_vok.html">seria VOK</a>'
linkset[4]+='<a href="dachowe_vok1.html">seria VOK1</a>'
linkset[4]+='<a href="dachowe_vkmk.html">seria VKMK</a>'
linkset[4]+='<a href="dachowe_rf.html">seria RF</a>'
linkset[4]+='<a href="dachowe_th.html">seria TH</a>'
linkset[4]+='<a href="dachowe_cth_ctv.html">seria CTH i CTV</a>'
linkset[4]+='<a href="dachowe_hctt_hcbt.html">seria HCTT i HCBT</a>'
linkset[4]+='<a href="dachowe_rfv.html">seria RFV</a>'
linkset[4]+='<a href="dachowe_wp-d.html">seria WP-D</a>'

linkset[5]='<a href="przeciwwybuchowe_hctt.html">dachowe typu HCTT</a>'
linkset[5]+='<a href="przeciwwybuchowe_compact.html">osiowe typu COMPACT</a>'
linkset[5]+='<a href="przeciwwybuchowe_wpd.html">dachowe typu WP-D/Ex</a>'
linkset[5]+='<a href="przeciwwybuchowe_wpe.html">kołnierzowe typu WP-E/Ex</a>'
linkset[5]+='<a href="przeciwwybuchowe_wpw.html">stacjonarne typu WPW-3/Ex</a>'

linkset[6]='<a href="chemodporne_cmpt.html">seria CMPT</a>'
linkset[6]+='<a href="chemodporne_rvisp.html">seria RVISP - dachowe</a>'

linkset[7]='<a href="chemoodporne_lfs.html">seria LFS</a>'

linkset[8]='<a href="gastornomia_kbd.html">seria KBD</a>'

linkset[9]='<a href="sredniocisnieniowe_mpb.html">seria MPB</a>'
linkset[9]+='<a href="sredniocisnieniowe_mpa.html">seria MPA</a>'

linkset[10]='<a href="malarnie_egm.html">seria EGM</a>'
linkset[10]+='<a href="malarnie_cbm.html">seria CBM</a>'
linkset[10]+='<a href="malarnie_lfb.html">seria LFB</a>'

linkset[11]='<a href="odciagi_lfa.html">seria LFA</a>'
linkset[11]+='<a href="odciagi_msb.html">seria MSB</a>'
linkset[11]+='<a href="odciagi_mra.html">seria MRA</a>'

linkset[12]='<a href="odciagiprzem_ws.html">seria WS</a>'
linkset[12]+='<a href="odciagiprzem_fps.html">ściana wentytylacyjna do malowania<br>natryskowego FPS</a>'
linkset[12]+='<a href="odciagiprzem_ues.html">uniwersalne stanowisko wyciągowe UES</a>'
linkset[12]+='<a href="odciagiprzem_ergo_stw.html">stanowisko spawalnicze ERGO-STW</a>'
linkset[12]+='<a href="odciagiprzem_ergo_mini.html">ramiona ssące ERGO-MINI - kwasoodporne</a>'
linkset[12]+='<a href="odciagiprzem_ergo.html">ramiona ssące ERGO</a>'

linkset[13]='<a href="wysokocisnieniowe_ww.html">seria WW</a>'
linkset[13]+='<a href="wysokocisnieniowe_ts.html">seria TS</a>'


////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu
