document.write('');
var mDebugging=2 //General debugging variable. Set to 0 for no debugging, 1 for alerts or 2 for status debugging.
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
oCMenu.frames=0 //Do you want to use the menus as coolframemenu or not? (in frames or not) - Value: 0 || 1
//oCMenu.useclick=0 //If you want the menu to be activated and deactivated onclick only set this to 1. - Value: 0 || 1
oCMenu.offlineRoot="" //Value: "path_to_menu_file_offline/"
if(typeof(window['sOnlineRoot']) == "undefined")oCMenu.onlineRoot='';
else oCMenu.onlineRoot=sOnlineRoot ; //Value: "path_to_menu_file_online/"
//alert(typeof(window['sOnlineRoot'])+oCMenu.onlineRoot);
oCMenu.fillImg=""
oCMenu.zIndex=0
oCMenu.resizeCheck=1 //Do you want the page to reload if it's resized (This should be on or the menu will crash in Netscape4) - Value: 0 || 1
oCMenu.wait=400 //How long to wait before hiding the menu on mouseout. Netscape 6 is a lot slower then Explorer, so to be sure that it works good enough there you should not have this lower then 500 - Value: milliseconds
//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="100%"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX=0
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""
//Placement properties
oCMenu.rows=1 //This controls whether the top items is supposed to be laid out in rows or columns. Set to 0 for columns and 1 for row - Value 0 || 1
oCMenu.fromLeft=((document.body.clientWidth-770)/2)+14 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCMenu.fromTop=231 //This is the top position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCMenu.pxBetween=0 //How much space you want between each of the top items. - Value: px || "%"
oCMenu.menuPlacement="left"
//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new cm_makeLevel()
oCMenu.level[0].width=50
oCMenu.level[0].height=27
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=""
oCMenu.level[0].offsetX=5
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=165
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right"
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=150
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel0"
oCMenu.level[2].overClass="clLevel0over"
oCMenu.level[2].borderClass="clLevel1border"
function findPos(){
//alert('ff');
if(bw.ns4){ //Netscape 4
x = document.layers["layerMenu"].pageX
y = document.layers["layerMenu"].pageY
}else{ //other browsers
x=0; y=0; var el,temp
el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
if(el.offsetParent){
temp = el
while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
temp=temp.offsetParent;
x+=temp.offsetLeft
y+=temp.offsetTop;
}
}
x+=el.offsetLeft
y+=el.offsetTop
}
//Returning the x and y as an array
return [x,y]
}
//pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]
//Setting it to re place the elements after resize - the resize is not perfect though..
//oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1];"
oCMenu.makeMenu('top1','','
','./','','125')
oCMenu.makeMenu('top2','','
','#','','80')
oCMenu.makeMenu('sub20','top2','Rys historyczny','?id=2&t=1','','190')
oCMenu.makeMenu('sub21','top2','System ciepłowniczy','?id=2&t=15','','190')
oCMenu.makeMenu('sub22','top2','Władze spółki','?id=2&t=2','','190')
oCMenu.makeMenu('sub23','top2','Polityka systemu zarządzania','?id=2&t=20','','190')
oCMenu.makeMenu('sub24','top2','Ogłoszenia','?id=2&t=21','','190')
oCMenu.makeMenu('top3','','
','#','','85')
oCMenu.makeMenu('sub30','top3','Usługi dodatkowe','?id=2&t=5','','190')
oCMenu.makeMenu('sub31','top3','Działalność podstawowa','?id=2&t=4','','190')
oCMenu.makeMenu('sub32','top3','Dokumenty do pobrania','?id=2&t=19','','190')
oCMenu.makeMenu('top4','','
','?id=4','','100')
oCMenu.makeMenu('top5','','
','?id=2&t=3','','90')
oCMenu.makeMenu('sub50','top5','Formularz zapytania','?id=6','','190')
oCMenu.makeMenu('sub51','top5','Kontakt','?id=2&t=3','','190')
//Leave these two lines! Making the styles and then constructing the menu
oCMenu.construct()