// ************************************************************************
// 
//   COPYRIGHT (C) 2002-2009 by David Nason
// 
//   ALL RIGHTS RESERVED
// 
//   MODULE:       showimg.js
// 
//   DESCRIPTION:  
// 
//   HISTORY:
//    10 Apr 2002  David Nason
//                 Created.
// 
// ************************************************************************

var vidW = 800;
var vidH = 533;

var theShows = new Array();
theShows[0] = '573415370';
theShows[1] = '966644693';
theShows[2] = '129165463';
theShows[3] = '44132654';
theShows[4] = '9311489';
theShows[5] = '250672722';
theShows[6] = '340951964';
theShows[7] = '450912818';
theShows[8] = '484289479';
theShows[9] = '47749454';
theShows[10] = '529931389';
theShows[11] = '371703218';
theShows[12] = '446319348';
theShows[13] = '344570096';
theShows[14] = '260066707';
theShows[15] = '123890758';
theShows[16] = '207412320';
theShows[17] = '175335311';
theShows[18] = '18883542';
theShows[19] = '336633631';
theShows[20] = '327152695';
theShows[21] = '297625356';
theShows[22] = '72726647';
theShows[23] = '202323964';
theShows[24] = '446926641';
theShows[25] = '165601997';
theShows[26] = '357567351';
theShows[27] = '417155161';
theShows[28] = '117386852';
theShows[29] = '242558996';
theShows[30] = '435301170';
theShows[31] = '353299397';
theShows[32] = '315306537';
theShows[33] = '19441808';
theShows[34] = '44375839';
theShows[35] = '708719781';
theShows[36] = '713734111';
theShows[37] = '815122213';
theShows[38] = '846865284';
theShows[39] = '620587000';
theShows[40] = '5387811803063022465';
theShows[41] = '605239490';
	 
var altText = new Array();
altText[0] = 'Toymaker&squot;s Doll, 2009';
altText[1] = 'Nutcracker 2008';
altText[2] = 'Recital 2009 : Adult Hip Hop';
altText[3] = 'Recital 2009 : Adv. Hip Hop';
altText[4] = 'Recital 2009 : Ballet / Jazz 6-7';
altText[5] = 'Recital 2009 : Ballet / Tap 4-5';
altText[6] = 'Recital 2009 : Ballet / Tap 5-6';
altText[7] = 'Recital 2009 : Ballet / Tap 6-7';
altText[8] = 'Recital 2009 : Ballet A1';
altText[9] = 'Recital 2009 : Ballet A2';
altText[10] = 'Recital 2009 : Ballet A3/B';
altText[11] = 'Recital 2009 : Ballet B';
altText[12] = 'Recital 2009 : Beg. Hip Hop';
altText[13] = 'Recital 2009 : Beg. Pointe';
altText[14] = 'Recital 2009 : Improv / Choreo 1';
altText[15] = 'Recital 2009 : Improv / Choreo 2';
altText[16] = 'Recital 2009 : Int. Hip Hop';
altText[17] = 'Recital 2009 : Jazz A1';
altText[18] = 'Recital 2009 : Jazz A2';
altText[19] = 'Recital 2009 : Jazz A3';
altText[20] = 'Recital 2009 : Lyrical A3';
altText[21] = 'Recital 2009 : Lyrical B';
altText[22] = 'Recital 2009 : Modern A2/3';
altText[23] = 'Recital 2009 : Modern B';
altText[24] = 'Recital 2009 : Pointe';
altText[25] = 'Recital 2009 : Pre-Ballet 4-5';
altText[26] = 'Recital 2009 : Pre-Ballet 5-6';
altText[27] = 'Recital 2009 : Rep';
altText[28] = 'Recital 2009 : Senior Duet';
altText[29] = 'Recital 2009 : Seniors 2009';
altText[30] = 'Recital 2009 : Tap A1';
altText[31] = 'Recital 2009 : Tap A2/3';
altText[32] = 'Recital 2009 : Tap C';
altText[33] = 'Recital 2009 : Teen / Adult Ballet';
altText[34] = 'Recital 2009 : Teen Hip Hop';
altText[35] = 'Recital 2008';
altText[36] = 'Recital 2007';
altText[37] = 'Recital 2006';
altText[38] = 'Ox + Dragon';
altText[39] = 'Summer Intensive 2009';
altText[40] = 'Cinderella 2008';
altText[41] = 'Nutcracker 2009';

var thePlayer = new Array();
thePlayer[0] = 0;
thePlayer[1] = 0;
thePlayer[2] = 0;
thePlayer[3] = 0;
thePlayer[4] = 0;
thePlayer[5] = 0;
thePlayer[6] = 0;
thePlayer[7] = 0;
thePlayer[8] = 0;
thePlayer[9] = 0;
thePlayer[10] = 0;
thePlayer[11] = 0;
thePlayer[12] = 0;
thePlayer[13] = 0;
thePlayer[14] = 0;
thePlayer[15] = 0;
thePlayer[16] = 0;
thePlayer[17] = 0;
thePlayer[18] = 0;
thePlayer[19] = 0;
thePlayer[20] = 0;
thePlayer[21] = 0;
thePlayer[22] = 0;
thePlayer[23] = 0;
thePlayer[24] = 0;
thePlayer[25] = 0;
thePlayer[26] = 0;
thePlayer[27] = 0;
thePlayer[28] = 0;
thePlayer[29] = 0;
thePlayer[30] = 0;
thePlayer[31] = 0;
thePlayer[32] = 0;
thePlayer[33] = 0;
thePlayer[34] = 0;
thePlayer[35] = 0;
thePlayer[36] = 0;
thePlayer[37] = 0;
thePlayer[38] = 0;
thePlayer[39] = 0;
thePlayer[40] = 1;
thePlayer[41] = 0;


function showSlideShow(album, player, start, count, title, dobtn, ssW, ssH)
{
	var p = count;
	var whichSS = Math.floor(Math.random()*p) + start;
	
	if (album == "") {
		album = theShows[whichSS];
		player = thePlayer[whichSS];
		title = altText[whichSS];
	}

	if (title) {
		document.write('<h3 style="margin:0px; color:#7F7FFF">'+title+'</h3>');
	} 

	if (ssW == 0) { ssW = SSW };
	if (ssH == 0) { ssH = SSH };

	if (player) {
		document.write('<embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="800" height="533" flashvars="host=picasaweb.google.com&captions=1&RGB=0xFFFFFF&hl=en_US&feat=flashalbum&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2FBainbridgeBallet%2Falbumid%2F'+album+'%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');

	} else {
		document.write('<embed type="application/x-shockwave-flash" quality="high" width="'+ssW+'" height="'+ssH+'" align="" src="http://www.zenfolio.com/zf/code/slideshow.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" allowFullScreen="true" flashvars="id='+album+'&background=0xffffff&delay=5&transition=4&loop=1&allowfs=1&allowthumbs=1&showlink=1&allowtitles=0&showtitles=0&autostart=1&allowtopbar=1&allowcontrols=1&transparent=0&frame=0xFFFFFF"></embed>');
	
	}
	if (dobtn) {		
		document.write('<br><br><input type="button" value="Show another..." onClick="history.go(0)">');
	}
}
