BLANK_IMAGE = 'img/b.gif';

var STYLE_MAIN = {
	border:1,			// item's border width, pixels; zero means "none"
	shadow:1,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#666666",	// color of the item border, if any
		shadow:"#DBD8D1",	// color of the item shadow, if any
		bgON:"white",		// background color for the items
		bgOVER:"#B6BDD2"	// background color for the item which is under mouse right now
	},
	css:{
		ON:"menu_main_on",		// CSS class for items
		OVER:"menu_main_over"	// CSS class  for item which is under mouse
	}
};
var STYLE_SEARCH = {
	border:1,			// item's border width, pixels; zero means "none"
	shadow:1,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#666666",	// color of the item border, if any
		shadow:"#DBD8D1",	// color of the item shadow, if any
		bgON:"#841315",		// background color for the items
		bgOVER:"#B6BDD2"	// background color for the item which is under mouse right now
	},
	css:{
		ON:"menu_search_on",		// CSS class for items
		OVER:"menu_search_over"	// CSS class  for item which is under mouse
	}
};

var STYLE_SUB = {
	border:1,			// item's border width, pixels; zero means "none"
	shadow:3,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#666666",	// color of the item border, if any
		shadow:"#DBD8D1",	// color of the item shadow, if any
		bgON:"white",		// background color for the items
		bgOVER:"#B6BDD2"	// background color for the item which is under mouse right now
	},
	css:{
		ON:"menu_sub_on",		// CSS class for items
		OVER:"menu_sub_over"	// CSS class  for item which is under mouse
	}
};

var ITEM_WIDTH = 98;
var ITEM_HEIGTH = 35;
var SUBITEM_WIDTH = 180;
var SUBITEM_HEIGTH = 25;
var SUBITEM2_WIDTH = 180;
var SUBITEM2_HEIGTH = 26;
var SUBITEM_X = 161;
var SUBITEM_Y = 1;

var MENU_ITEMS = [
	{pos:[10,3], itemoff:[0,ITEM_WIDTH], leveloff:[ITEM_HEIGTH,0], style:STYLE_MAIN, size:[ITEM_HEIGTH,ITEM_WIDTH]},
	{code:"Agregaty przenośne", url:"index.php?page=agregaty&type=A",
		sub:[
			{itemoff:[SUBITEM_HEIGTH,0], style:STYLE_SUB, size:[SUBITEM_HEIGTH,SUBITEM_WIDTH]},
			{code:"Standardowe", url:"index.php?page=agregaty&type=1",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FH 2001", url:"index.php?page=agregat&type=1&model=FH 2001"},	
					{code:"FH 3001", url:"index.php?page=agregat&type=1&model=FH 3001"},
/* NOWY MODEL */			{code:"F 3001", url:"index.php?page=agregat&type=1&model=F 3001"},
/* NOWY MODEL */			{code:"FM 3001", url:"index.php?page=agregat&type=1&model=FM 3001"},
/* NOWY MODEL */			{code:"FM 4001", url:"index.php?page=agregat&type=1&model=FM 4001"},
/* NOWY MODEL */			{code:"FM 5000 / FM 5000 E", url:"index.php?page=agregat&type=1&model=FM 5000 E"},
					{code:"FH 5000 / FH 5000 E", url:"index.php?page=agregat&type=1&model=FH 5000"},
					{code:"FH 5001 / FH 5001 E", url:"index.php?page=agregat&type=1&model=FH 5001"},
/* NOWY MODEL */			{code:"FM 5001 / FM 5001 E", url:"index.php?page=agregat&type=1&model=FM 5001 E"},
					{code:"FH 7000 / FH 7000 E", url:"index.php?page=agregat&type=1&model=FH 7000"},
/* NOWY MODEL */			{code:"FM 7000 / FM 7000 E", url:"index.php?page=agregat&type=1&model=FM 7000 E"},
					{code:"FH 7001 / FH 7001 E", url:"index.php?page=agregat&type=1&model=FH 7001"},
/* NOWY MODEL */			{code:"FM 7001 / FM 7001 E", url:"index.php?page=agregat&type=1&model=FM 7001 E"},
					{code:"FH 8000 / FH 8000 E", url:"index.php?page=agregat&type=1&model=FH 8000 E"},
					{code:"FM 8000 / FM 8000 E", url:"index.php?page=agregat&type=1&model=FM 8000 E"},

/* NOWY MODEL */			{code:"FV 8001 E", url:"index.php?page=agregat&type=1&model=FV 8001 E"},
/* NOWY MODEL */			{code:"FV 10000 E", url:"index.php?page=agregat&type=1&model=FV 10000 E"},
/* NOWY MODEL */			{code:"FV 10001 E", url:"index.php?page=agregat&type=1&model=FV 10001 E"},
/* NOWY MODEL */			{code:"FV 11001 E", url:"index.php?page=agregat&type=1&model=FV 11001 E"},
/* NOWY MODEL */			{code:"FV 12001 E", url:"index.php?page=agregat&type=1&model=FV 12001 E"},
					{code:"FV 13000 E", url:"index.php?page=agregat&type=1&model=FV 13000 E"},
/* NOWY MODEL */			{code:"FV 14000 E", url:"index.php?page=agregat&type=1&model=FV 14000 E"},
/* NOWY MODEL */			{code:"FV 15000 E", url:"index.php?page=agregat&type=1&model=FV 15000 E"},
				]
			},
			{code:"Z regulacją napięcia", url:"index.php?page=agregaty&type=2",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
/* WYCOFANY Z PRODUKCJI 	{code:"FH 2001 R / FH 2001 ER", url:"index.php?page=agregat&type=2&model=FH 2001 R"},
*/
					{code:"FH 3001 R", url:"index.php?page=agregat&type=2&model=FH 3001 R"},
/* NOWY MODEL */			{code:"FM 3001 R", url:"index.php?page=agregat&type=2&model=FM 3001 R"},
					{code:"FH 5001 R / FH 5001 ER", url:"index.php?page=agregat&type=2&model=FH 5001 R"},
/* NOWY MODEL */			{code:"FM 5001 R / FM 5001 ER", url:"index.php?page=agregat&type=2&model=FM 5001 R"},
					{code:"FH 7001 R / FH 7001 ER", url:"index.php?page=agregat&type=2&model=FH 7001 R"},
/* NOWY MODEL */			{code:"FM 7001 R / FM 7001 ER", url:"index.php?page=agregat&type=2&model=FM 7001 R"},
					{code:"FH 7001 ERC", url:"index.php?page=agregat&type=2&model=FH 7001 ERC"},
/* NOWY MODEL */			{code:"FH 7540 R / FH 7540 ER", url:"index.php?page=agregat&type=2&model=FH 7540 R"},
/* NOWY MODEL */			{code:"FM 7540 R / FM 7540 ER", url:"index.php?page=agregat&type=2&model=FM 7540 R"},
/* NOWY MODEL */			{code:"FV 8001 ER", url:"index.php?page=agregat&type=2&model=FV 8001 ER"},
/* NOWY MODEL */			{code:"FV 10001 ER", url:"index.php?page=agregat&type=2&model=FV 10001 ER"},
/* NOWY MODEL */			{code:"FV 10540 ER", url:"index.php?page=agregat&type=2&model=FV 10540 ER"},
/* NOWY MODEL */			{code:"FV 11001 ER", url:"index.php?page=agregat&type=2&model=FV 11001 ER"},
/* NOWY MODEL */			{code:"FV 12001 ER", url:"index.php?page=agregat&type=2&model=FV 12001 ER"},
					{code:"FV 13540 ER", url:"index.php?page=agregat&type=2&model=FV 13540 ER"},
/* NOWY MODEL */			{code:"FV 14540 ER", url:"index.php?page=agregat&type=2&model=FV 14540 ER"},
/* NOWY MODEL */			{code:"FV 15540 ER", url:"index.php?page=agregat&type=2&model=FV 15540 ER"},
/* NOWY MODEL */			{code:"FV 19540 ER", url:"index.php?page=agregat&type=2&model=FV 19540 ER"},
				]
			},
			{code:"Z modułem spawalniczym", url:"index.php?page=agregaty&type=3",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FH 7220 S / FH 7220 SE", url:"index.php?page=agregat&type=3&model=FH 7220 S"},
/* NOWY MODEL */			{code:"FM 7220 S / FM 7220 SE", url:"index.php?page=agregat&type=3&model=FM 7220 S"},
					{code:"FV 10300 SE", url:"index.php?page=agregat&type=3&model=FV 10300 SE"},
				]
			},
			{code:"Specjalistyczne", url:"index.php?page=agregaty&type=4",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FV 2541 X", url:"index.php?page=agregat&type=4&model=FV 2541 X"},
					{code:"FV 3541 X", url:"index.php?page=agregat&type=4&model=FV 3541 X"},
					{code:"FV 4541 X", url:"index.php?page=agregat&type=4&model=FV 4541 X"},
					{code:"FV 5540 X / FV 5540 XE", url:"index.php?page=agregat&type=4&model=FV 5540 X"},
					{code:"FV 9540 / FV 9540 E", url:"index.php?page=agregat&type=4&model=FV 9540"},
					{code:"FV 9540 X / FV 9540 XE", url:"index.php?page=agregat&type=4&model=FV 9540 X"},
					{code:"FV 9540 XR / FV 9540 XER", url:"index.php?page=agregat&type=4&model=FV 9540 XR"},
					{code:"FV 13540 XER", url:"index.php?page=agregat&type=4&model=FV 13540 XER"}
				]
			}
			
		]
	},
	{code:"Agregaty stacjonarne", url:"index.php?page=agregaty&type=B",
		sub:[
			{itemoff:[SUBITEM_HEIGTH,0], style:STYLE_SUB, size:[SUBITEM_HEIGTH,SUBITEM_WIDTH]},		
			{code:"DOOSAN", url:"index.php?page=agregaty&type=20",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FD 130", url:"index.php?page=agregat&type=20&model=FD 130"},
					{code:"FD 170", url:"index.php?page=agregat&type=20&model=FD 170"},
					{code:"FD 200", url:"index.php?page=agregat&type=20&model=FD 200"},
					{code:"FD 300", url:"index.php?page=agregat&type=20&model=FD 300"},
					{code:"FD 400", url:"index.php?page=agregat&type=20&model=FD 400"},
					{code:"FD 450", url:"index.php?page=agregat&type=20&model=FD 450"},
					{code:"FD 500", url:"index.php?page=agregat&type=20&model=FD 500"},
					{code:"FD 600", url:"index.php?page=agregat&type=20&model=FD 600"},
					{code:"FD 630", url:"index.php?page=agregat&type=20&model=FD 630"},
					{code:"FD 650", url:"index.php?page=agregat&type=20&model=FD 650"},	
				]
			},
			{code:"IVECO", url:"index.php?page=agregaty&type=21",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FI 45", url:"index.php?page=agregat&type=21&model=FI 45"},
					{code:"FI 60", url:"index.php?page=agregat&type=21&model=FI 60"},
					{code:"FI 75", url:"index.php?page=agregat&type=21&model=FI 75"},
					{code:"FI 85", url:"index.php?page=agregat&type=21&model=FI 85"},
					{code:"FI 90", url:"index.php?page=agregat&type=21&model=FI 90"},
					{code:"FI 100", url:"index.php?page=agregat&type=21&model=FI 100"},
					{code:"FI 130", url:"index.php?page=agregat&type=21&model=FI 130"},
					{code:"FI 160", url:"index.php?page=agregat&type=21&model=FI 160"},
					{code:"FI 200", url:"index.php?page=agregat&type=21&model=FI 200"},
					{code:"FI 275", url:"index.php?page=agregat&type=21&model=FI 275"},
					{code:"FI 300", url:"index.php?page=agregat&type=21&model=FI 300"},
					{code:"FI 350", url:"index.php?page=agregat&type=21&model=FI 350"},
					{code:"FI 400", url:"index.php?page=agregat&type=21&model=FI 400"}
				]
			},
			{code:"VOLVO", url:"index.php?page=agregaty&type=22",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FV 85", url:"index.php?page=agregat&type=22&model=FV 85"},
					{code:"FV 100", url:"index.php?page=agregat&type=22&model=FV 100"},
					{code:"FV 130", url:"index.php?page=agregat&type=22&model=FV 130"},
					{code:"FV 150", url:"index.php?page=agregat&type=22&model=FV 150"},
					{code:"FV 180", url:"index.php?page=agregat&type=22&model=FV 180"},
					{code:"FV 200", url:"index.php?page=agregat&type=22&model=FV 200"},
					{code:"FV 250", url:"index.php?page=agregat&type=22&model=FV 250"},
					{code:"FV 275", url:"index.php?page=agregat&type=22&model=FV 275"},
					{code:"FV 300", url:"index.php?page=agregat&type=22&model=FV 300"},
					{code:"FV 325", url:"index.php?page=agregat&type=22&model=FV 325"},
					{code:"FV 350", url:"index.php?page=agregat&type=22&model=FV 350"},
					{code:"FV 375", url:"index.php?page=agregat&type=22&model=FV 375"},
					{code:"FV 400", url:"index.php?page=agregat&type=22&model=FV 400"},
					{code:"FV 450", url:"index.php?page=agregat&type=22&model=FV 450"},
					{code:"FV 500", url:"index.php?page=agregat&type=22&model=FV 500"},
					{code:"FV 570", url:"index.php?page=agregat&type=22&model=FV 570"},
					{code:"FV 630", url:"index.php?page=agregat&type=22&model=FV 630"}
				]
			},
			{code:"MITSUBISHI", url:"index.php?page=agregaty&type=23",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FM 10", url:"index.php?page=agregat&type=23&model=FM 10"},
					{code:"FM 15", url:"index.php?page=agregat&type=23&model=FM 15"},
					{code:"FM 20", url:"index.php?page=agregat&type=23&model=FM 20"},
					{code:"FM 30", url:"index.php?page=agregat&type=23&model=FM 30"},
					{code:"FM 40", url:"index.php?page=agregat&type=23&model=FM 40"}
				]
			},

			{code:"MTU/MERCEDES", url:"index.php?page=agregaty&type=25",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FU 280", url:"index.php?page=agregat&type=25&model=FU 280"},
					{code:"FU 300", url:"index.php?page=agregat&type=25&model=FU 300"},
					{code:"FU 350", url:"index.php?page=agregat&type=25&model=FU 350"},
					{code:"FU 400", url:"index.php?page=agregat&type=25&model=FU 400"},
					{code:"FU 460", url:"index.php?page=agregat&type=25&model=FU 460"},
					{code:"FU 500", url:"index.php?page=agregat&type=25&model=FU 500"},
					{code:"FU 600", url:"index.php?page=agregat&type=25&model=FU 600"},
					{code:"FU 650", url:"index.php?page=agregat&type=25&model=FU 650"},
					{code:"FU 790", url:"index.php?page=agregat&type=25&model=FU 790"},
					{code:"FU 900", url:"index.php?page=agregat&type=25&model=FU 900"},
					{code:"FU 1000", url:"index.php?page=agregat&type=25&model=FU 1000"}
			]
		},
		]
	},
	{code:"Agregaty do traktorów", url:"index.php?page=agregaty&type=24",
		sub:[
			{itemoff:[SUBITEM_HEIGTH,0], style:STYLE_SUB, size:[SUBITEM_HEIGTH,SUBITEM_WIDTH]},
			{code:"FT 12", url:"index.php?page=agregat&type=24&model=FT 12"},
			{code:"FT 14", url:"index.php?page=agregat&type=24&model=FT 14"},
			{code:"FT 16", url:"index.php?page=agregat&type=24&model=FT 16"},
			{code:"GT 22", url:"index.php?page=agregat&type=24&model=GT 22"},
			{code:"GT 27", url:"index.php?page=agregat&type=24&model=GT 27"},
			{code:"GS 32", url:"index.php?page=agregat&type=24&model=GS 32"},
			{code:"GS 38", url:"index.php?page=agregat&type=24&model=GS 38"},
			{code:"JB 53", url:"index.php?page=agregat&type=24&model=JB 53"},
			{code:"JB 63", url:"index.php?page=agregat&type=24&model=JB 63"},
			{code:"FOGO AV 9", url:"index.php?page=agregat&type=24&model=FOGO AV 9"},
			{code:"FOGO AV 11", url:"index.php?page=agregat&type=24&model=FOGO AV 11"},
			{code:"FOGO AV 13", url:"index.php?page=agregat&type=24&model=FOGO AV 13"},
			{code:"FOGO AV 16", url:"index.php?page=agregat&type=24&model=FOGO AV 16"},
			{code:"FOGO AV 23", url:"index.php?page=agregat&type=24&model=FOGO AV 23"},
			{code:"FOGO AV 15", url:"index.php?page=agregat&type=24&model=FOGO AV 15"},
			{code:"FOGO AV 18", url:"index.php?page=agregat&type=24&model=FOGO AV 18"},
			{code:"FOGO AV 22", url:"index.php?page=agregat&type=24&model=FOGO AV 22"},
			{code:"FOGO AV 27", url:"index.php?page=agregat&type=24&model=FOGO AV 27"},
			{code:"FOGO AV 38", url:"index.php?page=agregat&type=24&model=FOGO AV 38"},
			{code:"FOGO AW 42", url:"index.php?page=agregat&type=24&model=FOGO AW 42"},
			{code:"FOGO AW 63", url:"index.php?page=agregat&type=24&model=FOGO AW 63"},


		]
	},
	{code:"Motopompy", url:"index.php?page=agregaty&type=C",
		sub:[
			{itemoff:[SUBITEM_HEIGTH,0], style:STYLE_SUB, size:[SUBITEM_HEIGTH,SUBITEM_WIDTH]},
			{code:"Do szlamu", url:"index.php?page=agregaty&type=30",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"KTH 50 X", url:"index.php?page=agregat&type=30&model=KTH 50 X"},
					{code:"KTH 80 X", url:"index.php?page=agregat&type=30&model=KTH 80 X"},
					{code:"KTH 100 X", url:"index.php?page=agregat&type=30&model=KTH 100 X"}
				]
			},
			{code:"Melioracyjne", url:"index.php?page=agregaty&type=33",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"KDP 80 XW", url:"index.php?page=agregat&type=33&model=KDP 80 XW"}
				]
			},
			{code:"Do wody czystej i brudnej", url:"index.php?page=agregaty&type=31",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"SEH 25 L", url:"index.php?page=agregat&type=31&model=SEH 25 L"},
					{code:"SEH 50 X", url:"index.php?page=agregat&type=31&model=SEH 50 X"},
					{code:"SEH 80 X", url:"index.php?page=agregat&type=31&model=SEH 80 X"},
					{code:"SEH 100 X", url:"index.php?page=agregat&type=31&model=SEH 100 X"},
				]
			},
			{code:"Do wody brudnej", url:"index.php?page=agregaty&type=31",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"SEH 50 T", url:"index.php?page=agregat&type=31&model=SEH 50 T"},
					{code:"SEH 80 T", url:"index.php?page=agregat&type=31&model=SEH 80 T"}
				]
			},
 			{code:"Wysokociśnieniowe", url:"index.php?page=agregaty&type=32",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"SEH 25 H", url:"index.php?page=agregat&type=32&model=SEH 25 H"},
					{code:"SERH 50 X", url:"index.php?page=agregat&type=32&model=SERH 50"},
					{code:"SERH 50 B", url:"index.php?page=agregat&type=32&model=SERH 50 B"},
					{code:"SERM 50 V", url:"index.php?page=agregat&type=32&model=SERM 50 V"}
				]
			},
			{code:"Do wody morskiej i chem.", url:"index.php?page=agregaty&type=33",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"PGH 50", url:"index.php?page=agregat&type=31&model=PGH 50"}
				]
			},
			{code:"Elektryczne zanurzeniowe", url:"index.php?page=agregaty&type=33",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"PB 55022", url:"index.php?page=agregat&type=31&model=PB 55022"}
				]
			}
		]
	},
	{code:"Usługi", url:"index.php?page=uslugi"},
	{code:"Kontakt", url:"index.php?page=contact"},
	{code:"Wyszukaj agregat", style:STYLE_SEARCH , url:"index.php?page=szukaj"},
	{code:"Referencje", url:"index.php?page=referencje"},
	{code:"Warunki sprzedaży", url:"index.php?page=warunki"}
];

