function odkaz( url, kategorie, navigator ) {
  // Osetreni pro pripad, ze by se stranka otevrela v nepatricnem framu
	if ( !parent ) return;
	if ( !parent.frames[0] ) return;
	if ( !parent.frames[1] ) return;	
	if ( !parent.parent ) return;
	if ( !parent.parent.frames[0] ) return;
	if ( !parent.parent.frames[0].setOnLoadCategory ) return;
			
  if ( !navigator ) {
	  // Levy navigator zustava stejny
    if ( kategorie ) showorhide( kategorie, true );
		parent.frames[1].location.href = url;
	} else {
		if ( parent.frames[0].location.href.indexOf( navigator ) == -1 ) {
  		// Levy navigator potreba zamenit
  		parent.parent.frames[0].setOnLoadCategory( kategorie );
  		parent.frames[0].location.href = navigator;
  		parent.frames[1].location.href = url;
		} else {
   		// Levy navigator aktualni, neni potreba menit
      if ( kategorie ) showorhide( kategorie, true );
  		parent.frames[1].location.href = url;
  	}
	}
}

function navigatorLoaded() {
  // Osetreni pro pripad, ze by se stranka otevrela v nepatricnem framu
  if ( ! parent ) return;
	if ( ! parent.parent ) return;
	if ( ! parent.parent.frames[0] ) return;
	if ( ! parent.parent.frames[0].getOnLoadCategory ) return;
	
  var onLoadCategory = parent.parent.frames[0].getOnLoadCategory();
	if ( onLoadCategory != "" ) showorhide( onLoadCategory, true );
	parent.parent.frames[0].setOnLoadCategory( "" );
}

window.onload = navigatorLoaded;



function hideall() {
  showorhide( "-" );
}

function showorhide( el ) {
  var i;
  for ( i=0; i<document.all.length; i++ ) {
    divEl = document.all[i];
    if ( divEl.id.indexOf( "div_" ) != -1 ) {
      imgEl = document.all( "img_" + document.all[i].id.substring( 4 ) );
      // Show or hide??
      if ( divEl.id.indexOf( el ) == 4 ) {
        if ( divEl.style.display != "" ) {
          // Show
          divEl.style.display = "";
          imgEl.src = "gui/minus.gif";
        }
        else {
          // Hide
          divEl.style.display = "none";
          imgEl.src = "gui/plus.gif";
        }
      }
    }
  }
}
