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:"FV 2001", url:"index.php?page=agregat&type=1&model=FV 2001"},
					{code:"FH 3001", url:"index.php?page=agregat&type=1&model=FH 3001"},
					{code:"FV 3001", url:"index.php?page=agregat&type=1&model=FV 3001"},
					{code:"FV 4001", url:"index.php?page=agregat&type=1&model=FV 4001"},
					{code:"FZ 4001 D / FZ 4001 DE", url:"index.php?page=agregat&type=1&model=FZ 4001 D"},
					{code:"FH 5000 / FH 5000 E", url:"index.php?page=agregat&type=1&model=FH 5000"},
					{code:"FV 5000 / FV 5000 E", url:"index.php?page=agregat&type=1&model=FV 5000"},
					{code:"FH 5001 / FH 5001 E", url:"index.php?page=agregat&type=1&model=FH 5001"},
					{code:"FV 5001 / FV 5001 E", url:"index.php?page=agregat&type=1&model=FV 5001"},
					{code:"FZ 6000 D / FZ 6000 DE", url:"index.php?page=agregat&type=1&model=FZ 6000 D"},
					{code:"FZ 6001 D / FZ 6001 DE", url:"index.php?page=agregat&type=1&model=FZ 6001 D"},
					{code:"FH 7000 / FH 7000 E", url:"index.php?page=agregat&type=1&model=FH 7000"},
					{code:"FH 7000 EC", url:"index.php?page=agregat&type=1&model=FH 7000 EC"},
					{code:"FV 7000 / FV 7000 E", url:"index.php?page=agregat&type=1&model=FV 7000"},
					{code:"FH 7001 / FH 7001 E", url:"index.php?page=agregat&type=1&model=FH 7001"},
					{code:"FH 7001 EC", url:"index.php?page=agregat&type=1&model=FH 7001 EC"},
					{code:"FV 7001 / FV 7001 E", url:"index.php?page=agregat&type=1&model=FV 7001"},
					{code:"FV 10000 / FV 10000 E", url:"index.php?page=agregat&type=1&model=FV 10000"},
					{code:"FV 13000 E", url:"index.php?page=agregat&type=1&model=FV 13000 E"},
					{code:"FV 18000 E", url:"index.php?page=agregat&type=1&model=FV 18000 E"}
				]
			},
			{code:"Z regulacją napięcia", url:"index.php?page=agregaty&type=2",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FH 5001 R / FH 5001 ER", url:"index.php?page=agregat&type=2&model=FH 5001 R"},
					{code:"FV 5001 R / FV 5001 ER", url:"index.php?page=agregat&type=2&model=FV 5001 R"},
					{code:"FH 7000 R / FH 7000 ER", url:"index.php?page=agregat&type=2&model=FH 7000 R"},
					{code:"FH 7000 ERC", url:"index.php?page=agregat&type=2&model=FH 7000 ERC"},
					{code:"FV 7000 R / FV 7000 ER", url:"index.php?page=agregat&type=2&model=FV 7000 R"},
					{code:"FH 7001 R / FH 7001 ER", url:"index.php?page=agregat&type=2&model=FH 7001 R"},
					{code:"FH 7001 ERC", url:"index.php?page=agregat&type=2&model=FH 7001 ERC"},
					{code:"FV 7001 R / FV 7001 ER", url:"index.php?page=agregat&type=2&model=FV 7001 R"},
					{code:"FV 9540 R / FV 9540 ER", url:"index.php?page=agregat&type=2&model=FV 9540 R"},
					{code:"FV 10000 R / FV 10000 ER", url:"index.php?page=agregat&type=2&model=FV 10000 R"},
					{code:"FV 10001 R / FV 10001 ER", url:"index.php?page=agregat&type=2&model=FV 10001 R"},
					{code:"FV 13000 ER", url:"index.php?page=agregat&type=2&model=FV 13000 ER"},
					{code:"FV 13001 ER", url:"index.php?page=agregat&type=2&model=FV 13001 ER"},
					{code:"FV 13540 ER", url:"index.php?page=agregat&type=2&model=FV 13540 ER"},
					{code:"FV 18000 ER", url:"index.php?page=agregat&type=2&model=FV 18000 ER"},
					{code:"FV 18540 ER", url:"index.php?page=agregat&type=2&model=FV 18540 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 7201 S / FH 7201 SE", url:"index.php?page=agregat&type=3&model=FH 7201 S"},
					{code:"FV 7201 S / FV 7201 SE", url:"index.php?page=agregat&type=3&model=FV 7201 S"},
					{code:"FH 7220 S / FH 7220 SE", url:"index.php?page=agregat&type=3&model=FH 7220 S"},
					{code:"FV 7220 S / FV 7220 SE", url:"index.php?page=agregat&type=3&model=FV 7220 S"},
					{code:"FV 10300 SE", url:"index.php?page=agregat&type=3&model=FV 10300 SE"},
					{code:"FV 10400 SE", url:"index.php?page=agregat&type=3&model=FV 10400 SE"}
				]
			},
			{code:"Specjalistyczne", url:"index.php?page=agregaty&type=4",
				sub:[
					{leveloff:[SUBITEM_Y,SUBITEM_X], size:[SUBITEM2_HEIGTH,SUBITEM2_WIDTH]},
					{code:"FH 2541", url:"index.php?page=agregat&type=4&model=FH 2541"},
					{code:"FV 2541", url:"index.php?page=agregat&type=4&model=FV 2541"},
					{code:"FV 2541 X", url:"index.php?page=agregat&type=4&model=FV 2541 X"},
					{code:"FH 3541", url:"index.php?page=agregat&type=4&model=FH 3541"},
					{code:"FV 3541", url:"index.php?page=agregat&type=4&model=FV 3541"},
					{code:"FV 3541 X", url:"index.php?page=agregat&type=4&model=FV 3541 X"},
					{code:"FV 4541", url:"index.php?page=agregat&type=4&model=FV 4541"},
					{code:"FV 4541 X", url:"index.php?page=agregat&type=4&model=FV 4541 X"},
					{code:"FH 5540 / FH 5540 E", url:"index.php?page=agregat&type=4&model=FH 5540"},
					{code:"FV 5540 / FV 5540 E", url:"index.php?page=agregat&type=4&model=FV 5540"},
					{code:"FV 5540 X / FV 5540 XE", url:"index.php?page=agregat&type=4&model=FV 5540 X"},
					{code:"FH 6540 / FH 6540 E", url:"index.php?page=agregat&type=4&model=FH 6540"},
					{code:"FV 6540 / FV 6540 E", url:"index.php?page=agregat&type=4&model=FV 6540"},
					{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 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 305", url:"index.php?page=agregat&type=20&model=FD 305"},
					{code:"FD 410", url:"index.php?page=agregat&type=20&model=FD 410"},
					{code:"FD 460", url:"index.php?page=agregat&type=20&model=FD 460"},
					{code:"FD 500", url:"index.php?page=agregat&type=20&model=FD 500"},
					{code:"FD 610", url:"index.php?page=agregat&type=20&model=FD 610"},
					{code:"FD 640", url:"index.php?page=agregat&type=20&model=FD 640"},
					{code:"FD 660", url:"index.php?page=agregat&type=20&model=FD 660"},	
				]
			},
			{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 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 250", url:"index.php?page=agregat&type=21&model=FI 250"},
					{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 205", url:"index.php?page=agregat&type=22&model=FV 205"},
					{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 410", url:"index.php?page=agregat&type=22&model=FV 410"},
					{code:"FV 460", url:"index.php?page=agregat&type=22&model=FV 460"},
					{code:"FV 510", url:"index.php?page=agregat&type=22&model=FV 510"},
					{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 17", url:"index.php?page=agregat&type=23&model=FM 17"},
					{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:"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:"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 chemikaliów", 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"}
];
