/************************************************ Advanced Gallery script- Dynamic Drive DHTML code library (www.dynamicdrive.com)* This notice must stay intact for legal use* Visit http://www.dynamicdrive.com/ for full source code***********************************************/var tickspeed=10000 //ticker speed in miliseconds (2000=2 seconds)var displaymode="manual" //displaymode ("auto" or "manual"). No need to modify as form at the bottom will control it, unless you wish to remove form.if (document.getElementById){document.write('<style type="text/css">\n')document.write('.gallerycontent{display:none;}\n')document.write('</style>\n')}var selectedDiv=0var totalDivs=0function getElementbyClass(classname){partscollect=new Array()var inc=0var alltags=document.all? document.all.tags("DIV") : document.getElementsByTagName("*")for (i=0; i<alltags.length; i++){if (alltags[i].className==classname)partscollect[inc++]=alltags[i]}}function contractall(){var inc=0while (partscollect[inc]){partscollect[inc].style.display="none"inc++}}function expandone(){var selectedDivObj=partscollect[selectedDiv]contractall()selectedDivObj.style.display="block"if (document.gallerycontrol)temp.options[selectedDiv].selected=trueselectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0if (displaymode=="auto")autocontrolvar=setTimeout("expandone()",tickspeed)}function populatemenu(){temp=document.gallerycontrol.menufor (m=temp.options.length-1;m>0;m--)temp.options[m]=nullfor (i=0;i<totalDivs;i++){var thesubject=partscollect[i].getAttribute("id")thesubject=(thesubject=="" || thesubject==null)? "HTML Content "+(i+1) : thesubjecttemp.options[i]=new Option(thesubject,"")}temp.options[0].selected=true}function manualcontrol(menuobj){if (displaymode=="manual"){selectedDiv=menuobjexpandone()}}function preparemode(themode){displaymode=themodeif (typeof autocontrolvar!="undefined")clearTimeout(autocontrolvar)if (themode=="auto"){document.gallerycontrol.menu.disabled=trueautocontrolvar=setTimeout("expandone()",tickspeed)}elsedocument.gallerycontrol.menu.disabled=false}function startgallery(){if (document.getElementById("controldiv")) //if it existsdocument.getElementById("controldiv").style.display="block"getElementbyClass("gallerycontent")totalDivs=partscollect.lengthif (document.gallerycontrol){populatemenu()if (document.gallerycontrol.mode){for (i=0; i<document.gallerycontrol.mode.length; i++){if (document.gallerycontrol.mode[i].checked)displaymode=document.gallerycontrol.mode[i].value}}}if (displaymode=="auto" && document.gallerycontrol)document.gallerycontrol.menu.disabled=trueexpandone()}if (window.addEventListener)window.addEventListener("load", startgallery, false)else if (window.attachEvent)window.attachEvent("onload", startgallery)else if (document.getElementById)window.onload=startgallery/****************************************** Dissolving Image Rollover- By Roy Whittle (http://www.javascript-fx.com/)* Featured on/available at http://www.dynamicdrive.com/* This notice must stay intact for use*****************************************///Generate transition CSS (transition=0 to 23)document.write('<STYLE TYPE="text/css">.imgTrans{ filter:revealTrans(duration=0.4,transition=12) }</STYLE>');//Uncomment the next line for fading rollovers instead of dissolving://document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.4) }</STYLE>');var onImages=new Array();function Rollover(imgName, imgSrc){	onImages[imgName] = new Image();	onImages[imgName].src = imgSrc;}function turnOn(imgName){ 	if(document.images[imgName].filters != null)		document.images[imgName].filters[0].apply();	document.images[imgName].offSrc = document.images[imgName].src;	document.images[imgName].src    = onImages[imgName].src;	if(document.images[imgName].filters != null)		document.images[imgName].filters[0].play();}function turnOff(imgName){ 	if(document.images[imgName].filters != null)		document.images[imgName].filters[0].stop();	document.images[imgName].src = document.images[imgName].offSrc;}//Specify name of participating images, plus paths to their onMouseover replacements:Rollover("Tour", "menu/Tour.jpg");Rollover("Bio", "menu/Bio.jpg");Rollover("Store", "menu/Store.jpg");Rollover("Video", "menu/Video.jpg");Rollover("Ensemble", "menu/Ensemble.jpg");Rollover("Contact", "menu/Contact.jpg");