function swapEducationalContent(e) {
	if (e == undefined) {
		e = window.event;
		var tgt = e.srcElement.parentNode;
	} else {
	    var tgt = e.target.parentNode || e.srcElement.parentNode;
	}
    var num = tgt.id.substr(13,2);


    for (var i = 0; i < document.getElementById('educationalContent').childNodes.length; i++) {
        var child = document.getElementById('educationalContent').childNodes[i];
        try {
            if (child.id.substr(0,11) == 'contentText') {
                if (child.id == 'contentText'+num) {
                    child.style.display = 'block';
                } else {
                    child.style.display = 'none';
                }
            }
        }
        catch(e) {
//            alert(e);
        } 
    }
}

function initTabs() {
	var count = 0;
    for (var i = 0; i < document.getElementById('educationalContent').childNodes.length; i++) {
        var child = document.getElementById('educationalContent').childNodes[i];
        try {
            if (child.className == 'contentButton') {
		    	count++;
            	child.setAttribute('id','contentOption'+count);
            	child.childNodes[0].href="javascript:;";
				try {
					child.childNodes[0].writeAttribute('onclick','swapEducationalContent(event);');
				}
				catch (e2) {
					child.childNodes[0].onclick = swapEducationalContent;
				}
			}
        } catch (e) {
        	alert(e.description);
        }
    }

}