d=document
if(navigator.userAgent.toLowerCase().indexOf("windows")!=-1){
		obtype='application/x-mplayer2'
		bigControls='width="300" height="40"'

	}else{obtype='audio/mpeg'
			bigControls=''
}



function mp3(file, title){


d.write(

'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">\n'+
'<html><head>\n'+
'<title>adrianfreedman.com&gt;mp3 player</title>\n'+
'<link rel="stylesheet" type="text/css" href="index.css">\n'+
'<style type="text/css">\n'+
'body {background:#e7e5e2;margin:0;padding:0;overflow:hidden;color:#368}\n'+
'.mp3obj {display:block;width:30em;height:3em;border:solid 1px gray;margin:0.5em}\n'+
'.mp3ms1 {font-size:0.9em;margin:2px;padding:1px;color:#368}\n'+
'.mp3msg {font-size:0.9em;margin:2px;padding:1px}\n'+
'</style>\n'+
'<script type="text/javascript" language="JAVASCRIPT" SRC=index.js></script>\n'+
'</head><body>\n'+

'<p class="mp3ms1">&bull; old versions of internet explorer will play on load, otherwise, click the play [&gt;] button</p>\n'+
'<p class="mp3msg"><a href="mp3_player.htm" class="bB">&nbsp;back to track selector </a>&nbsp; clip selected: '+title+'</p>\n'+
'<object type="'+obtype+'" data="audio/'+file+'.mp3" class="mp3obj" '+bigControls+'>\n'+
' <param name="src" value="audio/'+file+'.mp3">\n'+
' <param name="showcontrols" value="1">\n'+  
' <param name="showstatusbar" value="1">\n'+
' <param name="autoplay" value="false">\n'+
' <param name="autoStart" value="0">\n'+
' <p class="mp3msg">this browser does not know what to do with this mp3 file...<br><a href="audio/'+file+'.mp3">link to clip of "'+title+'"</a></p>\n'+
'</object>\n'+
'<!-- 3 -->\n'+
'</body></html>'
)
d.close()

}