﻿function center() {
    if (navigator.appVersion.indexOf('MSIE') != -1)
      document.all['root'].style.left = Math.max((document.body.clientWidth - 800) / 2, 0);
    else
      document.PageElement.LAYERS['root'].left = Math.max((window.innerWidth - 800) / 2, 0);
  }
  function cellhover(id)
  {
    var linkname = id + "link";
  
    document.getElementById(id).style.backgroundColor = "#ffcc00";
    document.getElementById(linkname).style.color = "Black";
    document.getElementById(linkname).style.fontWeight = "Bold";
    document.getElementById(linkname).style.fontSize = "8pt";
  }
  function cellhoveroff(id)
  {
    var linkname = id + "link";
  
    document.getElementById(id).style.backgroundColor = "Black";
    document.getElementById(linkname).style.color = "#ffcc00";
    document.getElementById(linkname).style.fontWeight = "Normal";
    document.getElementById(linkname).style.fontSize = "8pt";
  }
  function rowhover(id)
  {
    var titlename = id + "title";
    
    
    document.getElementById(titlename).style.color = "#ffcc00";
    document.getElementById(titlename).style.fontSize = "8pt";
    document.getElementById(titlename).style.borderColor = "#ffcc00";
    
  
    if (id == "iTunes")
    {
        document.getElementById(id).style.backgroundColor = "#ffcc00";
        document.getElementById(id).style.borderColor = "#ffcc00";
        document.ipod.src="ipodsmallwhitehover.jpg";
    }
    else
    if (id == "downloads" | id == "drow1")
    {
        document.getElementById(id).style.backgroundColor = "#ffcc00";
        document.getElementById(id).style.borderColor = "#ffcc00";
        document.getElementById("downloadlist").style.borderColor = "#ffcc00";

    }
    else
    {
        document.getElementById(id).style.backgroundColor = "#ffcc00";
        document.getElementById(id).style.borderColor = "#ffcc00";
    }
  }
  
  function rowhoveroff(id)
  {
    var titlename = id + "title";
      
    document.getElementById(titlename).style.color = "Silver";
    document.getElementById(titlename).style.fontSize = "8pt";
    document.getElementById(titlename).style.borderColor = "Transparent";
    
    if (id == "iTunes")
    {
        document.getElementById(id).style.backgroundColor = "Black";
        document.getElementById(id).style.borderColor = "Transparent";
        document.ipod.src="ipodsmallwhite.jpg";
    }
    else
    if (id == "downloads" | id == "drow1")
    {
        document.getElementById(id).style.backgroundColor = "Black";
        document.getElementById(id).style.borderColor = "Transparent";
        document.getElementById("downloadlist").style.borderColor = "DimGray";
    }
    else
    {
        document.getElementById(id).style.borderColor = "Transparent";
        document.getElementById(id).style.backgroundColor = "Black";
    }
  }
  
  function OpenNoonDaySun()
  {
  
    window.open("noondaysun.html");
  }
  
  function ShowEdges(id)
  {
  
        document.getElementById(id).style.borderColor = "#ffcc00";
        
  }
    function HideEdges(id)
  {
  
        document.getElementById(id).style.borderColor = "Black";
       
  }
  
  function OpenReverbNation()
  {
    
    window.open("http://www.reverbnation.com/behindthecouch");
  }
  
  function OpenMySpace()
  {
    
    window.open("http://www.myspace.com/behindthecouch");
  }
      
  function OpenPureVolume()
  {
    
    window.open("http://www.purevolume.com/behindthecouch");
  }
  
  function OpenFaceBook()
  {
    
    window.open("http://apps.facebook.com/reverbnation_fb/artist/behindthecouch");
  }
  
  
  function OpenBlog()
  {
    
    window.open("http://btcmusic.blogspot.com");
  }
  function PlayPsalm143()
  {
    
    window.open("http://behindthecouch.net/noondaysun/Psalm143_11182007.wav");
  }

  function GetFlash()
  {
    
    window.open("http://get.adobe.com/flashplayer/");
  }
  function GetShockwave()
  {
    
    window.open("http://get.adobe.com/shockwave/");
  }
  
 
