// Project : Proficient Studios - Template 01
// Developed by Julien Després

function swapOnRoster(first_name,last_name,handle){
	var rosterHandle = document.getElementById('handle');
	rosterHandle.innerHTML=first_name+' "<span>'+handle+'</span>" '+last_name;
}

function swapOffRoster(){
	var rosterHandle = document.getElementById('handle');
	rosterHandle.innerHTML='Select to view profile';
}

function high(which2){
	theobject=which2
	highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
	clearInterval(highlighting)
	if (which2.style.MozOpacity)
	which2.style.MozOpacity=0.5
	else if (which2.filters)
	which2.filters.alpha.opacity=50
}

function highlightit(cur2){
	if (cur2.style.MozOpacity<1)
	cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
	else if (cur2.filters&&cur2.filters.alpha.opacity<100)
	cur2.filters.alpha.opacity+=10
	else if (window.highlighting)
	clearInterval(highlighting)
}

function show_div(div_id) {
    // hide all the divs
    document.getElementById('headline_1').style.display = 'none';
    document.getElementById('headline_2').style.display = 'none';
    document.getElementById('headline_3').style.display = 'none';
	document.getElementById('headline_4').style.display = 'none';
	document.getElementById('headline_5').style.display = 'none';
	
    // show the requested div
    document.getElementById(div_id).style.display = 'block';
}


function show_roster(div_id) {
	// hide all the roster
    document.getElementById('roster_1').style.display = 'none';
    document.getElementById('roster_2').style.display = 'none';
    document.getElementById('roster_3').style.display = 'none';
	
	    // show the requested div
    document.getElementById(div_id).style.display = 'block';
}