BLANK_IMAGE = 'http://www.my-cross-stitch-software.com/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.my-cross-stitch-software.com/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.my-cross-stitch-software.com/index.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Home</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com/index.shtml"}
		]
	},
// O programie
	{code:"<DIV align=\"center\">[ <A HREF=\"\">About</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1],"itemoff":[0,52], "style":STYLE, "target":"_top" ,"url":"http://www.my-cross-stitch-software.com",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Basic information about HaftiX.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT, "target":"_top" ,"url":"http://www.my-cross-stitch-software.com"}
		]
	},
// Galeria
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Gallery (PL)</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1], "itemoff":[0,itemwidth], "style":STYLE,"target":"_top" ,"url":"http://www.haftix.pl/galeria",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Gallery of cross-stitch prepared based on patterns created in HaftiX</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.haftix.pl/galeria"}
		]
	},
// Pomoc
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Help</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com/pomoc_en.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Manuals, video manuals</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com/pomoc_en.shtml"}
		]
	},
// Kontakt
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Contact</A> ]</DIV>", "leveloff":[itemheight*2+1,-licznik++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com/kontakt_en.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Email, address, phone number</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com/kontakt_en.shtml"}
		]
	},
// Opinie
//	{code:"<DIV align=\"center\">[ <A HREF=\"\">Forum</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"}
//		]
//	},

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

// pobierz
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Download</A> ]</DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[25,-(--licznik)*itemwidth], "style":STYLE,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com/pobieralnia_en.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Download free version or manual.</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com/pobieralnia_en.shtml"}
		]
	},
// cennik
//	{code:"<DIV align=\"center\">[ <A HREF=\"\">Prices</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"}
//		]
//	},
// Wzory
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Free patterns</A> ]</DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_blank" ,"url":"http://www.cross-stitch-patterns.eu",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Free cross-stitch patterns</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_blank" ,"url":"http://www.cross-stitch-patterns.eu"}
		]
	},
// Poradnik
	{code:"<DIV align=\"center\">[ <A HREF=\"\">Guide</A> ]</DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com/poradnik_en.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Guide in the cross-stitch and other ...</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.my-cross-stitch-software.com/poradnik_en.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"}
//		]
//	}
	{code:"<DIV align=\"center\"> <IMG SRC=\"http://www.my-cross-stitch-software.com/pl_m.gif\"></DIV>", "leveloff":[itemheight+1,-licznik2++*itemwidth+1], "itemoff":[0,itemwidth],"style":STYLE1,"target":"_top" ,"url":"http://www.haftix.pl/index.shtml",
		sub:[
			{},
			{code:"<DIV align=\"center\" class=\"szare\">Wersja polska / Polish</DIV>", "size":[72-itemheight*2,widthx-52], "style":TRANSPARENT,"target":"_top" ,"url":"http://www.haftix.pl/index.shtml"}
		]
	}
];

