// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function subnavHover(el) {
  el.className = "hover";
  el.onmouseout = function() {
    el.className = "";
  }
}

function buttonHover(el) {
   el.src = 'images/buttons/'+el.id+'_active.gif';
   el.onmouseout = function() {
      el.src = 'images/buttons/'+el.id+'.gif';
   }
}

function setLoginLayerSize() {
   //alert("drin");
  document.getElementById('loginLayer').style.width = document.body.offsetWidth+'px';
  document.getElementById('loginLayer').style.height = document.body.offsetHeight+'px';
}

function openLoginLayer() {
   document.getElementById('loginWrapper').style.display = "block";
}

function closeLoginLayer() {
   document.getElementById('loginWrapper').style.display = "none";
}

function addBorderClass(el) {
   el.className = el.className+" border";
}

function removeBorderClass(el) {

   el.className = el.className.replace(/border/g,"");

}
