﻿function overMnu()
  {
  event.srcElement.style.cursor = "hand";
  if(event.srcElement.id.slice(3) == "1")
    {
    window.document.all("img1").border = "3";
    window.document.all("nam1").style.color = "red";
    window.document.all("lnk1").style.color = "red";
    }
  if(event.srcElement.id.slice(3) == "2")
    {
    window.document.all("img2").border = "3";
    window.document.all("nam2").style.color = "red";
    window.document.all("lnk2").style.color = "red";
    }
  }

function outMnu()
  {
  event.srcElement.style.cursor = "auto";
  if(event.srcElement.id.slice(3) == "1")
    {
    window.document.all("img1").border = "0";
    window.document.all("nam1").style.color = "blue";
    window.document.all("lnk1").style.color = "blue";
    }
  if(event.srcElement.id.slice(3) == "2")
    {
    window.document.all("img2").border = "0";
    window.document.all("nam2").style.color = "blue";
    window.document.all("lnk2").style.color = "blue";
    }
  }

function overLogo()
  {
  event.srcElement.style.cursor = "hand";
  }

function outLogo()
  {
  event.srcElement.style.cursor = "auto";
  }

function overB()
  {
  event.srcElement.style.cursor = "hand";
  event.srcElement.style.color = "red";
  }

function outB()
  {
  event.srcElement.style.cursor = "auto";
  event.srcElement.style.color = "black";
  }

function clickB()
  {
  var disp = 0;
  var bnum = 0;
  var snum = 0;
  var bint = event.srcElement.id.substr(1);
  for(i=1;i<=5;i++)
    {
    disp = "D" + i;
    bnum = "B" + i;
    snum = "S" + i;
    window.document.all(disp).style.display = "none";
    window.document.all(bnum).style.filter = "";
    window.document.all(snum).src = "images/star.gif";
    window.document.all(snum).style.filter = "";
    }
  disp = "D" + bint;
  bnum = "B" + bint; 
  snum = "S" + bint; 
  window.document.all(disp).style.display = "";
  window.document.all(bnum).style.filter = "glow(color=yellow)";
  window.document.all(snum).src = "images/starx.gif";
  window.document.all(snum).style.filter = "glow(color=yellow)";
  }

function overImg()
  {
  event.srcElement.style.cursor = "hand";
  event.srcElement.border = "3"
  if(event.srcElement.id.slice(3) == "1")
    {
    window.document.all("lnk1").style.color = "red";
    window.document.all("nam1").style.color = "red";
    }
  if(event.srcElement.id.slice(3) == "2")
    {
    window.document.all("lnk2").style.color = "red";
    window.document.all("nam2").style.color = "red";
    }
  }

function outImg()
  {
  event.srcElement.style.cursor = "auto";
  event.srcElement.border = "0"
  if(event.srcElement.id.slice(3) == "1")
    {
    window.document.all("lnk1").style.color = "blue";
    window.document.all("nam1").style.color = "blue";
    }
  if(event.srcElement.id.slice(3) == "2")
    {
    window.document.all("lnk2").style.color = "blue";
    window.document.all("nam2").style.color = "blue";
    }
  }

function vidLink()
  {
  var thisClick = event.srcElement.id;
  var progID = thisClick.substr(3,1);
  window.navigate("detect.htm?" + progID);
  }

function asxLink()
  {
  var thisClick = event.srcElement.id;
  var progID = thisClick.substr(3,1);
  window.navigate("playlists/asx" + progID + ".asx");
  }

function noasxLink()
  {
  var thisClick = event.srcElement.id;
  var progID = thisClick.substr(3,1);
  window.navigate("detectnoasx.htm?" + progID);
  }

function overCat(catNum)
  {
  if (window.document.getElementById("CSPN" + catNum).style.display == "none")
     {event.srcElement.style.cursor = "hand";
      event.srcElement.style.color = "";
     }
  }

function outCat(catNum)
  {
  if (window.document.getElementById("CSPN" + catNum).style.display == "none")
     {
     event.srcElement.style.cursor = "auto";
     
     event.srcElement.style.color = "blue";
     }
  }

function catClick(iTotCats)
  {
  var catNum = event.srcElement.id.slice(3);
  for (i =1; i<=iTotCats; i=i+1)
     {
     var spnID = "CSPN" + i;
     if (catNum == i)
        {
        window.document.getElementById(spnID).style.display = "";
        window.document.getElementById("CAT" + i).style.color = "red";
        window.document.getElementById("CAT" + i).style.cursor = "auto";        
        }
     else
        {
        window.document.getElementById(spnID).style.display = "none";
        window.document.getElementById("CAT" + i).style.color = "blue";        
        window.document.getElementById("CAT" + i).style.backgroundColor = "";
        window.document.getElementById("CAT" + i).style.color = "blue";
        }
     }
  }

