/**/

var count1 = 0;

function writein(item, cont, col) {
  if (document.getElementById) {
    if (count1 == 0) {
      document.getElementById(cont).style.visibility = "visible";
      document.getElementById(cont).style.backgroundColor = bgcol[col];
      document.getElementById(cont).innerHTML = divcontentId[item];// + addTxt;
      ++count1;
    } else {
      document.getElementById(cont).innerHTML = "";
      document.getElementById(cont).style.visibility = "hidden";
      count1 = 0;
    }
  }
}

function writein2(item, cont, col) {
  if (document.getElementById) {
    if (count1 == 0) {
      document.getElementById(cont).style.visibility = "visible";
      document.getElementById(cont).style.backgroundColor = bgcolnv[col];
      document.getElementById(cont).innerHTML = divnavcontId[item];// + addTxt;
      ++count1;
    } else {
      document.getElementById(cont).innerHTML = "";
      document.getElementById(cont).style.visibility = "hidden";
      count1 = 0;
    }
  }
}

function setText(item, cont) {
  if (document.getElementById) {
    document.getElementById(cont).innerHTML = divContXtraId[item];
  }
}

function clearText(cont) {
  if (document.getElementById) {
    document.getElementById(cont).innerHTML = '';
  }
}

function rover(obj) {
  if (document.getElementById){
    var iSrc = obj.src;
    var imaName = obj.src.match(/(\w+)\.(\w+)$/);
    var pattern = new RegExp(imaName[0]);
    var newIma = imaName[1] + "_over." + imaName[2];
    /*alert ("orig iSrc = " + iSrc + ", newIma = " + newIma);*/ 
    var imasrc = iSrc.replace(pattern, newIma);
    obj.setAttribute("src",imasrc);
    /*var iSrc2 = obj.src;*/ 
    /*alert("new src = " + iSrc2);*/ 
  }
}

function hideobj(cont) {
  document.getElementById(cont).innerHTML = "";
  document.getElementById(cont).style.visibility = "hidden";
  count1 = 0;
}

function clr(obj) {
  if (document.getElementById) {
    obj.value="";
  }
}

function conf() {
  if (confirm("Are you sure you want to enter this data?\nThe information will become live on the website") ) {
    return true;
  } else {
    return false;
  }
}

