// *** Otwieranie Popupa
function pokaz(url, width, height) {
	window.open(url, "obraz", 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars,resizable,dependent=no,width=' + width + ',height=' + height + ',left=50,top=50');
}


var grafika0="<img border='0' src='icons/bok.gif' width='37' height='24'>";
var grafika0_s="<img border='0' src='icons/bok.gif' width='37' height='24'><img border=\"0\" width='23' height='24' src=\"icons/lam-zie-2.gif\">";
var grafika0_n="<img border='0' src='icons/bok.gif' width='37' height='24'><img border=\"0\" width='23' height='24' src=\"icons/lam-nie-2.gif\">";

var GRAFIKA0="<img border='0' src='icons/dol.gif' width='178' height='47'>";
var GRAFIKA1="<img border='0' src='icons/dol_end.gif' width='178' height='47'>";

//display images
function displayImages( tTable, sTok, sInPath )
{
	for(i=0;i<tTable.length;i++)
	{		
		document.images[ new String( sTok + i ) ].src = new String( sInPath + tTable[i] );
		}
		}
		

function DajAktywne0( sStyl )
{
	return  " onMouseOver='"+ sStyl +".src=\"icons/lam-zie-1.gif\"' onMouseOut='"+ sStyl +".src=\"icons/lam-zie-0.gif\"'><img name="+ sStyl +" border=0 width='23' height='24' src=icons/lam-zie-0.gif>";
}
function DajAktywne1( sStyl )
{
	return  " onMouseOver='"+ sStyl +".src=\"icons/lam-nie-1.gif\"' onMouseOut='"+ sStyl +".src=\"icons/lam-zie-0.gif\"'><img name="+ sStyl +" border=0 width='23' height='24' src=icons/lam-zie-0.gif>";
}

function PrzygotujMenu()
{
	
	g_oDrzewo=new ElementMenu( " ", " ", " ", " ", " ", "1", "root"," ");


//	function ElementMenu( sURLGraphic, sURLGraphicSpec, sURL, sURLNapis, pImgId, oOjciec, sKlucz, sStyl )

	var oElement0 = new ElementMenu( grafika0 , grafika0_s ,  "index.html" , "icons/loading2.gif", "0", g_oDrzewo, "index", DajAktywne0("rollgra01") );
		oElement0 = new ElementMenu( grafika0 , grafika0_s ,  "/forum/" , "icons/loading2.gif", "1", g_oDrzewo, "forum dyskusyjne", DajAktywne0("rollgra02") );
		oElement0 = new ElementMenu( grafika0 , grafika0_s ,  "konkurs-pad-end.html" , "icons/loading2.gif", "2", g_oDrzewo, "konkurs", DajAktywne0("rollgra03") );
		oElement0 = new ElementMenu( grafika0 , grafika0_s ,  "pomoc.html" , "icons/loading2.gif", "3", g_oDrzewo, "pomoc", DajAktywne0("rollgra04") );
		oElement0 = new ElementMenu( grafika0 , grafika0_s ,  "faq.html" , "icons/loading2.gif", "4", g_oDrzewo, "faq", DajAktywne0("rollgra05") );
		oElement0 = new ElementMenu( grafika0 , grafika0_s ,  "wspolpraca.html" , "icons/loading2.gif", "5", g_oDrzewo, "wspolpraca", DajAktywne0("rollgra06") );
		oElement0 = new ElementMenu( grafika0 , grafika0_s ,  "reklama.html" , "icons/loading2.gif", "6", g_oDrzewo, "reklama", DajAktywne0("rollgra07") );
		oElement0 = new ElementMenu( grafika0 , grafika0_s ,  "nowosci.html" , "icons/loading2.gif", "7", g_oDrzewo, "komunikat", DajAktywne0("rollgra08") );

		oElement0 = new ElementMenu( GRAFIKA , GRAFIKA0 ,  "" , "", "", g_oDrzewo, "", "" );

		oElement0 = new ElementMenu( grafika0 , grafika0_n ,  "linki.html" , "icons/loading2.gif", "8", g_oDrzewo, "linki", DajAktywne1("rollgra09") );
		oElement0 = new ElementMenu( grafika0 , grafika0_n ,  "onas.html" , "icons/loading2.gif", "9", g_oDrzewo, "onas", DajAktywne1("rollgra10") );
		oElement0 = new ElementMenu( grafika0 , grafika0_n ,  "napisz.html" , "icons/loading2.gif", "10", g_oDrzewo, "napisz", DajAktywne1("rollgra11") );
		oElement0 = new ElementMenu( grafika0 , grafika0_n ,  "kontakt.html" , "icons/loading2.gif", "11", g_oDrzewo, "kontakt", DajAktywne1("rollgra12") );

		oElement0 = new ElementMenu( GRAFIKA , GRAFIKA1 ,  "" , "", "", g_oDrzewo, "", "" );
}
