/***********************************************
General JS
**********************************************/
function showImage(el){
  var img = String(el.src)
  var id = parseInt(img.substr(img.lastIndexOf("/")+1, img.length))
  var ext = img.substr(img.lastIndexOf("."), img.length)
  var imgname = img.substr(0, img.lastIndexOf("/")+1)+id+ext
  window.open(imgname)
}

var contShown = false;

function showhidecontack(){
  if(cont =  document.getElementById("contactcont")){
    cont.style.display = contShown ? "none" : "block";
    contShown = !contShown
  }
}

function setHeight(){
  return;

  if(!document.all)
    return
  var t=document.getElementById("top");
  var m=document.getElementById("menuc");var mh = m.clientHeight;
  var c=document.getElementById("content");var ch = c.clientHeight;
  var r=document.getElementById("right");var rh = r.clientHeight;
  var h = mh>ch?mh:ch;
  h = rh>h?rh:h;
  if(h<document.body.clientHeight)
    return;
  m.style.height=t.clientHeight+h+"px";
  c.style.height=h+"px";
  r.style.height=h+"px";
}

function chgTdBgIn(o){
  o.style.backgroundColor = "#FFEABD";
}

function chgTdBgOut(o){
  o.style.backgroundColor = "transparent";
}