
var colorArray = Array(7);
colorArray[0] = "Blue";
colorArray[1] = "Brown";
colorArray[2] = "Tan";
colorArray[3] = "Green";
colorArray[4] = "Maroon";
colorArray[5] = "Orange";
colorArray[6] = "Purple";


PColor = getPColor();

if (PColor=="Brown") {
  document.write('<link rel="stylesheet" href="brown.css">')
} else if (PColor=="Blue") {
  document.write('<link rel="stylesheet" href="blue.css">')
} else if (PColor=="Orange") {
  document.write('<link rel="stylesheet" href="orange.css">')
} else if (PColor=="Tan") {
  document.write('<link rel="stylesheet" href="tan.css">')
} else if (PColor=="Green") {
  document.write('<link rel="stylesheet" href="green.css">')
} else if (PColor=="Purple") {
  document.write('<link rel="stylesheet" href="purple.css">')
} else if (PColor=="Maroon") {
  document.write('<link rel="stylesheet" href="maroon.css">')
}  


function getPColor() {
var PNo = Math.round(Math.random() * 6);
return colorArray[PNo];
}


function MenuInfo(colorname, bgc, conimg, dsimg) {
this.cn = colorname;
this.bgc = bgc;
this.conimg = conimg;
this.dsimg = dsimg;
}


function wrtmenu(pagename, mcolor) {
var MenuText
var mSpace = '<TR><TD WIDTH=172 HEIGHT=12><IMG SRC="images/spacer.gif" height=12 WIDTH=172></TD>';
var menuNo = 0;
var classText;

menuarr = new Array(7);
menuarr[0] = new MenuInfo("Blue","#0000CC","ContactBlue.gif","DrumStick172.gif");
menuarr[1] = new MenuInfo("Maroon","#66001E","Contactmaroon.gif","DrumStick172maroon.gif");
menuarr[2] = new MenuInfo("Brown","#663300","Contactbrown.gif","DrumStick172brown.gif");
menuarr[3] = new MenuInfo("Purple","#663366","Contactpurple.gif","DrumStick172purple.gif");
menuarr[4] = new MenuInfo("Tan","#CC9933","Contacttan.gif","DrumStick172tan.gif");
menuarr[5] = new MenuInfo("Green","#006600","Contactgreen.gif","DrumStick172green.gif");
menuarr[6] = new MenuInfo("Orange","#FF6600","Contactorange.gif","DrumStick172orange.gif");

for (var i=0;i<=6;i++) {
  if (menuarr[i].cn == mcolor) {
    menuNo = i;
  }
}

MenuText = '<TABLE WIDTH=172 BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=' + menuarr[menuNo].bgc + ' HEIGHT="100%"><TR><TD width=172 height=61 align=center><a href="contact.html"><IMG SRC="images/' + menuarr[menuNo].conimg + '" border=0 alt="Contact Rob"></a></TD></TR>'
         ;

MenuText = MenuText + '<TR><TD WIDTH=172 HEIGHT=56><a href="CommunityNetwork.html"><img src="images/commnetwork.gif" width=172 height=56 border=0></a></TD></TR>'
         + mSpace;

         if (pagename == 'home') {
           classText = ' class=fClass' 
         } else {
           classText = ' class=aClass'
         }
         

MenuText = MenuText + '<TR><TD WIDTH=154 HEIGHT=155 align="center"><a href="StudentPowerQuestionnaire.html"><img src="images/StudentPowerSurvey.jpg" width=154 height=123 border=0 align="center"></a></TD></TR>'
         + mSpace;

         if (pagename == 'home') {
           classText = ' class=fClass' 
         } else {
           classText = ' class=aClass'
         }
         
MenuText = MenuText + '<TR><TD WIDTH=154 HEIGHT=155 align="center"><a href="#" onClick=WatchPractice();><img src="images/VIDEO LOGO.jpg" width=154 height=155 border=0 align="center"></a></TD></TR>'
         + mSpace;

         if (pagename == 'home') {
           classText = ' class=fClass' 
         } else {
           classText = ' class=aClass'
         }
         
         
MenuText = MenuText + '<TR><TD WIDTH=172 HEIGHT=34 background="images/' + menuarr[menuNo].dsimg + '" style="background-repeat: no-repeat">&nbsp;<a href="main.html"' + classText + '>Home</a></TD></TR>'
         + mSpace;

         if (pagename == 'program') {
           classText = ' class=fClass' 
         } else {
           classText = ' class=aClass'
         }
MenuText = MenuText + '<TR><TD WIDTH=172 HEIGHT=34 background="images/' + menuarr[menuNo].dsimg + '" style="background-repeat: no-repeat">&nbsp;<a href="program.html"' + classText + '>The Program</a></TD></TR>'
         + mSpace

         if (pagename == 'whois') {
           classText = ' class=fClass' 
         } else {
           classText = ' class=aClass'
         }
MenuText = MenuText + '<TR><TD WIDTH=172 HEIGHT=34 background="images/' + menuarr[menuNo].dsimg + '" style="background-repeat: no-repeat">&nbsp;<a href="whois.html"' + classText + '>Who Is Rob?</a></TD></TR>'
         + mSpace;

         if (pagename == 'testimony') {
           classText = ' class=fClass' 
         } else {
           classText = ' class=aClass'
         }
MenuText = MenuText + '<TR><TD WIDTH=172 HEIGHT=34 background="images/' + menuarr[menuNo].dsimg + '" style="background-repeat: no-repeat">&nbsp;<a href="testimony.html"' + classText + '>Rah! Rah! Rob!</a></TD></TR>'
         + mSpace;

         if (pagename == 'events') {
           classText = ' class=fClass' 
         } else {
           classText = ' class=aClass'
         }
MenuText = MenuText + '<TR><TD WIDTH=172 HEIGHT=34 background="images/' + menuarr[menuNo].dsimg + '" style="background-repeat: no-repeat">&nbsp;<a href="events.html"' + classText + '>Rob' + "'" + 's Gigs</a></TD></TR>'
         + mSpace;

         if (pagename == 'gallery') {
           classText = ' class=fClass' 
         } else {
           classText = ' class=aClass'
         }
MenuText = MenuText + '<TR><TD WIDTH=172 HEIGHT=34 background="images/' + menuarr[menuNo].dsimg + '" style="background-repeat: no-repeat">&nbsp;<a href="gallery.html"' + classText + '>Rob' + "'" + 's Photos</a></TD></TR>'
         + mSpace;

         if (pagename == 'thanks') {
           classText = ' class=fClass' 
         } else {
           classText = ' class=aClass'
         }
MenuText = MenuText + '<TR><TD WIDTH=172 HEIGHT=34 background="images/' + menuarr[menuNo].dsimg + '" style="background-repeat: no-repeat">&nbsp;<a href="thanks.html"' + classText + '>Thank You</a></TD></TR>'
         + mSpace;

         if (IsFlash) {
            MenuText = MenuText + '<TR><TD align=center style="color:#FFFFFF"><STRONG>A Drum Roll For My Sponsors</STRONG></TD></TR>'
            + mSpace
            + '<TR><TD WIDTH=172 HEIGHT=185 align=center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=160 HEIGHT=185><PARAM NAME=movie VALUE="DrumAds.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#CCCCFF> <EMBED src="DrumAds.swf" quality=high bgcolor=#CCCCFF  WIDTH=160 HEIGHT=185 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></TD></TR>';
         }
         document.write(MenuText);

if (pagename == 'testimony') {
  wrtblurbs();
} else if (pagename == 'thanks') {
  wrthiefer();
}
document.write(mSpace + '<TR><TD align=center><a href="http://www.jimbennett.org" class=aClass target="_blank"><img src="images/jblogowebred-80.jpg"></a></TD></TR>')
document.write('<TR><TD WIDTH=172 HEIGHT="100%"><IMG SRC="images/spacer.gif" WIDTH=172 HEIGHT="100%"></TD></TR>')
document.write('</TABLE>');
}



function setT2(mcolor) {

if (mcolor == "Brown") {
  document.T2.src = "images/top2brown.gif"
} else if (mcolor == "Blue") {
  document.T2.src = "images/top2.gif"
} else if (mcolor == "Maroon") {
  document.T2.src = "images/top2maroon.gif"
} else if (mcolor == "Tan") {
  document.T2.src = "images/top2tan.gif"
} else if (mcolor == "Green") {
  document.T2.src = "images/top2green.gif"
} else if (mcolor == "Orange") {
  document.T2.src = "images/top2orange.gif"
} else if (mcolor == "Purple") {
  document.T2.src = "images/top2purple.gif"
}}



function wrtblurbs() {
var BlurbText;

BlurbText = '<TR><TD WIDTH=172>'
          + '<P style="Color: #FFFFFF; text-align: center;"><STRONG>PRESS CLIPPINGS<P style="Color: #FFFFFF">"Bang the Drum Quickly," Lary Bloom, Northeast Magazine</STRONG>'
          + '<P style="Color: #FFFFFF">Rob the Drummer is a bear of a man who, when he performs, wears no shoes or socks. This trait was not lost on the kids. They watched husky Rob as he set up a huge and transparent drum set made of fiberglass, with four tom- toms on top and four tom-toms on the bottom, and two large bass drums, and cymbals. And behind this impressive instrument was something they had never seen on MTV - an enormous gong. <a href="#" onClick=window.open("Press1.html","_blank","WIDTH=400,HEIGHT=400,scrollbars") class="dClass">(full story)</a>'
          + '<P style="Color: #FFFFFF"><BR><STRONG>"Rob The Drummer: Connecting With Kids Through Drums," Robyn Flans, Modern Drummer</STRONG>'
          + '<P style="Color: #FFFFFF">Rob The Drummer (a.k.a. Robert L. Gottfried) has the best of both worlds. He is able to play the music he enjoys by traveling with such artists as Larry Young and Jeff Pevar. At the same time, he' + "'" + 's able to fulfill his soul' + "'" + 's mission: to help the youth of today with a specifically designed program that integrates drums and spirituality. <a href="#" onClick=window.open("Press2.html","_blank","WIDTH=400,HEIGHT=400,scrollbars") class="dClass">(full story)</a> '
          + '<P style="Color: #FFFFFF"><BR><STRONG>"Rob The Drummer Brings Pro-Arts, Anti-Drug message to Children and Adults Everywhere," Shawn Brown, Percussion News</STRONG>'
          + '<P style="Color: #FFFFFF">When you' + "'" + 're a grown-up, reaching little children is easy. They look up to you and rely on you to tell them what to do, and to set an example for them. <a href="#" onClick=window.open("Press3.html","_blank","WIDTH=400,HEIGHT=400,scrollbars") class="dClass">(full story)</a>'
          + '</TD></TR>'
document.write(BlurbText);

}


function wrthiefer() {
var hieferText;

hieferText = '<TR><TD WIDTH=172>'
            + '<P style="Color: #FFFFFF; text-align: center;"><img src="images/US45b1.jpg"><P style="Color: #FFFFFF">"ROB would like to recommend a very unique and time honored charity, <a href="http://www.heifer.org" target="_blank" class="dClass">Heifer International</a>.  When you give a gift through them....like a cow that gives milk to a Family....or trees that will flourish in later years....you TRULY give a renewable resource.....the Gift that keeps on Giving.....the very best kind!!  Walter Cronkite, the most trusted Man in the World, supports them.....and I support them!  They are incredibly Spiritual and nice Folks.....become a Heifer Hoofer!!  Thanks.'
            + '</TD></TR>'
document.write(hieferText);

}

var oWin;
var IsWin = false;

function WatchWMV(VName) {
var FileName = 'http://www.robthedrummer.com/Video/' + VName

if (IsWin == true) {
  oWin.close();
}
//oWin = window.open("", "sa","width=340, height=260,toolbar,status,resizable,location")
oWin = window.open("", "sa","width=340, height=260")
IsWin = true;
//alert(VName);
oWin.document.write('<HTML><HEAD><TITLE>Rob The Drummer Testimonials</TITLE></HEAD><BODY leftmargin=0 topmargin=0 bgcolor=#993333><table width="100%" height="100%"><TR><TD width="100%" height="100%" align=center valign=middle>')

oWin.document.write('<object id="video" width="320" height="240" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject">')
oWin.document.write('<param name="AutoStart" value="true">')
oWin.document.write('<param name="FileName" value="' + FileName + '">')
oWin.document.write('<param name="ShowControls" value="False">')
oWin.document.write('<param name="ShowStatusBar" value="False">')
oWin.document.write('<embed type="application/x-mplayer2" src=' + FileName + ' name="video" width="320" height="240" autostart="1" showcontrols="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/">')
oWin.document.write('</object>')

oWin.document.write('</TD></TR></TABLE></BODY></HTML>')

}


function WatchRP(VName) {
var FileName = 'http://www.robthedrummer.com/Video/' + VName

if (IsWin == true) {
  oWin.close();
}
oWin = window.open("", "sa","width=340, height=260")
IsWin = true;
oWin.document.write('<HTML><HEAD><TITLE>Rob The Drummer Testimonials</TITLE></HEAD><BODY leftmargin=0 topmargin=0 bgcolor=#993333><table width="100%" height="100%"><TR><TD width="100%" height="100%" align=center valign=middle>')

oWin.document.write('<object id="video" classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="320" height="240">')
oWin.document.write('<param name="src" value="' + FileName + '">')
oWin.document.write('<param name="AutoStart" value="true">')
oWin.document.write('<param name="controls" value="ImageWindow">')
oWin.document.write('<param name="console" value="cons">')
oWin.document.write('<embed src="' + FileName + '" type="audio/x-pn-realaudio-plugin" width="320" height="240" name="video" class="video" autostart="true" controls="ImageWindow" console="cons">')
oWin.document.write('</object>')


oWin.document.write('</TD></TR></TABLE></BODY></HTML>')
}


function WatchPractice() {

window.open("RTD_demo.html", "_blank","width=340, height=300")

}
