/*
  ==========================================================================
   Moduł:     menu_pagen.js
   Funkcja:   Definicja struktury menu strony PAGEN. Parametry dotyczące
              menu (patrz coolMenu DHTML v. 4.6)
   Uwagi:     Instalacja modułu wymaga załączenia skryptu pod koniec sekcji <HEAD>
              oraz obecności modułu coolmenu.js.
   Autor:     Wojciech Szajnerman (e-mail: w.szajnerman@egplus.pl)
  ==========================================================================
   Copyright: (c) 2001 Thomas Brattli (www.dhtmlcentral.com).  This site uses
              the coolMenus. You can get it for your own site by going to
              http://www.dhtmlcentral.com/projects/coolmenus
  ==========================================================================
*/

function findPos() {
	if(bw.ns4) {
			x = document.layers.layerMenu.pageX;
			y = document.layers.layerMenu.pageY;
		} else {
			x = 0;
			y = 0;
			var el, temp;
			el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
			if(el.offsetParent) {
				temp = el;
				while(temp.offsetParent) {
					temp = temp.offsetParent;
					x += temp.offsetLeft;
					y += temp.offsetTop;
				};
			};
			x += el.offsetLeft;
			y += el.offsetTop;
	}
	return [x,y];
}

pos = findPos();


oCMenu = new makeCM("oCMenu");
oCMenu.pxBetween = 0;
oCMenu.fromLeft = pos[0];
oCMenu.fromTop = pos[1];
oCMenu.onresize = "pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]";
oCMenu.rows = 0;
oCMenu.menuPlacement = 0;
oCMenu.offlineRoot = "file:///C|/Strona PAGEN.PL/www/";
oCMenu.onlineRoot = "";
oCMenu.resizeCheck = 1;
oCMenu.wait = 300;
oCMenu.fillImg = "cm_fill.gif";
oCMenu.zIndex = 0;

/*
        Parametry dla tła (background bar properties)
  ==========================================================================

oCMenu.useBar           If set to 1 the script will make a background bar for the script, set to 0 it will not make a bar.
oCMenu.barWidth         The width of the background bar. Set this to "menu" if you want it to be the same width as the menu
                        (this will change to match the border if you have one). This can be specified also in pixels (without
                        quotation marks).
oCMenu.barHeight        The height of the background bar. Set this to "menu" if you want it to be the same height as the menu.
oCMenu.barClass         The value of this property should be a CSS class that will be used for the background bar.
                        Note: The class for the background bar must contain: "width:10; height:10; position:absolute".
                              If you specify a background color remember to add layer-background-color with the same value for NS4.
oCMenu.barX             The left and top positions of the bar. Set these to "menu" if you want them to be the same as the left
oCMenu.barY             and top position of the menu (this will change to match the border if you have one).
oCMenu.barBorderX       These control the horizontal and vertical borders of the background bar. Specified in pixels.
oCMenu.barBorderY
oCMenu.barBorderClass   The value of this property should be a CSS class that will be the class for the backgroundbar border.

*/

oCMenu.useBar = 0;
oCMenu.barWidth = "100";
oCMenu.barHeight = "menu";
oCMenu.barClass = "clBar";
oCMenu.barX = "menu";
oCMenu.barY = "menu";
oCMenu.barBorderX = 0;
oCMenu.barBorderY = 0;
oCMenu.barBorderClass = "";

/*
      Parametry menu (poziom 0)
  ==========================================================================
*/

oCMenu.level[0] = new cm_makeLevel();
oCMenu.level[0].width = 276;
oCMenu.level[0].height = 30;
oCMenu.level[0].regClass = "clLevel0";
oCMenu.level[0].overClass = "clLevel0over";
oCMenu.level[0].borderX = 0;
oCMenu.level[0].borderY = 0;
oCMenu.level[0].borderClass = "clLevel0border";
oCMenu.level[0].offsetX = -30;
oCMenu.level[0].offsetY = 10;
oCMenu.level[0].rows = 0;
oCMenu.level[0].arrow = 0;
oCMenu.level[0].arrowWidth = 0;
oCMenu.level[0].arrowHeight = 0;
oCMenu.level[0].align = "right";
oCMenu.level[0].filter = "progid:DXImageTransform.Microsoft.Fade(duration=0.1)";

/*
      Parametry menu (poziom 0)
  ==========================================================================

oCMenu.level[0].arrow          This gives you the ability to add an arrow that will automatically appear on the right of the item
                               if the item has submenus. The value must be an image file, and it must be specified with the full
                               path from the ROOT of your web. If you do not specify this the level will not use this feature.
                               How to set the variable: myCoolMenu.level[x].arrow="images/my_arrow_image.gif"

oCMenu.level[0].arrowWidth     These are the the width and the height of the arrow image. These have to be manually set
oCMenu.level[0].arrowHeight    (if you are using arrows) or Explorer and Opera might give some strange results. Specified in pixels.

*/

oCMenu.level[1] = new cm_makeLevel();
oCMenu.level[1].width = oCMenu.level[0].width - 2;
oCMenu.level[1].height = 32;
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 = -10;
oCMenu.level[1].offsetY = 3;
oCMenu.level[1].borderClass = "clLevel1border";

/*
      Parametry menu (poziom 2)
  ==========================================================================
*/

oCMenu.level[2] = new cm_makeLevel();
oCMenu.level[2].width = 140;
oCMenu.level[2].height = 32;
oCMenu.level[2].offsetX = 1;
oCMenu.level[2].offsetY = -3;
oCMenu.level[2].regClass = "clLevel1";
oCMenu.level[2].overClass = "clLevel1over";
oCMenu.level[2].borderClass = "clLevel1border";

/* Submenu: STRONA STARTOWA
  ==========================================================================
*/
oCMenu.makeMenu('top1', '', 'english', 'index.html', '', 276, '32', 'images/menu/menu_off_01.gif', 'images/menu/menu_on_01.gif');

/*
    Submenu: O NAS
  ==========================================================================
*/

oCMenu.makeMenu('top2', '', 'english', '', '', 276, '32', 'images/menu/menu_off_02.gif', 'images/menu/menu_on_02.gif');
	oCMenu.makeMenu('top20', 'top2', 'O firmie', 'onas.html', '', 170);
	oCMenu.makeMenu('top21', 'top2', 'Ekologia', 'ekologia.html', '', 170);
	oCMenu.makeMenu('top22', 'top2', 'Certyfikaty', 'certyfikaty.html', '', 170);
	oCMenu.makeMenu('top23', 'top2', 'Nagrody', 'nagrody.html', '', 170);
	oCMenu.makeMenu('top24', 'top2', 'Promocje', 'promocje.html', '', 170);

/*
    Submenu: PRODUKTY
  ==========================================================================
*/

oCMenu.makeMenu('top3', '', 'english', '', '', 276, '32', 'images/menu/menu_off_03.gif', 'images/menu/menu_on_03.gif');
	oCMenu.makeMenu('top30', 'top3', 'Okna PCV', '', '', 170);
		oCMenu.makeMenu('top301', 'top30', 'bluEvolution', 'bluevolution.html', '', 170);
		oCMenu.makeMenu('top302', 'top30', 'TermoRevolution', 'termoevolution.html', '', 170);
		oCMenu.makeMenu('top303', 'top30', 'AD', 'ad.html', '', 170);
		oCMenu.makeMenu('top304', 'top30', 'AD ARTE', 'adarte.html', '', 170);
		oCMenu.makeMenu('top305', 'top30', 'AD KOLOR', 'adkolor.html', '', 170);
		oCMenu.makeMenu('top306', 'top30', 'MD', 'md.html', '', 170);
		oCMenu.makeMenu('top307', 'top30', 'Kolorystyka', 'kolorystyka.html', '', 170);

	oCMenu.makeMenu('top31', 'top3', 'Stolarka aluminiowa', '', '', 170);
		oCMenu.makeMenu('top311', 'top31', 'Ponzio NT 50', 'nt50.html', '', 170);
		oCMenu.makeMenu('top312', 'top31', 'Ponzio NT 52', 'nt52.html', '', 170);
		oCMenu.makeMenu('top313', 'top31', 'Ponzio NT 60', 'nt60.html', '', 170);
		oCMenu.makeMenu('top314', 'top31', 'Ponzio NT 60PT', 'nt60pt.html', '', 170);
		oCMenu.makeMenu('top315', 'top31', 'Ponzio NT 68', 'nt68.html', '', 170);
		oCMenu.makeMenu('top316', 'top31', 'Ponzio NT 152', 'nt152.html', '', 170);

	oCMenu.makeMenu('top32', 'top3', 'Oszklenie', '', '', 170);
		oCMenu.makeMenu('top321', 'top32', 'Szyby ciepłochronne', 'szyby-cieplochronne.html', '', 170);
		oCMenu.makeMenu('top322', 'top32', 'Szyby dźwiękochłonne', 'szyby-dzwiekochlonne.html', '', 170);
		oCMenu.makeMenu('top323', 'top32', 'Szyby laminowane', 'szyby-laminowane.html', '', 170);
		oCMenu.makeMenu('top324', 'top32', 'Szyby przeciwsłoneczne', 'szyby-sloneczne.html', '', 170);
		oCMenu.makeMenu('top325', 'top32', 'Szyby specjalne', 'szyby-specjalne.html', '', 170);
		oCMenu.makeMenu('top326', 'top32', 'Akcesoria do szyb', 'akcesoria-do-szyb.html', '', 170);

	oCMenu.makeMenu('top33', 'top3', 'Profile', 'profile.html', '', 170);
	oCMenu.makeMenu('top34', 'top3', 'Okucia i akcesoria', 'okucia.html', '', 170);
	oCMenu.makeMenu('top35', 'top3', 'Drzwi zewnętrzne', 'drzwi.html', '', 170);

/*
    Submenu: PORTFOLIO
  ==========================================================================
*/

oCMenu.makeMenu('top4', '', 'english', 'portfolio.html', '', 276, '32', 'images/menu/menu_off_04.gif', 'images/menu/menu_on_04.gif');

/*
    Submenu: STREFA KLIENTA
  ==========================================================================
*/

oCMenu.makeMenu('top5', '', 'english', '', '', 276, '32', 'images/menu/menu_off_05.gif', 'images/menu/menu_on_05.gif');
	oCMenu.makeMenu('top50', 'top5', 'Dane adresowe', 'adres.html', '', 170);
	oCMenu.makeMenu('top51', 'top5', 'Salony firmowe', 'salony.html', '', 170);
	oCMenu.makeMenu('top52', 'top5', 'Mapa witryny', 'sitemap.html', '', 170);
	oCMenu.makeMenu('top53', 'top5', 'Pliki do pobrania', 'download.html', '', 170);

oCMenu.construct();

/*
  ==========================================================================
   (c) 2009 Agencja Reklamowa EURO GRAPHIC. Wszystkie prawa zastrzeżone.
  ==========================================================================
*/
