function AddFavorite(linkObj,addUrl,addTitle)
{
  if (document.all && !window.opera)
  {
    window.external.AddFavorite(addUrl,addTitle);
    return false;
  }
  else if (window.opera && window.print)
  {
    linkObj.title = addTitle;
    return true;
  }
  else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))
  {
    if (window.confirm('Přidat oblíbenou stránku jako nový panel?'))
    {
      window.sidebar.addPanel(addTitle,addUrl,'');
      return false;
    }
  }
  window.alert('Po potvrzení stiskněte CTRL-D,\nstránka bude přidána k vašim oblíbeným odkazům.');
  return false;
}

function objGet(x) {
  if(Boolean(document.getElementById)) return document.getElementById(x);
  else if (Boolean(document.all)) return eval('document.all.'+x);
  else if (Boolean(document.ids)) return eval('document.ids.'+x);
  else return null;
}

function onLeft(id) {
  var imgObj = objGet(id);
  if(imgObj) {
    imgObj.style.background="url('../_face/img4/bt_menu_selected.gif') no-repeat";
    var linkObj = objGet(id+'link');
    if(linkObj) {
     linkObj.style.color='#7E0000';
     linkObj.style.textDecoration='underline';
    }
  }
}

function offLeft(id) {
  var imgObj = objGet(id);
  if(imgObj) {
    imgObj.style.background="url('../_face/img4/bt_menu.gif') no-repeat";
    var linkObj = objGet(id+'link');
    if(linkObj) {
     linkObj.style.color='#000000';
     linkObj.style.textDecoration='none';
    }
  }
}

function onTop(id, typeID) {
  var imgObj = objGet(id);
  if(imgObj) {
    var file = "../_face/img4/bt_menu"+typeID+"_selected.gif";
    imgObj.style.background="url("+file+") no-repeat";
    var linkObj = objGet(id+'link');
    if(linkObj) {
     linkObj.style.color='#7E0000';
     linkObj.style.textDecoration='underline';
    }
  }
}

function offTop(id, typeID) {
  var imgObj = objGet(id);
  if(imgObj) {
    var file = "../_face/img4/bt_menu"+typeID+".gif";
    imgObj.style.background="url("+file+") no-repeat";
    var linkObj = objGet(id+'link');
    if(linkObj) {
     linkObj.style.color='#000000';
     linkObj.style.textDecoration='none';
    }
  }
}

function changeColor(id, col)
{
  var linkObj = objGet(id);
  if(linkObj) {
    linkObj.style.color=col;
  }
}


function SetLang ( Lang )
{
  	document.formLang.SetLang.value = Lang;
  	document.formLang.submit();
}

function doReload()
{
	window.location.reload ( true );
}

function WinClose ()
{
 	window.opener.doReload();
 	window.close();
}

function PrintPage ()
{
 if (typeof(window.print) != 'undefined')
 {
     window.print();
 }
}

