function getObject(name) {
	var object;
	if (document.getElementById) {
		object = document.getElementById(name);
	}
	else if (document.all) {
		object = document.all[name];
	}
	else if (document.layers) {
		object = document.layers[name];
	}
	return object;
}

//function to 'show/hide' extra content divs
function showhide(Ans) {
	var myAnswer = document.getElementById(Ans);
	if (myAnswer.style.display == 'none')
		{ 
		 myAnswer.style.display = 'inline';
		}
		else
		{
		 myAnswer.style.display = 'none';
		}
}
		
//slideshow script from http://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;
 }
}

//for portfolio dropdown (DM generated)
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//function to 'light-up' thunmbnail links - sjg
function lightup(imageobject, opacity){
if (navigator.appName.indexOf("Netscape")!=-1&&parseInt(navigator.appVersion)>=5)
imageobject.style.MozOpacity=opacity/100
else if (navigator.appName.indexOf("Microsoft")!=-1&&parseInt(navigator.appVersion)>=4)
imageobject.filters.alpha.opacity=opacity
}

//function to expand thumbs on homepage
function big(xx) {
	document.images[xx].style.height = "60px";
	document.images[xx].style.width = "60px";
}




