var nn6up = document.getElementById ? true : false;
var ns = document.layers ? true : false;
var ie = document.all ? true : false;
if (ie) nn6up = false;


isMac = (navigator.appVersion.indexOf("Mac") != -1) ? 1 : 0;
isClip = (nn6up || ns || (ie && !isMac)) ? 1 : 0;


function D(o) {
if (ns) return document.layers[o];
if (ie && document.all[o]) return document.all[o].style;
if (nn6up) return document.getElementById(o).style;
return 0;
}
function I(n) {
if (ns) return document.layers[n].document.images[n+'i'];
if (ie || nn6up) return document.images[n+'i'];
}


function show(o) {if (D(o)) D(o).visibility = 'visible';}
function hide(o) {if (D(o)) D(o).visibility = 'hidden';}


function ChangeHTML(name, nr) {

	if (document.getElementById && document.createElement)
	{

//	  if (nr == 1) document.getElementById(name).firstChild.nodeValue='The primary goal of the relationship between CompanyService and its clients is to provide clients with a comprehensive consulting package.';	

          if (nr == 1) var x = document.createTextNode('Služby CompanyHouse sú poskytované v súlade s kódexom kvality, plne rešpektujúc klientove potreby a časové nároky. Každý člen nášho profesionálneho tímu je zodpovedný za kvalitu každej činnosti, ktorú vykonáva.');
          if (nr == 2) var x = document.createTextNode('Všetci zamestnanci a spolupracovníci CompanyHouse majú primerané vzdelanie a bohaté skúsenosti v oblastiach, v ktorých pôsobia.');
          if (nr == 3) var x = document.createTextNode('Popri štandardnej ponuke služieb poskytuje CompanyHouse flexibilné riešenia prispôsobované individuálnym požiadavkám klienta.');

	  document.getElementById(name).appendChild(x);

	}
}


function RemoveHTML(name) {

	if (document.getElementById && document.createElement)
	{

	  // document.getElementById(name).firstChild.nodeValue='';	
	  var node = document.getElementById(name)
	  node.removeChild(node.childNodes[0]);

	}



}


function go2m(object) {

      dcmnt = document.form1.filter_slc;

//    alert (dcmnt.options[1].value);

// v rovnakom okne self.location = document.slc.select.options[nr].value;

      for (nr = 0; nr < dcmnt.options.length; nr += 1) {

        if (dcmnt.options[nr].selected) self.location = dcmnt.options[nr].value;
      }

}
