function hoverEpisode(c,x){
	if(x=="1") {
	document.getElementById("episode"+c).style.backgroundColor='#e0efd9';
	} else {
	document.getElementById("episode"+c).style.backgroundColor='#ecf7e7';
	}
}	
                          
function selectNav(x){
    
    var z = null;
    
    document.images.info.src='images/notes_info_off.gif';
    document.images.notes.src='images/notes_notes_off.gif';
    document.images.community.src='images/notes_community_off.gif';
    
    if(x==1) {
        document.images.info.src='images/notes_info.gif';
		showDiv("qInfo");
		hideDiv("qNotes");
		hideDiv("qCommunity");
    } else if(x==2) {
        document.images.notes.src='images/notes_notes.gif';
		hideDiv("qInfo");
		showDiv("qNotes");
		hideDiv("qCommunity");		
    } else{
        document.images.community.src='images/notes_community.gif';
		hideDiv("qInfo");
		hideDiv("qNotes");
		showDiv("qCommunity");		
    }
    
}

function showDiv(id) {
	document.getElementById(id).style.display = 'block';
}

function hideDiv(id) {
	document.getElementById(id).style.display = 'none';
}
