// JavaScript Document

var allHTMLTags = new Array();
var nowPlaying = 'null';

function getElementByClass(theClass) {
var allHTMLTags=document.getElementsByTagName("div");
for (i=0; i<allHTMLTags.length; i++) {
if (allHTMLTags[i].className==theClass) {
allHTMLTags[i].style.display='none';
}
}
}

function playCurrent(ID){
if(nowPlaying == 'null'){
document.getElementById(ID).style.display='block';		
}else{
niftyplayer(nowPlaying).stop();
getElementByClass('mp3_player');
document.getElementById(ID).style.display='block';	
}
function temp(){
nowPlaying = ID+"_swf";
niftyplayer(ID+"_swf").stop();
niftyplayer(ID+"_swf").play();
}
setTimeout(temp,500);
}

function stopAll(){
nowPlaying = 'null';
getElementByClass('mp3_player');
}

