var mpgCode = ' '; var movCode = ' '; var rmCode = '

'; var showControls = 1; var say_this = "One moment Please..."; var myTimer; var notice_tag2 = '
' + say_this + '




'; var videoWidth = 320; var videoHeight = 240; if (document.layers) { document.write('' + notice_tag2 + ''); document.write(''); } else if (document.all) { document.write(''); document.write(''); } else if (document.getElementById) { document.write(''); document.write(''); } function closeStatus2(checkSong) { clearTimeout(myTimer); if (document.layers) { if (checkSong == 1) { document.layers.allsongs2.visibility = "hidden"; } else { document.layers.allsongs2.visibility = "hidden"; document.allsongs.document.write(""); document.allsongs.document.close(); document.layers.allsongs.visibility = "hidden"; } } else if (document.all) { if (checkSong == 1) { document.all.allsongs2.style.visibility = "hidden"; } else { document.all.allsongs2.style.visibility = "hidden"; document.all.allsongs.innerHTML = ""; document.all.allsongs.style.visibility = "hidden"; } } else if (document.getElementById) { if (checkSong == 1) { document.getElementById("allsongs2").style.visibility = "hidden"; } else { document.getElementById("allsongs2").style.visibility = "hidden"; var newlayer = document.getElementById("allsongs"); newlayer.innerHTML = ""; document.getElementById("allsongs").style.visibility = "hidden"; } } } function playFile(soundFile, soundType) { var playFile = 0; if (soundFile.indexOf(",") > 0) { var sounds = soundFile.split(","); soundFile = sounds[Math.floor(Math.random()*sounds.length)]; } if (soundType == "mp3" || soundType == "m3u" || soundType == "au" || soundType == "mid" || soundType == "midi" || soundType == "mod" || soundType == "wav") { var soundFileTemp = mpgCode; var showControls2 = "1"; var showControlsOff = "0"; playFile = 1; } else if (soundType == "mpg" || soundType == "mpeg" || soundType == "") { var soundFileTemp = mpgCode; var showControls2 = "1"; var showControlsOff = "0"; } else if (soundType == "mov" || soundType == "qt") { var soundFileTemp = movCode; var showControls2 = "true"; var showControlsOff = "false"; } else if (soundType == "ra" || soundType == "ram" || soundType == "rm" || soundType == "rv") { var showControlsOff = ""; var soundFileTemp = rmCode; var showControls2 = "ControlPanel"; } else { var soundFileTemp = mpgCode; var showControls2 = "1"; var showControlsOff = "0"; } if (playFile == 1) { // Play Song var videoHeight2 = 32; var videoWidth2 = videoWidth; if (showControls == 0) { VideoWidth2 = 0; videoHeight2 = 0; var notice_tag = ""; var embed_tag = soundFileTemp; var showControls3 = showControlsOff; var controlHeight = 0; } else { var showControls3 = showControls2; var controlHeight = 32; var notice_tag = ''; var embed_tag = '
X
' + soundFileTemp + '
'; } embed_tag = embed_tag.replace(/!VIDEOWIDTH!/g, videoWidth2); embed_tag = embed_tag.replace(/!VIDEOHEIGHT!/g, videoHeight2); embed_tag = embed_tag.replace(/!SHOWCONTROLS!/g, showControls3); embed_tag = embed_tag.replace(/!CONTROLHEIGHT!/g, controlHeight); embed_tag = embed_tag.replace(/!FILENAME!/g, soundFile); } else { // Play Video if (showControls == 0) { var showControls3 = showControlsOff; var controlHeight = 0; } else { var showControls3 = showControls2; var controlHeight = 32; } var notice_tag = ''; var embed_tag = '
X
' + soundFileTemp + '
'; embed_tag = embed_tag.replace(/!VIDEOWIDTH!/g, videoWidth); embed_tag = embed_tag.replace(/!VIDEOHEIGHT!/g, videoHeight); embed_tag = embed_tag.replace(/!CONTROLHEIGHT!/g, controlHeight); embed_tag = embed_tag.replace(/!SHOWCONTROLS!/g, showControls3); embed_tag = embed_tag.replace(/!FILENAME!/g, soundFile); } if (document.layers) { document.allsongs2.left = tempX; document.allsongs2.top = tempY; document.layers.allsongs2.visibility = "visible"; document.allsongs.document.write(notice_tag); document.allsongs.document.write(embed_tag); document.allsongs.document.close(); document.allsongs.left = tempX; document.allsongs.top = tempY; if (playFile == 0 || showControls == 1) { document.layers.allsongs.visibility = "visible"; } } else if (document.all) { document.all.allsongs2.style.posLeft = tempX; document.all.allsongs2.style.top = tempY; document.all.allsongs2.style.visibility = "visible"; allsongs.innerHTML = notice_tag; allsongs.innerHTML += embed_tag; document.all.allsongs.style.posLeft = tempX; document.all.allsongs.style.top = tempY; if (playFile == 0 || showControls == 1) { document.all.allsongs.style.visibility = "visible"; } } else if (document.getElementById) { document.getElementById("allsongs2").style.left = tempX; document.getElementById("allsongs2").style.top = tempY; document.getElementById("allsongs2").style.visibility = "visible"; var newlayer = document.getElementById("allsongs"); newlayer.innerHTML = notice_tag; newlayer.innerHTML += embed_tag; document.getElementById("allsongs").style.left = tempX; document.getElementById("allsongs").style.top = tempY; if (playFile == 0 || showControls == 1) { document.getElementById("allsongs").style.visibility = "visible"; } } myTimer = setTimeout('closeStatus2(1);', 2000); }