// toggle() allows the user to show or hide the various content sections on the page. function toggle(thisObj, toggleTarget, anchorTarget) { target = document.getElementById(toggleTarget); anchor = document.getElementById(anchorTarget); switch(target.style.display) { case "none": thisObj.style.backgroundImage = "url('http://profiles.murdoch.edu.au/myprofile/margaret-merga/wp-content/themes/murdoch_profiles/images/heading_arrow_down.gif')"; anchor.className = "open"; target.style.display = "block"; break; case "block": thisObj.style.backgroundImage = "url('http://profiles.murdoch.edu.au/myprofile/margaret-merga/wp-content/themes/murdoch_profiles/images/heading_arrow_right.gif')"; anchor.className = ""; target.style.display = "none"; break; default: thisObj.style.backgroundImage = "url('http://profiles.murdoch.edu.au/myprofile/margaret-merga/wp-content/themes/murdoch_profiles/images/heading_arrow_down.gif')"; anchor.className = "open" target.style.display = "block"; } } // tabToggle() allows the user to switch betwen RSS feeds displayed in the left hand column. function tabToggle(thisObj, tabToShow) { document.getElementById("newsTab1").className = ""; document.getElementById("newsTab2").className = ""; thisObj.className = "selected"; document.getElementById("rssContent1").style.display = "none"; document.getElementById("rssContent2").style.display = "none"; document.getElementById(tabToShow).style.display = "block"; }