// Using the value of the "id" of the picture being moused-over, pulls appropriate info from membersInfo.xml 
// to be used.  See "membersInfo.xml" for more information.
    
function showInfo(str){
    if (str==""){
        document.getElementById("infoPane").innerHTML="There is currently no information on this member.";
        return;
    }
    if (window.XMLHttpRequest){
        xmlhttp=new XMLHttpRequest();  // code for IE7+, Firefox, Chrome, Opera, Safari
    }
    else{
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");// code for IE6, IE5
    }
    
    xmlhttp.onreadystatechange=function(){
        if (xmlhttp.readyState==4 && xmlhttp.status==200){
            document.getElementById("infoPane").innerHTML=xmlhttp.responseText;
        }
    }
    
    xmlhttp.open("GET","SiteContent/getInfo.php?q="+str,true);
    xmlhttp.send();
}
//*********************************************************************************************************************//    
    
//The purpose of this script is to have a function that will make an entire row of pix without doing all the code.  The format
//of the function is below and all the pix on the Brothers page use this function (look below for <script> tag)

function Rrow(name1, name2, name3, name4, name5){
    document.write("<tr>");
        document.write("<td><img class=\"composite\" src=\"bros/"+name1+".jpg\" id=\""+name1+"\" onmouseover=\"showInfo(this.id)\"></td>");
        if(name2 != null){
            document.write("<td><img class=\"composite\" src=\"bros/"+name2+".jpg\" id=\""+name2+"\" onmouseover=\"showInfo(this.id)\"></td>");}
        if(name3 != null){
            document.write("<td><img class=\"composite\" src=\"bros/"+name3+".jpg\" id=\""+name3+"\" onmouseover=\"showInfo(this.id)\"></td>");}
        if(name4 != null){
            document.write("<td><img class=\"composite\" src=\"bros/"+name4+".jpg\" id=\""+name4+"\" onmouseover=\"showInfo(this.id)\"></td>");}
        if(name5 != null){
            document.write("<td><img class=\"composite\" src=\"bros/"+name5+".jpg\" id=\""+name5+"\" onmouseover=\"showInfo(this.id)\"></td>");}
    document.write("</tr>");
}

//*******************************************************************************************************************//

// Script to track who enters website
// Source:  Google Analytics (http://analytics.google.com/)

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24673279-1']);
_gaq.push(['_trackPageview']);

(function() {
    var ga = document.createElement('script'); 
    ga.type = 'text/javascript'; 
    ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; 
    s.parentNode.insertBefore(ga, s);
})();

//********************************************************************************************************************//

