

// Image Gallery
// http://www.alistapart.com/articles/imagegallery
function showPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('placeholder').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}


// Last Modified Date
	var modDate = new Date(document.lastModified)
	var modYear = modDate.getYear()
	if(modYear<1000) modYear+=1900
	var lastmod = "Last Modified: " + (modDate.getMonth()+1) + "/" + modDate.getDate() + "/" + (modYear+"").substring(2,4)

// Last Modified Date MouseOver
	function mOverColor(){
		lastmodified.style.color="#ff0000";
		lastmodified.style.fontSize="10pt";
	}
	function mOutColor(){
		lastmodified.style.color="#cccccc";
		lastmodified.style.fontSize="7pt";
	}

// Today's Date
	function TodaysDate(){
	var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday");
	var monthNames = new Array(
	"January","February","March","April","May","June","July", "August","September","October","November","December");
	var now = new Date();
	document.write(dayNames[now.getDay()] + ", " + 
	monthNames[now.getMonth()] + " " + 
	now.getDate() + ", " + now.getFullYear());
	}

// MouseOver Icons
	function displaydesc(help_desc){
	navhelp.innerHTML=help_desc;}

// Expand Text (Next Text Block)
// USE THIS CODE IF YOU ARE EXPANDING/COLLPASING THE VERY NEXT BLOCK OF TEXT
var ns6=document.getElementById&&!document.all?1:0
var head="display:''"
var folder=''
function expandit(curobj){
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}

// Expand Text (Any)
// USE THIS CODE IF YOU ARE NAMING THE SECTIONS TO BE EXPANDED/COLLAPSED (NOT ADJACENT TO LINK)
function blocking(nr)
{
	if (document.layers)
	{
		current=(document.layers[nr].display=='none')?'block':'none';
		document.layers[nr].display=current;
	}
	else if (document.all)
	{
		current=(document.all[nr].style.display=='none')?'block':'none';
		document.all[nr].style.display=current;
	}
	else if (document.getElementById)
	{
		vista=(document.getElementById(nr).style.display=='none')?'block':'none';
		document.getElementById(nr).style.display=vista;
	}
}

// Clear Default Text from Search Textbox
	function clearText(thefield){
		if (thefield.defaultValue==thefield.value)
		thefield.value = ""
	} 
	function addText(thefield,thetext){
		if (thefield.value=="")
		thefield.value = thetext;
	}


