BLANK_IMAGE = 'http://www.haftix.pl/images/b.gif';

var STYLE = {
	border:1,			// item's border width, pixels; zero means "none"
	shadow:2,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#000000",	// color of the item border, if any
		shadow:"#999999",	// color of the item shadow, if any
		bgON:"#FFFFAA",		// background color for the items
		bgOVER:"#FFCC33"	// background color for the item which is under mouse right now
	},
	textClass:'nibylink',
	css:{
		ON:"tekst1",		// CSS class for items
		OVER:"clsCMOver"	// CSS class  for item which is under mouse
	}
};

var STYLE1 = {
	border:1,			// item's border width, pixels; zero means "none"
	shadow:2,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#000000",	// color of the item border, if any
		shadow:"#999999",	// color of the item shadow, if any
		bgON:"#F0F0F0",		// background color for the items
		bgOVER:"#FFCC33"	// background color for the item which is under mouse right now
	},
	textClass:'nibylink',
	css:{
		ON:"clsCMOn",		// CSS class for items
		OVER:"clsCMOver"	// CSS class  for item which is under mouse
	}
};

var TRANSPARENT = {
	border:1,			// item's border width, pixels; zero means "none"
	shadow:2,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#000000",	// color of the item border, if any
		shadow:"#999999",	// color of the item shadow, if any
		bgON:"#FFCC33",		// background color for the items
		bgOVER:"#FFCC33"	// background color for the item which is under mouse right now
	},
	textClass:'nibylink',
	css:{
		ON:"clsCMOn",		// CSS class for items
		OVER:"clsCMOver"	// CSS class  for item which is under mouse
	}
};

var widthx = document.body.clientWidth;
var itemwidth = 140;
var itemheight = 25;
var licznik = 0;
var licznik2 = 0;
var MENU_ITEMS = [
	{"pos":[0,0], "itemoff":[0,0], "leveloff":[0,0], "style":TRANSPARENT, "size":[itemheight,itemwidth]},
	{code:"<DIV align=\"center\"><img src=\"http://www.haftix.pl/images/logo_male.gif\" height=\"72\" width=\"52\" Alt=\"Strona główna\" BORDER=\"0\"></DIV>", "size":[72,52],"leveloff":[51,53], "target":"_top", "url":"http://www.grzela.pl",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Strona www.grzela.pl</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.grzela.pl"}
		]
	},
// O programie
	{code:"<DIV align=\"center\">[ <A HREF=\"\">O programie</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1],"itemoff":[0,52], "style":STYLE, "target":"_top" ,"url":"http://www.haftix.pl",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Podstawowe informacje na temat programu HaftiX.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT, "target":"_top" ,"url":"http://www.haftix.pl"}
		]
	},
// Galeria
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Galeria</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1], "itemoff":[0,itemwidth], "style":STYLE,"target":"_blank" ,"url":"http://www.my-cross-stitch-software.com/gallery",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Zbiór zdjęć haftów wykonanych przy pomocy HaftiXa.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_blank" ,"url":"http://www.my-cross-stitch-software.com/gallery"}
		]
	},
// Pomoc
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Pomoc</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.haftix.pl/pomoc_pl.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Najczęściej zadawane pytania wraz z odpowiedziami.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.haftix.pl/pomoc_pl.shtml"}
		]
	},
// Kontakt
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Kontakt</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.haftix.pl/kontakt_pl.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Dane teleadresowe</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.haftix.pl/kontakt_pl.shtml"}
		]
	},
// Opinie
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Pisalnia</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.haftix.pl/phpbb/viewforum.php?f=8",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Tu możesz wyrazić swoją opinię na temat programu, zadać pytanie, podzielić się uwagami.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.haftix.pl/phpbb/viewforum.php?f=8"}
		]
	},
// Wzory
	{code:"<DIV align=\"center\">[ <A title=\"bezpłatne wzory haftu krzyżykowego\" HREF=\"http://www.wzory-haftu.pl\">Darmowe wzory</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_blank" ,"url":"http://www.wzory-haftu.pl",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Bezpłatne wzory haftu krzyżykowego w postaci plików HaftiXa.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_blank" ,"url":"http://www.wzory-haftu.pl/"}
		]
	},

// druga linijka ---------------------------------------------------------------

// pobierz
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Pobierz</A> ]</DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[25,-(--licznik)*itemwidth], "style":STYLE,"target":"_top" ,"url":"http://www.haftix.pl/pobieralnia_pl.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Pobierz najnowszą wersję programu lub instrukcję obsługi. Tu znajdziesz też historię zmian programu.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.haftix.pl/pobieralnia_pl.shtml"}
		]
	},
// cennik
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Cennik</A> ]</DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[0,itemwidth], "style":STYLE,"target":"_top" ,"url":"http://www.haftix.pl/rej_pl.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Ceny, numer konta, zasady i sposób rejestracji programu HaftiX.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.haftix.pl/rej_pl.shtml"}
		]
	},
// Poradnik
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Poradnik</A> ]</DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.haftix.pl/poradnik_pl.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Ilustrowane lub animowane artykuły co i jak zrobić aby wzór wyszedł jak najlepszy</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.haftix.pl/poradnik_pl.shtml"}
		]
	},
// linki
//	{code:"<DIV align=\"center\">[ <A HREF=\"\">Linki</A> ]</DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"",
//		sub:[
//			{},
//			{code:"<DIV align=\"center\" class=\"szare\">Strony zaprzyjaĄnione lub polecane</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT}
//		]
//	},
// RSS
	{code:"<DIV align=\"center\"> <IMG SRC=\"http://www.haftix.pl/images/rss.gif\"></DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://feeds2.feedburner.com/Haftix-haft_krzyzykowy",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Kanał informacyjny RSS. Jeśli chcesz otrzymywać nowości, które pojawią się na tej stronie kliknij.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://feeds2.feedburner.com/Haftix-haft_krzyzykowy"}
		]
	},
//wersja angielska
	{code:"<DIV align=\"center\"> <IMG SRC=\"http://www.haftix.pl/en_m.gif\"></DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">English</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com"}
		]
	},
// pasmanteria
	{code:"<DIV align=\"center\" class=\"szare\"><a href=\"http://www.epasmanteria.pl\">Pasmanteria internetowa</a></DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.epasmanteria.pl",
	}
];


