// JavaScript Document


function MatchHeights(firstDiv, secondDiv)
{
    var divOne = document.getElementById(firstDiv);
    var divTwo = document.getElementById(secondDiv);
   
    var heightOne = divOne.offsetHeight;
    var heightTwo = divTwo.offsetHeight;
   
    if(heightOne > heightTwo)
    {
        divTwo.style.height = (heightOne) + 'px';
    }
    else
    {
        divOne.style.height = (heightTwo) + 'px';
    }  
}

    
    
    
    
   

function HighlightAll(theField) {
    var copytoclip=1
    var tempval=eval("document."+theField)
    
    tempval.focus()
    tempval.select()
    
    if (document.all&&copytoclip==1){
        therange=tempval.createTextRange()
        therange.execCommand("Copy")
        window.status="Contents highlighted and copied to clipboard!"
        setTimeout("window.status=''",1800)
        }
}








function lyricsCollapse(id) {
    var style2 = document.getElementById(id).style;
        
    if (style2.display != "block")
    {
    style2.display = style2.display? "":"block";
    }
    else{
    style2.display = style2.display? "":"none";
    }    
    MatchHeights('siteNavigation', 'siteContent');
}




function bioCollapse(id) {
    //alert(id);
    
    var bio = document.getElementById("heightDiv")
    var bioDiv = document.getElementById("bioDiv")
 //alert(bioDiv.style.height);
        
    if (bioDiv.style.height == "200px")
    {
    bioDiv.overflow = bioDiv.overflow? "":"visible";
    document.getElementById("collapseLink").innerHTML = "Collapse"
    divHeight = bio.offsetHeight;
    divHeight = divHeight + 30;
    bioDiv.style.height = (divHeight) + 'px';
    //alert(bioDiv.style.height);
    }
    
    else{
    bioDiv.overflow = bioDiv.overflow? "":"hidden";
    document.getElementById("collapseLink").innerHTML = "Expand"
    bioDiv.style.height = "200px";
    //alert(bioDiv.style.height);
    }   
   
   
}



var siteTitle;
var siteURL;

function socialBookMarkSet() {
    siteTitle = encodeURIComponent(document.location.href);
    siteURL = encodeURIComponent(document.title);
}


