// featureControl JavaScript Document

//Toggle information, captions, or pictures
function hideall(){
  for (count=1; count<5; count+=1){ // set "count" to one more than the total images/links
  document.getElementById('Hov'+count).style.display='none';
  }
}

function showThis(a){
	document.getElementById(a).style.display='block';
}

function hideThis(a){
	document.getElementById(a).style.display='none';
}

function toggleThis(a,b)//Generic Switch function
{
  var e=document.getElementById(a);
  var f=document.getElementById(b);

  if(!e)return true;
  if(e.style.display=="none"){
	f.style.display="none"
    e.style.display="block"
  } else {
	f.style.display="block"
    e.style.display="none"
  }
  return true;
}

/* Original:  Ronnie T. Moore -->
<!-- Web Site:  The JavaScript Source -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin*/
function initMail(form) {
text = "Check out this page:  " + window.location;
form.message.value = "Hi " + form.sendto.value + " (" + form.to.value + "):\n\n"
 + text + "\n\nYour Friend,\n" + form.sendername.value + "(" + form.senderemail.value + ")";
return (form.to.value != "");
}
/*  End --> */


/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
