/*
 Toggles the description block for the specified job ID.
*/

function showDescription(jobId)
{
	if (document.getElementById("description" + jobId).style.display == "none") {
		document.getElementById("description" + jobId).style.display = "block";
		document.getElementById("career-li" + jobId).style.background = " url(/images/pointerOpen.jpg) left 13px  no-repeat";
        
        
        // reset other icons
        $("li.career-status-icon").each(function(icon) {
            if (this.id != "career-li" + jobId) {
                this.style.background = " url(/images/pointer.jpg) left 13px  no-repeat";
            }
        });

        // hide other descriptions
        $("div.careers-description").each(function(i) {
            if (this.id != "description" + jobId) {
                this.style.display = "none";
            }
        });        
	} else {
		document.getElementById("description" + jobId).style.display = "none";
		document.getElementById("career-li" + jobId).style.background = " url(/images/pointer.jpg) left 13px  no-repeat";
	}
    
	return false;
} 


