<!-- Beginning of JavaScript -

// CREDITS:
// new hierarchical menu by Urs Dudli and Peter Gehrig 
// Copyright (c) 1999 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.ch.
// info@24fun.ch
// 1/13/2000

// IMPORTANT: 
// If you add this script to a script-library or script-archive 
// you have to add a link to http://www.24fun.ch on the webpage 
// where this script Script will be running.

//  **********************************************************************************

// INSTRUCTIONS: 
// Configure the menu and font parameters for each menublock below.
// each menublock[x] contains all necessary informations to build one menu-item with 
// as many sublinks as you like. You can add as many menublocks as you need.
//
// ATTENTION: When you configure the menublocks take care that you
// set the ";" and the "+" as seen below.

//  **********************************************************************************

var menublock=new Array() // no need to change this

menublock[0]="Arial;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "000000;"+			// fontcolor mainlink
			 "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
			 "Arial;"+ 			// font sublinks
			 "2;"+				// fontsize sublinks
			 "000000;"+			// fontcolor sublinks
			 "0;"+				// fontweight sublinks, 1 means bold, 0 means normal
			 " <b>Hypotekárny úver</b>|#|;"+ 				// text|URL|target of mainlink
			 "-ČSOB a.s.|http://www.csob.sk/|main;"+		// text|URL|target of first sublink
			 "-ISTROBANKA a.s.|http://www.istrobanka.sk/|main;"+	// text|URL|target of thirth sublink
                  	 "-TATRA BANKA a.s|http://www.tatrabanka.sk/|main;"+	// text|URL|target of fourth sublink 
                         "-Uni Banka a.s.|http://www.unibanka.sk/|main;"+	// text|URL|target of fiveth sublink
                         "-HVB Bank Slovakia a.s.|http://www.hvb-bank.sk/|main;"+// text|URL|target of sixth sublink
                         "-VÚB a.s.|http://www.vub.sk/|main;"+	                // text|URL|target of seventh sublink
                         "-OTP Banka Slovensko a.s.|http://www.otp.sk/|main;"	// text|URL|target of eighth sublink  
		 
menublock[1]="Arial;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "000000;"+			// fontcolor mainlink
			 "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
			 "Arial;"+ 			// font sublinks
			 "2;"+				// fontsize sublinks
			 "000000;"+			// fontcolor sublinks
			 "0;"+				// fontweight sublinks, 1 means bold, 0 means normal
			 "<b>Poistenie nehnuteľností </b>|#;"+	// text and URL of first mainlink
			 "-Alianz-Slov. poisťovňa|http://www.allianzsp.sk/|main;"+ // text|URL|target of mainlink
			 "-Česká poisťovňa|http://www.cps.sk/|main;"+ // text|URL|target of first sublink
			 "-UNION poisťovňa|http://www.union.sk/|main;"	// text|URL|target of second sublink 
		 
			 
menublock[2]="Arial;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "000000;"+			// fontcolor mainlink
			 "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
			 "Arial;"+ 			// font sublinks
			 "2;"+				// fontsize sublinks
			 "222222;"+			// fontcolor sublinks
			 "0;"+				// fontweight sublinks, 1 means bold, 0 means normal
			 " <b>Stavebné sporenie</b>|#;"+			// text and URL of mainlink
			 "-ČSOB st. sporiteľňa|http://www.csobsp.sk/|main;"+	// text and URL of first sublink
                         "-Prvá stavebná sporiteľňa|http://www.pss.sk/|main;"+	// text and URL of second sublink
			 "-Wüstenrot|http://www.wustenrot.sk/|main;"	// text and URL of thirth sublink
			 	
menublock[3]="Arial;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "000000;"+			// fontcolor mainlink
			 "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
			 "Arial;"+ 			// font sublinks
			 "2;"+				// fontsize sublinks
			 "000000;"+			// fontcolor sublinks
			 "0;"+				// fontweight sublinks, 1 means bold, 0 means normal
			 "<b>Notári a znalci<b>|#;"+			// text and URL of mainlink
			 "-Notári|http://www.notar.sk/|main;"+	// text and URL of first sublink
                         "-Databáza overených podpisov u notárov|http://www.notar.sk/cr_op_search.aspx|main;"	// text and URL of second sublink
						 
menublock[4]="Arial;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "000000;"+			// fontcolor mainlink
			 "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
			 "Arial;"+ 			// font sublinks
			 "2;"+				// fontsize sublinks
			 "000000;"+			// fontcolor sublinks
			 "0;"+				// fontweight sublinks, 1 means bold, 0 means normal
			 " <b>Užitočné stránky<b>|#|;"+ 				// text|URL|target of mainlink
			 "-Vyhľadanie PSČ|http://www.posta.sk/|main;"+		// text|URL|target of first sublink
			 "-Zbierky zákonov|http://www.zbierka.sk/|main;"+	// text|URL|target of fourth sublink
			 "-Obchodný register|http://www.orsr.sk/|main;"+	// text|URL|target of thirth sublink
                  	 "-Živnostenský register|http://www.zrsr.sk/|main;"+	// text|URL|target of fiveth sublink
                         "-Mapy|http://mapy.atlas.sk/|main;"+// text|URL|target of sixth sublink
                         "-Zoznam katastrov|http://www.cbsoft.sk/clanok.html|main;"	     // text|URL|target of seventh sublink
// No need to change anything below	 
//  **********************************************************************************
	 
var menusplit
var urlsplit
var font_weight_main
var font_weight_sub
			 
var showsubmenus=new Array()
for (i=0;i<=menublock.length-1;i++) {
	showsubmenus[i]=-1
}

function openandclose(visi) {
	showsubmenus[visi]=(-1)*showsubmenus[visi]

	var menucontent=""

	for (i=0;i<=menublock.length-1;i++) {
		menusplit=menublock[i].split(";")
		urlsplit=menusplit[8].split("|")
		if (menusplit[3]==1) {font_weight_main="<b>"}
		if (menusplit[3]==0) {font_weight_main=""}
		if (menusplit[7]==1) {font_weight_sub="<b>"}
		if (menusplit[7]==0) {font_weight_sub=""}

		menucontent+=font_weight_main+"<a href='javascript:openandclose("+i+")'><font face="+menusplit[0]+" color="+menusplit[2]+" size="+menusplit[1]+">"+urlsplit[0]+"</font></a><br>"
		if (showsubmenus[i]==1) {
			for (ii=9;ii<=menusplit.length-1;ii++) {
				urlsplit=menusplit[ii].split("|")
    			menucontent+=font_weight_sub+"&nbsp;&nbsp;&nbsp;<a href="+urlsplit[1]+" target="+urlsplit[2]+"><font face="+menusplit[4]+" color="+menusplit[6]+" size="+menusplit[5]+">"+urlsplit[0]+"</font></a><br>"
			}
		}
	}
	if (document.all) {
		menu.innerHTML=menucontent
	}
	if (document.layers) {
		document.menu.document.write(menucontent)
		document.menu.document.close()
	}
}


