function mp3player(mp3){

/* 310108 - cybil/~capsticm/labs/flashsound/podcastplayer.html
   function mp3player(mp3) - pass the name of the mp3 file as a parameter
   calling html page must contain an empty div with id='mp3playerdiv'
   Uses innerHTML to hold a dynamically created player object
*/
// allows for videos to be seen
// if this not an mp3 if so set the width and height of the playerwindow
filetype=mp3.slice(mp3.length-3,mp3.length);

if (filetype=='mp3'){
    viewerwidth=0;
    viewerheight=0;
   }
else 
   {viewerwidth=300;
    viewerheight=300;
   }
mp3code='<object type=\'application/x-mplayer2\'  width=\''+viewerwidth+'\' height=\''+viewerheight+'\' data=\''+
         mp3+
        '\'><param name=\'src\' value=\''+mp3+'\' />'+
        '<param name=\'AutoStart\' value=\'true\' /><em>cannot play the file</em></object>'

document.getElementById("mp3playerdiv").innerHTML=mp3code;

}
/*


function mp3player(mp3){

 310108 - cybil/~capsticm/labs/flashsound/podcastplayer.html
   function mp3player(mp3) - pass the name of the mp3 file as a parameter
   calling html page must contain an empty div with id='mp3playerdiv'
   Uses innerHTML to hold a dynamically created player object

mp3code='<object type=\"application/x-mplayer2\"  width=\"0\" height=\"0\" data=\"'+
         mp3+
        '\"><param name=\"src\" value=\"'+mp3+'\" />'+
        '<param name=\"AutoStart\" value=\"true\" /><em>cannot play the file</em></object>'

document.getElementById("mp3playerdiv").innerHTML=mp3code;

}
*/