function objGet(x) {
   if (typeof x != 'string') return x;
   else 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 openWindow(url){
    wasOpen  = false;
    win = window.open(url);    
    return (typeof(win)=='object')?true:false;
  }
  function openWindowSize(url,popis,width,height){
    wasOpen  = false;
    win = window.open(url,popis,'width='+width+',height='+height);    
    return (typeof(win)=='object')?true:false;
  }

function openWindow2(url,width,height) {
	window.open(url,'popis','width='+width+',height='+height+',scrollbars=1');
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}



var urlAddress = "http://www.eurotrucks.cz";
var urlAddressDe = "http://www.eurotrucks.cz/de/";
var pageName = "Eurotrucks CZ, s.r.o. - Váš prodejce nákladní techniky KÖGEL";
var pageNameDe = "EuroTrucks CZ, GmbH - Ihr Verkaufer von Aufliegern KÖGEL";

function addToFavorites() {
if (window.external) {
window.external.AddFavorite(urlAddress,pageName)
} else { 
alert("Omlouváme se, ale tuto funkci Váš prohlížeč nepodporuje. Uložte si naši stránku ručně.");
}
}

function addToFavoritesDe() {
if (window.external) {
window.external.AddFavorite(urlAddressDe,pageNameDe)
} else { 
alert("Omlouváme se, ale tuto funkci Váš prohlížeč nepodporuje. Uložte si naši stránku ručně.");
}
}
