function play(id) {
 var swf='swf'+$('pmid').value;
 if($(swf)) $(swf).style.display='none';
 var playbox=$('playbox');
 var url=$(id).innerHTML;
 url=url.replace(/ /g,'%20');
 //playbox.innerHTML=url;
 if(url.match(/\.mp3$/i)) {
   //playbox.innerHTML=''+
   var t=
'<table width=300><tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="66" width="290">'+
'<param name="movie" value="/mp3player.swf">'+
'<param name="quality" value="high">'+
'<param name="wmode" value="transparent">'+
'<param name="bgcolor" value="#88E8FF">'+
'<param name="flashvars" value="config=%3Cmp3player%20version=%221%22%3E%3Cmusic%20lcid=%221139416146897%22%20url=%22'+url+'%22%20urlencoded=%22false%22%20volume=%2275%22%20loop=%22false%22%20usecache=%22true%22%20buffer=%224%22%20autoplay=%22true%22%20/%3E%3Clayout%20id=%22custom%22%3E%3Citem%20id=%22playbar%22%20x=%2210%22%20y=%2210%22%20/%3E%3Citem%20id=%22playbutton%22%20x=%2210%22%20y=%2235%22%20/%3E%3Citem%20id=%22stopbutton%22%20x=%2260%22%20y=%2235%22%20/%3E%3Citem%20id=%22volumecontrol%22%20x=%22180%22%20y=%2238%22%20/%3E%3C/layout%3E%3Cstyles%3E%3CBackground%20backgroundColor=%22#88E8FF%22%20useBevel=%22true%22%20bevelAlpha=%2270%22%20transparent=%22true%22%20/%3E%3CButton%20themeColor=%22#CCCCCC%22%20useCustom=%22false%22%20customPlayPauseURL=%22%22%20customStopURL=%22%22%20/%3E%3CControlIcons%20backgroundColor=%22#6F7777%22%20/%3E%3CLoadBar%20backgroundColor=%22#FFFFFF%22%20borderColor=%22#C4CCCC%22%20fillColor=%22#0099FF%22%20/%3E%3CPlayBar%20backgroundColor=%22#F7F7F7%22%20outerBorderColor=%22#666666%22%20innerBorderColor=%22#C4CCCC%22%20fillColor=%22#999999%22%20fontSize=%228%22%20color=%22#000000%22%20streamingText=%22STREAMING%22%20pausedText=%22PAUSED%22%20width=%22270%22%20/%3E%3CSliderThumbs%20backgroundColorOff=%22#6F7777%22%20backgroundColorOn=%22#0099FF%22%20/%3E%3CUIBorder%20borderColor=%22#FFFFFF%22%20borderWidth=%221%22%20/%3E%3CVolumeControl%20themeColorOff=%22#6F7777%22%20themeColorOn=%22#0099FF%22%20/%3E%3C/styles%3E%3C/mp3player%3E">'+
'<embed src="/mp3player.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" flashvars="config=%3Cmp3player%20version=%221%22%3E%3Cmusic%20lcid=%221139416146897%22%20url=%22'+url+'%22%20urlencoded=%22false%22%20volume=%2275%22%20loop=%22false%22%20usecache=%22true%22%20buffer=%224%22%20autoplay=%22true%22%20/%3E%3Clayout%20id=%22custom%22%3E%3Citem%20id=%22playbar%22%20x=%2210%22%20y=%2210%22%20/%3E%3Citem%20id=%22playbutton%22%20x=%2210%22%20y=%2235%22%20/%3E%3Citem%20id=%22stopbutton%22%20x=%2260%22%20y=%2235%22%20/%3E%3Citem%20id=%22volumecontrol%22%20x=%22180%22%20y=%2238%22%20/%3E%3C/layout%3E%3Cstyles%3E%3CBackground%20backgroundColor=%22#88E8FF%22%20useBevel=%22true%22%20bevelAlpha=%2270%22%20transparent=%22true%22%20/%3E%3CButton%20themeColor=%22#CCCCCC%22%20useCustom=%22false%22%20customPlayPauseURL=%22%22%20customStopURL=%22%22%20/%3E%3CControlIcons%20backgroundColor=%22#6F7777%22%20/%3E%3CLoadBar%20backgroundColor=%22#FFFFFF%22%20borderColor=%22#C4CCCC%22%20fillColor=%22#0099FF%22%20/%3E%3CPlayBar%20backgroundColor=%22#F7F7F7%22%20outerBorderColor=%22#666666%22%20innerBorderColor=%22#C4CCCC%22%20fillColor=%22#999999%22%20fontSize=%228%22%20color=%22#000000%22%20streamingText=%22STREAMING%22%20pausedText=%22PAUSED%22%20width=%22270%22%20/%3E%3CSliderThumbs%20backgroundColorOff=%22#6F7777%22%20backgroundColorOn=%22#0099FF%22%20/%3E%3CUIBorder%20borderColor=%22#FFFFFF%22%20borderWidth=%221%22%20/%3E%3CVolumeControl%20themeColorOff=%22#6F7777%22%20themeColorOn=%22#0099FF%22%20/%3E%3C/styles%3E%3C/mp3player%3E" bgcolor="#88E8FF" height="66" width="290">'+
'</object></td></tr></table>';
  popup(t,300);
 } else {
  //playbox.innerHTML=
  var t=
'<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="640" HEIGHT="495" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">'+
'<PARAM name="SRC" VALUE="'+url+'"><PARAM name="AUTOPLAY" VALUE="true"><PARAM name="CONTROLLER" VALUE="true">'+
'<EMBED SRC="'+url+'" WIDTH="640" HEIGHT="495" AUTOPLAY="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED></OBJECT>'
  popup(t,660);
 }
}
//setTimeout("document.getElementById('playbox').innerHTML='replaced'",100);

// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var isIE = document.all?true:false
var mouseX = 0
var mouseY = 0

// If NS -- that is, !IE -- then set up for mouse capture
if (!isIE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
function getMouseXY(e) {
  if (isIE) { // grab the x-y pos.s if browser is IE
    mouseX = event.clientX + document.body.scrollLeft
    mouseY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    mouseX = e.pageX
    mouseY = e.pageY
  }
  // catch possible negative values in NS4
  if (mouseX < 0){mouseX = 0}
  if (mouseY < 0){mouseY = 0}
  return true
}
var visible=0;
var lastT='';
function popup(t,w) {
 var f1style=document.getElementById('floater');
 t='<a href="javascript:visible=0;hideit()"><img src="/vm/close.png" border=0 align=right valign="absmiddle"></a><br />'+t;
 // don't do it if it's already up.
 if(lastT == t && f1style.display=='') return;
 f1style.innerHTML=t;
 f1style.style.left=20;
 f1style.style.top=mouseY-w/3;
 f1style.style.display='';
 f1style.style.width=w;
}
function hideit() {
  document.getElementById('floater').style.display='none';
}
document.write('<div id="floater" style="width: 300px; background-color: #224; position: absolute; padding: 10px; z-index: 3; display: none; border: #9CF 1px solid;"></div>\
');