// GLOBAL JS STUFF

// ==================================================================================
// Simple Style Change Functions


// Toggle Visibiltiy 

function toggleViz(obj)
{
  if(document.getElementById(obj).style.display == "none")
    document.getElementById(obj).style.display = "block";
  else
    document.getElementById(obj).style.display = "none";
}


// Quick Show-Hide Function via CSS

function showit(boxid){ 
   document.getElementById(boxid).style.display="block"; 
} 

function hideit(boxid){ 
   document.getElementById(boxid).style.display="none"; 
}


// Switch Image Thumb Link to Active State

function clickt(id) {
   document.getElementById(id).style.backgroundPosition = '0 -32px';
}


// Highlight-Lowlight Certain Elements

function hiliteElement(src) {
         src.style.borderColor = '#777'; src.style.backgroundColor = '#ffffff';
}

function lowliteElement(src) {
         src.style.borderColor = '#ccc'; src.style.backgroundColor = '#eeeeee';
}





// ==================================================================================
// Attempt to hide e-mail address

var user;
var domain;
var suffix;

function hidemail(user, domain, suffix){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');

};

