function redi(){
    window.location="http://www.rstse.hu/";
}

function highlightfirst( id1, id2, id3, id4, id5, id6, id7, highvalue, lowvalue ) {
  if (highvalue == '') { return;}
  if (lowvalue == '') { return;}

//  document.getElementById(id1).style.backgroundColor=highvalue;
//  document.getElementById(id2).style.backgroundColor=lowvalue;
//  document.getElementById(id3).style.backgroundColor=lowvalue;
//  document.getElementById(id4).style.backgroundColor=lowvalue;
//  document.getElementById(id5).style.backgroundColor=lowvalue;
//  document.getElementById(id6).style.backgroundColor=lowvalue;

//  var hv = "url(\'"+highvalue+"\');";
//  var lv = "url(\'"+lowvalue+"\');";

  var hv = "url(\'"+highvalue+"\')";
  var lv = "url(\'"+lowvalue+"\')";

  document.getElementById(id1).style.backgroundImage=hv;
  document.getElementById(id2).style.backgroundImage=lv;
  document.getElementById(id3).style.backgroundImage=lv;
  document.getElementById(id4).style.backgroundImage=lv;
  document.getElementById(id5).style.backgroundImage=lv;
  document.getElementById(id6).style.backgroundImage=lv;
  document.getElementById(id7).style.backgroundImage=lv;

}

function changegif( pngfile ) {
  document.getElementById("kiskep").src = pngfile;
}

function changetext(idfrom,idto) {

    if(document.location.href=="http://www.rstse.hu/index.html?"){
	idfrom = "elment";	
    }
	
    var doc_to  = document.getElementById(idto);
    var doc_from = document.getElementById(idfrom);
    
    var index = 1;
    
    var browser=navigator.appName;
    
    if(browser=="Microsoft Internet Explorer"){
	index = 0;
    }
    
    
    var newnode = doc_from.childNodes[index].cloneNode(true);

    doc_to.replaceChild(newnode,doc_to.childNodes[index]);
    
}

function setfirstactive( id1, id2, id3, id4, id5 ) {
  document.getElementById(id1).style.color = "#564F2F";
  document.getElementById(id2).style.color = "#BAB393";
  document.getElementById(id3).style.color = "#BAB393";
  document.getElementById(id4).style.color = "#BAB393";
  document.getElementById(id5).style.color = "#BAB393";
}



