function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('mainImage').src = whichpic.href;
  return false;
 } else {
  return true;
 }
}

function showPicIfKey(whichPic, oEvent) {
	return true;	// Browsers seem to handle tab and return key presses without my help
}

	
function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function borderImg(imID) {
	var img = document.getElementById(imID);
	img.style.width = '46px';
	img.style.height = '46px';
	img.style.border = '2px solid #777';
}


function unBorderImg(imID) {
	var img = document.getElementById(imID);
	img.style.width = '50px';
	img.style.height = '50px';
	img.style.border = 'none';
}


function stopAndRewindMovie(movieID) {
	alert "Stop movie";
	var flashMovie = document.getElementById(movieID);
	flashMovie.StopPlay();
	flashMovie.Rewind();
}


