okc=(navigator.appName.indexOf("Microsoft")!=-1) ? 0:1;
mac=(navigator.appName.indexOf("Safari")!=-1) ? 0:1;
showbut=new Image();showbut.src="images/show.gif";
hidebut=new Image();hidebut.src="images/hide.gif";
howtoClrs=new Array("#acacde","#adadee","#cdcdee","#ceceee","#dfefee","#efffff");
var sto;
var cnt=0;
var howto=0;
var nohowto=0;
function howtoFade() {
 clearTimeout(hidehowto);
 if (okc) { howto=document.getElementById("howto"); }
 if (cnt<5) {
  if (okc) { howto.style.color=howtoClrs[cnt]; }
  else { document.getElementById("howto").style.color=howtoClrs[cnt]; }
  cnt++;
  hidehowto=setTimeout("howtoFade()",120);
 }
 else {
  if (okc) { howto.style.visibility="hidden"; }
  else { document.getElementById("howto").style.visibility="hidden"; }
 }
}
function divVis(div) {
 clearTimeout(hidehowto);
 if (!nohowto) { hidehowto=setTimeout("howtoFade()",800); }
 subdiv="";
 imag=div+"1";
 thisimg=document.getElementById(imag);
 pardiv="div"+div.substr(3,1)+"0";
 thispardiv=document.getElementById(pardiv);
 bgnd="#ffffff";
 if (div.substr(4,1)=="1") {
  subdiv=div.substr(0,4)+"2";
  subimag=subdiv+"1";
  thissubdiv=document.getElementById(subdiv);
  thissubimg=document.getElementById(subimag);
  thissubdiv.style.position="absolute";
  thissubdiv.style.visibility="hidden";
 }
 thisdiv=document.getElementById(div);
 thisvis=thisdiv.style.visibility;
 if (thisvis=="visible") {
  pos="absolute";
  vis="hidden";
  bgnd="white";
  altr="Show More Detail";
  if (subdiv!="") {
   thissubimg.src=showbut.src;
  }
  thisimg.src=showbut.src;
 }
 else {
//  if (okc && (sto!="x")) { scrollTo(0,(sto-90)); }
  if (!okc) { pos="fixed"; }
  else { pos="relative"; }
  vis="visible";
  bgnd="#efefad";
  altr="Show Less Detail";
  thisimg.src=hidebut.src;
 }
 thisdiv.style.position=pos;
 thisdiv.style.visibility=vis;
 thisimg.alt=altr;
// if (sto!="x") { thispardiv.style.backgroundColor=bgnd; }
}
if ((location.href=="http://jamesbutler.net/" || location.href=="http://www.jamesbutler.net/" || location.href=="http://jamesbutler.net" || location.href=="http://www.jamesbutler.net" || location.href=="http://www.musicforhumans.com/jb" || location.href=="http://www.musicforhumans.com/jb/" || location.href=="http://musicforhumans.com/jb" || location.href=="http://musicforhumans.com/jb/" || location.href=="http://dorihoward.com/jb/" || location.href=="http://www.dorihoward.com/jb/" || location.href.indexOf("index")!=-1) || (location.href.indexOf("team")!=-1)) {
hidehowto=setTimeout("howtoFade()",17000);
}

