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('The primary goal of the relationship between CompanyService and its clients is to provide clients with a comprehensive consulting package.');
          if (nr == 2) var x = document.createTextNode('One of the main principles of effective running of CompanyService is to work at low costs. That is why the prices of services provided by our company are fully competitive.');
          if (nr == 3) var x = document.createTextNode('Our consulting team consists of highly motivated and competent internal and external consultants with superior language skills.');

	  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() {

//      alert (document.slc.select.options[0].selected);
// v rovnakom okne self.location = document.slc.select.options[nr].value;

        nr=0;

	if (document.slc.select.options[nr].selected) self.location = document.slc.select.options[nr].value; nr++;
	if (document.slc.select.options[nr].selected) self.location = document.slc.select.options[nr].value; nr++;
	if (document.slc.select.options[nr].selected) self.location = document.slc.select.options[nr].value; nr++;


}
