﻿function changeDisplayState (id,img) {
    e=document.getElementById(id);
	var img1 = document.getElementById(img);
    if (e.style.display == 'none' || e.style.display ==""){
     e.style.display = 'block';
	 img1.setAttribute("src", "files/minus.gif");
	}
	else{
	 e.style.display = 'none';
	 img1.setAttribute("src", "files/plus1.gif");
	}
}

function changeImg() {
      var floatimg = document.getElementById("floatimg");
      floatimg.setAttribute("src", "img/imprintTower_image004.jpg");
    }


function hiddenTR(vtrGroup, show_el, hide_el){
  trGroupElements = document.getElementsByTagName('TR');
//  alert(trGroupElements.length);
  
  for (var i=0; i < trGroupElements.length; i++){
    if (trGroupElements[i].attributes['group'].value == vtrGroup){
      trGroupElements[i].style.display='none';
    }
  
  }
  var s=document.getElementById(show_el);
  s.style.display = 'inline';
  var h=document.getElementById(hide_el);
  h.style.display = 'none';
}
function showTR(vtrGroup, show_el, hide_el){
  trGroupElements = document.getElementsByTagName('TR');
//  alert(trGroupElements.length);
  
  for (var i=0; i < trGroupElements.length; i++){
    if (trGroupElements[i].attributes['group'].value == vtrGroup){
      trGroupElements[i].style.display='block';
    }
  
  }
  var s=document.getElementById(show_el);
  s.style.display = 'inline';
  var h=document.getElementById(hide_el);
  h.style.display = 'none';
}
