// *** PLEASE include this variables into page header ***
	// VARS for script *** MENU *** 
	/*
	var sel;					// zvoleny link
	var link_number;	// pocet odkazu
	
	link_number = 10;	// pocet odkazu muze byt vyssi, skript overuje existenci linku
	sel = 1;					// implicitne zvoleny odkaz
	
	// color settings
	color_deact = "#CCCCCC";		// neaktivni barva
	color_select = "#800080";		// barva zvoleneho odkazu
	color_highlight ="#FF0000";	// barva pri najeti mysi (hover)
	*/
	
	// use script like this:
	/*
	<td id="menu_1" onMouseOver="Menu('1')" onMouseOut="DeactMenu('1')" onClick="OpenMenu('1', 'main', 'p1.htm')">
		Seznam
	</td>
	*/

 function Menu(i) {
  if (document.layers) {
        window.document.layers['menu_' + i].Color = color_highlight;
				}
    else if (document.all) {
					if (document.all['menu_'+i]) {
		        window.document.all['menu_' + i].style.color = color_highlight;
					}
				}
 }
 
 function DeactMenu(i) {
	if (sel!=i) {
	  if (document.layers) {
	        window.document.layers['menu_' + i].Color = color_deact;
					}
	    else if (document.all) {
					if (document.all['menu_'+i]) {
		        window.document.all['menu_' + i].style.color = color_deact;
						}					
					}
		}
 }

 function Select(i) {
  if (document.layers) {
        window.document.layers['menu_' + i].Color = color_select;
				}
    else if (document.all) {
					if (document.all['menu_'+i]) {
		        window.document.all['menu_' + i].style.color = color_select;
					}
				}
 }
 
 function OpenMenu(i, target, href) {
  // deactivate all links]
	sel=0; // select none
	for (k=1; k<=link_number; k++) {
		DeactMenu(k);
	}
  // highlight selected link
	sel=i;
	Select(i);
	// relocate specified frame
 	top[target].location = href;
 }
