function swap_image(image,cond){
	if(cond){
		document.getElementById(image).src="images/"+image+"-hover.png";
	}else {
		document.getElementById(image).src="images/"+image+".png";
	}
}

function swap_image2(image,cond){
	if(cond){
		document.getElementById(image+"2").src="images/"+image+"-hover.png";
	}else {
		document.getElementById(image+"2").src="images/"+image+".png";
	}
}
function swap_image3(image,cond){
	if(cond){
		document.getElementById(image+"3").src="images/"+image+"-hover.png";
	}else {
		document.getElementById(image+"3").src="images/"+image+".png";
	}
}

function get_author_html(currentID){
    document.getElementById("authorName").innerHTML = nameArray[currentID];

    /*if(imgArray[currentID]=="empty"){
        document.getElementById("displayImage").style.display = "none";
    }else{
        document.getElementById("displayImage").style.display = "block";
        document.getElementById("authorPhoto").src = "author/"+imgArray[currentID];
    }*/
    
    for(var i=0;i<=11;i++){
        if("author"+i=="author"+currentID){
            document.getElementById("author"+currentID).style.background = "#BBD3B1";
        }else{
           document.getElementById("author"+i).style.background = "#d7dded";
        }
    }

    document.getElementById("authorDesc").innerHTML = DescArray[currentID];
    return false;
}
