/*
Javascript Browser Sniff 1.0
Jim Cummins - http://www.conxiondesigns.com
*/
var isIE = false;
var isOther = false;
var isNS4 = false;
var isNS6 = false;

if(document.getElementById)
{
	if(!document.all)
	{
		isNS6=true;
	}
	if(document.all)
	{
		isIE=true;
	}
}
else
{
	if(document.layers)
	{
		isNS4=true;
	}
	else
	{
		isOther=true;
	}
}

/*
End of Browser Sniff 1.0
*/

/*
Access Layer Style Properties
Jim Cummins - http://www.conxiondesigns.com
Required components:  Javascript Browser Sniff 1.0
*/
function aLs(layerID)
{
var returnLayer;
	if(isIE)
	{
		returnLayer = eval("document.all." + layerID);
	}
	if(isNS6)
	{
		returnLayer = eval("document.getElementById('" + layerID + "')");
	}
	if(isNS4)
	{
		returnLayer = eval("document." + layerID);
	}
	if(isOther)
	{
		returnLayer = "null";
		alert("-[Error]-\\nDue to your browser you will probably not\\nbe able to view all of the following page\\nas it was designed to be viewed. We regret\\nthis error sincerely.");
	}
return returnLayer;
}
/*
End of Accessing Element by ID
*/



<!--

/*
Script by FPMC at http://jsarchive.8m.com
Submitted to JavaScript Kit (http://javascriptkit.com)
For this and 400+ free scripts, visit http://javascriptkit.com
*/

//set image paths
src = ["images/benefit2010/benefit0.jpg","images/benefit2010/178.jpg","images/benefit2010/194.jpg", "images/benefit2010/213.jpg", "images/benefit2010/224.jpg", "images/benefit2010/247.jpg"]


//set corresponding urls
url = ["http://www.showtunestheatre.org", "http://www.showtunestheatre.org", "http://www.showtunestheatre.org", "http://www.showtunestheatre.org", "http://www.showtunestheatre.org","http://www.showtunestheatre.org"]

//set duration for each image
duration = 8;

captions = ["Artistic Director Martin Charnin (at the podium) and the cast of &quot;Music! Music! Music!&quot; Photo copyright 2010 Chris Bennion.",
"The women in the cast share that &quot;Diamonds Are A Girl's Best Friend.&quot; Copyright 2010 Chris Bennion.",
"Executive Producer Maggie Stenson serenades how &quot;To Keep My Love Alive.&quot; Copyright 2010 Chris Bennion.",
"Music Directors Dwight Beckmeyer (L) and Scott Warrender (R) perform a rousing Gershwin medley. Copyright 2010 Chris Bennion.",
"The boys are just &quot;Standing On The Corner&quot; while the girls enjoy the song.  Copyright 2010 Chris Bennion.",
"Cast bows for Showtunes at The Moore, February 6, 2010.  Copyright 2010 Chris Bennion."];

//Please do not edit below
ads=[]; ct=0;
function switchAd() {
	fade(aLs("slideshow"));
	var n=(ct+1)%src.length;
	if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
		document["Show_Image"].src = ads[ct=n].src;
	}
	ads[n=(ct+1)%src.length] = new Image;
	ads[n].src = src[n];
	setTimeout("switchAd()",duration*1000);
	if(n > 0)aLs("caption").innerHTML=captions[n-1];
	else aLs("caption").innerHTML=captions[captions.length-1];
	fade(aLs("slideshow"));
}

function doLink(){
location.href = url[ct];
} onload = function(){
if (document.images)
switchAd();
}

function fade(eid)
{
  var element = document.getElementById(eid);
  if(element == null)
    return;
   
  if(element.FadeState == null)
  {
    if(element.style.opacity == null
        || element.style.opacity == ''
        || element.style.opacity == '1')
    {
      element.FadeState = 2;
    }
    else
    {
      element.FadeState = -2;
    }
  }
   
  if(element.FadeState == 1 || element.FadeState == -1)
  {
    element.FadeState = element.FadeState == 1 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft;
  }
  else
  {
    element.FadeState = element.FadeState == 2 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade;
    setTimeout("animateFade(" + new Date().getTime() + ",'" + eid + "')", 33);
  }  
}

function animateFade(lastTick, eid)
{  
  var curTick = new Date().getTime();
  var elapsedTicks = curTick - lastTick;
 
  var element = document.getElementById(eid);
 
  if(element.FadeTimeLeft <= elapsedTicks)
  {
    element.style.opacity = element.FadeState == 1 ? '1' : '0';
    element.style.filter = 'alpha(opacity = '
        + (element.FadeState == 1 ? '100' : '0') + ')';
    element.FadeState = element.FadeState == 1 ? 2 : -2;
    return;
  }
 
  element.FadeTimeLeft -= elapsedTicks;
  var newOpVal = element.FadeTimeLeft/TimeToFade;
  if(element.FadeState == 1)
    newOpVal = 1 - newOpVal;

  element.style.opacity = newOpVal;
  element.style.filter = 'alpha(opacity = ' + (newOpVal*100) + ')';
 
  setTimeout("animateFade(" + curTick + ",'" + eid + "')", 33);
}