   if( isCompetitionPage() ) {   }  else {     if(pageName.toLowerCase() != submitPage.toLowerCase())  {    document.write('<div style="text-align: center;"><img style="width: 800px; height: 22px;" alt="SJSU Ballroom Dance Club" src="images/sjsubdcbar.png"><br></div>');    document.write('<div style="text-align: center;">');  document.write('<span>');  }   var tempWord;  var tempLetter;      for(i = 0; i < buttonsMenuMain.length; i++)  {  if(i == 0)  document.write('<a href="http://' + getRootName() + '">');  else  document.write('<a href="' + buttonsMenuMain[i] + '.htm" >');        tempWord = buttonsMenuMain[i];;  document.write('&nbsp;<i><small>' + tempWord.substring(0,1).toUpperCase() + tempWord.substring(1,tempWord.length) + '</small></i></a>&nbsp;');  }    document.write('</span>');  document.write('</div>'); }               if( pageName.toLowerCase() != revisePage.toLowerCase())  {  var sc_project=548417;   var sc_partition=1;       document.write('<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c2.statcounter.com/counter.php?sc_project=548417&amp;java=0" alt="counter" border="0"> </noscript>');  }            function showstatus(){ window.status='San Jose State University Ballroom Dance Club'; return true; }  if (document.layers) 	document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT); document.onmouseover=showstatus; document.onmouseout=showstatus;           if(pageName.toLowerCase() == 'pictures') {       var picPrevButton = '<a onClick="backward();" style="cursor:hand;">&lt;&lt; Last </a>';  var picViewAll = '<a onClick="viewAllON();" style="cursor:hand;"> View All </a>';  var picNextButton = '<a onClick="forward();" style="cursor:hand;"> Next &gt;&gt;</a>';        var picturesButtons = '<big>'   + picPrevButton   + '&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;'   + picViewAll  + '&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;'   + picNextButton  + '</big>';         var pictureBorder = 0;      var picIndex = 0;      var allPictures = '';      for(picIndex = 0; picIndex < photos.length; picIndex += nextPhoto )  {  allPictures += '<a onClick="javascript:clicked(' + picIndex + ')" style="cursor:hand;">'  + '<img border="' + pictureBorder + '" '  + 'src="' + picturesPath + photos[picIndex] + '" '  + 'width="' + photos[picIndex + 1] + '" height="' + photos[picIndex + 2] + '"></a>';  }           var currentPicture = 0;      var newTag = '';          function viewAllON()  {  document.getElementById("picuresTag").innerHTML = allPictures ;   clickedOFF();  }            function viewAllOFF()  {  document.getElementById("picuresTag").innerHTML = '';   }            function clickedOFF()  {  document.getElementById("picTag").innerHTML = '';  }          function clicked(clikedPicture)  {  viewAllOFF();    currentPicture = clikedPicture;      newTag = '<img src="' + picturesPath + photos[clikedPicture]   + '" name="photoslider" style="filter:revealTrans(duration=0.5,transition=0)" border=0>'   + '<br><br>'   + picturesButtons  + '<br>';     document.getElementById("picTag").innerHTML = newTag;  keeptrack();    }          function startPicPage()  {  viewAllON();    }                      function applyeffect()  {  if (document.all)  {  photoslider.filters.revealTrans.Transition = Math.floor(Math.random()*23);  photoslider.filters.revealTrans.stop();  photoslider.filters.revealTrans.apply();  }  }          function playeffect()  {  if (document.all)  photoslider.filters.revealTrans.play();  }        function keeptrack()  {  var picStatus = "Image "+ ( (currentPicture / nextPhoto) + 1 ) + " of " + ( photos.length / nextPhoto) ;  window.status = picStatus;  document.getElementById("picuresTag").innerHTML = picStatus ;  }      function backward()  {      if (currentPicture - nextPhoto >= 0)  {  currentPicture -= nextPhoto;  applyeffect();    document.images.photoslider.src = picturesPath + photos[currentPicture];  playeffect();  keeptrack();  }  else  {  currentPicture = photos.length - nextPhoto;  applyeffect();    document.images.photoslider.src = picturesPath + photos[currentPicture];  playeffect();  keeptrack();  }    }        function forward()  {  if (currentPicture + nextPhoto < photos.length)  {  currentPicture += nextPhoto;  applyeffect();  document.images.photoslider.src = picturesPath + photos[currentPicture];   playeffect();  keeptrack();  }  else  {  currentPicture = 0;  applyeffect();  document.images.photoslider.src = picturesPath + photos[currentPicture];  playeffect();  keeptrack();   }    }          startPicPage();      }          