//Title: Embedded Player Switcher //Purpose: Activate and de-activate embedded Java audio player //Author: Sean Robinson //Date Created: 2007 //Date Modified: 2010-03-29 //Version: 0.3 //Variables $embeddedPlayerToggle = 0; $embeddedPlayerCode = ' '; http://www.nz17.com/asoradio/episodes/episode130.ogg function switchEmbeddedPlayer() { if($embeddedPlayerToggle == 0) { $embeddedPlayerToggle = 1; document.getElementById('embeddedPlayer').innerHTML = $embeddedPlayerCode; } /*else { $embeddedPlayerToggle = 0; document.getElementById('embeddedPlayer').innerHTML = ''; }*/ }