/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0 
oCMenu.fromTop=72   
oCMenu.rows=1 
oCMenu.menuPlacement='center'

/*
//This part changes the value of oCMenu.fromLeft based on the screen resolution
if (navigator.appVersion.indexOf("4.") != -1 && 
navigator.appName.indexOf("Explorer") != -1) {
ScrnSize = screen.width + "x" + screen.height;
}
if (navigator.appVersion.indexOf("4.") != -1 && 
navigator.appName.indexOf("Netscape") != -1) {
ScrnSize = screen.width + "x" + (screen.height + 19); //Netscape sees 19 pixels less on Height

}
else {
ScrnSize = screen.width + "x" + screen.height;
}
switch(ScrnSize) {
case "800x600": oCMenu.fromLeft=9;break
case "1024x768": oCMenu.fromLeft=121;break
case "1152x864": oCMenu.fromLeft=185;break
case "1280x600": oCMenu.fromLeft=250;break
case "1280x768": oCMenu.fromLeft=250;break
case "1280x960": oCMenu.fromLeft=250;break
case "1280x1024": oCMenu.fromLeft=250;break
}
*/ 


//oCMenu.offlineRoot="file:///E|/eactive/creditreform/www/" 
//oCMenu.onlineRoot="http://www.creditreform.pl/" 
oCMenu.offlineRoot="file://var/www/"
oCMenu.onlineRoot="http://www.creditreform.pl/" 
oCMenu.resizeCheck=1 
oCMenu.wait=300 
oCMenu.fillImg="img/spacer.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=130
oCMenu.level[0].height=18
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0"
oCMenu.level[0].borderX=0 
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].align="bottom" 



//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=130
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].style=""
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=1 
oCMenu.level[1].borderY=1
oCMenu.level[1].rows=0

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenu.makeMenu('mm0','','','index.php','','49','','img/mm0.gif','img/mm0_f2.gif')
	
oCMenu.makeMenu('mm1','','','site.php?file=aktualnosci.xml','','80','','img/mm1.gif','img/mm1_f2.gif')
	
oCMenu.makeMenu('mm2','','','site.php?file=ogolnie_o_firmie.xml','','99','','img/mm2.gif','img/mm2_f2.gif')
	oCMenu.makeMenu('sm21','mm2','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;historia i charakterystyka','site.php?file=ogolnie_o_firmie.xml','',170)
	oCMenu.makeMenu('sm22','mm2','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;cele i misja','site.php?file=cele_misja.xml','',170)
	oCMenu.makeMenu('sm23','mm2','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;nasze atuty','site.php?file=atuty.xml','',170)
	oCMenu.makeMenu('sm24','mm2','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;zespół','site.php?file=zespol.xml','',170)
	oCMenu.makeMenu('sm25','mm2','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;partnerzy','site.php?file=partnerzy.xml','',170)
	oCMenu.makeMenu('sm26','mm2','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;na &#347wiecie','site.php?file=na_swiecie.xml','',170)

oCMenu.makeMenu('mm7','','','site.php?file=bezp_dzieki_inf.xml','','95','','img/mm3.gif','img/mm3_f2.gif')
	oCMenu.makeMenu('sm71','mm7','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;bezpieczeństwo dzięki informacji','site.php?file=bezp_dzieki_inf.xml','',300)
	oCMenu.makeMenu('sm72','mm7','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;pochodzenie danych','site.php?file=pochodzenie_danych.xml','',300)
	oCMenu.makeMenu('sm73','mm7','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;nowoczesne możliwości otrzymywania danych','site.php?file=nowoczesne_mozliwo.xml','',300)
	oCMenu.makeMenu('sm74','mm7','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;międzynarodowe doświadczenie','site.php?file=miedzynar_doswiad.xml','',300)

oCMenu.makeMenu('mm3','','','site.php?file=produkty.xml','','61','','img/mm4.gif','img/mm4_f2.gif')
	oCMenu.makeMenu('sm31','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;raporty o wiarygodno&#347ci','site.php?file=raporty_wiarygodnosci.xml','',195)
	oCMenu.makeMenu('sm32','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;profile firm','site.php?file=profile_firm.xml','',195)
	oCMenu.makeMenu('sm33','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;baza danych finansowych','site.php?file=baza_danych_finansowych.xml','',195)
	oCMenu.makeMenu('sm34','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;indeks zdolno&#347ci płatniczej','site.php?file=indeks_zdolnosci_platniczej.xml','',195)
	oCMenu.makeMenu('sm35','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;uzupełnienia raportów','site.php?file=uzupelnienia_do_raportow.xml','',195)
	oCMenu.makeMenu('sm36','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;monitoring&nbsp;płatno&#347ci','site.php?file=zarzadzanie_wierzytelnosci.xml','',195)	
	oCMenu.makeMenu('sm37','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;windykacja należno&#347ci','site.php?file=windykacja_naleznosci.xml','',195)
	oCMenu.makeMenu('sm38','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;marketing adresowy','site.php?file=marketing_adresowy.xml','',195)
	oCMenu.makeMenu('sm39','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;konferencje','site.php?file=konferencje.xml','',195)
	oCMenu.makeMenu('sm391','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;promocje','site.php?file=promocje.xml','',195)
	oCMenu.makeMenu('sm392','mm3','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;seminaria','site.php?file=seminaria.xml','',195)
		
oCMenu.makeMenu('mm4','','','site.php?file=online.xml','','88','','img/mm5.gif','img/mm5_f2.gif')
	oCMenu.makeMenu('sm41','mm4','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;firmy polskie','site.php?file=online.xml','',140)
	oCMenu.makeMenu('sm42','mm4','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;firmy zagraniczne','https://online.creditreform.de/ssoapplicationweb/jsp/anmeldung/anmeldungNormal.jsf;jsessionid=K1lrMZnLQGS7pTGgFL2p7pzqGnlr2vKVNc1ZrJQjDyTyGRDcWzSG!-1015527686?TID=836fa7dc-61e7-441e-bcab-cf144c85ab89','_blank',140)

oCMenu.makeMenu('mm5','','','site.php?file=zamowienia.xml','','85','','img/mm6.gif','img/mm6_f2.gif')
	oCMenu.makeMenu('sm51','mm5','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;formularze','site.php?file=zamowienia.xml','',140)
	oCMenu.makeMenu('sm52','mm5','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;ankiety','site.php?file=ankiety.xml','',140)

oCMenu.makeMenu('mm8','','','site.php?file=czlonkostwo.xml','','93','','img/mm7.gif','img/mm7_f2.gif')

oCMenu.makeMenu('mm9','','','site.php?file=komunikaty_prasowe.xml','','80','','img/mm8.gif','img/mm8_f2.gif')
	oCMenu.makeMenu('sm91','mm9','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;komunikaty prasowe','site.php?file=komunikaty_prasowe.xml','',140)
	oCMenu.makeMenu('sm92','mm9','<img src=\"img/pkt.gif\" height=\"8\" width=\"8\">&nbsp;media o nas','site.php?file=media_o_nas.xml','',140)

//Leave this line - it constructs the menu
oCMenu.construct()