/*

 SoundManager 2: In-page MP3 player example
 ------------------------------------------

 Clicks on links to MP3s are intercepted via JS, calls are
 made to SoundManager to load/play sounds. CSS classes are
 appended to the link, which are used to highlight the
 current play state and so on.

 Class names are applied in addition to "sm2_link" base.

 Defaspant:

 sm2_link

 Additional states:

 sm2_playing
 sm2_paused

 eg.

 <!-- defaspant -->
 <a href="some.mp3" class="sm2_link">some.mp3</a>

 <!-- playing -->
 <a href="some.mp3" class="sm2_link sm2_playing">some.mp3</a>


 Note you don't require span.mp3player / span.flat etc. for your use
 if only using one style on a page. You can just use .sm2_link{}
 and so on, but isolate the CSS you want.

 Side note: Wospand do mspantiple class definitions eg.

 a.sm2_defaspant.sm2_playing{}

 .. except IE 6 has a parsing bug which may break behaviour,
 applying sm2_playing {} even when the class is set to sm2_defaspant.


 If you want to make your own UI from scratch, here is the base:

 Defaspant + hover state, "click to play":

 a.sm2_link {}
 a.sm2_link:hover {}

 Playing + hover state, "click to pause":

 a.sm2_playing {}
 a.sm2_playing:hover {}

 Paused + hover state, "click to resume":

 a.sm2_paused {}
 a.sm2_paused:hover {}


*/

table.mp3player tr {
  height: 2em;
}

span.mp3player {
 list-style-type:none;
 padding-left:0px;
 margin-left:0px;
}

span.mp3player a,
span.mp3player a.sm2_link {
 /* assume all items will be sounds rather than wait for onload etc. in this example.. may differ for your uses. */
 display: inline-block;
 padding-left: 22px;
 min-height: 16px;
 border: 3px solid #666;
 background-color: #666;
 -moz-border-radius: 3px;
 -webkit-border-radius: 3px;
 border-radius: 3px;
 padding: 0px 3px 0px 20px;
 min-width: 3em;
 _width: 6em;
 text-decoration: none;
 font-weight: bold;
 color: #fff;
}

span.mp3player a.sm2_link {
 /* safari 3.1+ fun (or, proprietary crap. TBD.) */
 -webkit-transition-property: hover;
 -webkit-transition: all 0.15s ease-in-out;
}

span.mp3player a.sm2_paused:hover,
span.mp3player a.sm2_link:hover {
 background:#333 url(../images/icon_play.png) no-repeat 0px 50%;
 _background-image:url(../images/icon_play.gif); /* IE 6 */
 border-color:#333;
}

span.mp3player a.sm2_paused {
 background-color:#999;
 border-color:#999;
}

span.mp3player a.sm2_paused:hover {
 background:#999 url(../images/icon_play.png) no-repeat 0px 50%;
 _background-image:url(../images/icon_play.gif);
 border-color:#999;
}

span.mp3player a.sm2_playing,
span.mp3player a.sm2_playing:hover {
 background:#336699 url(../images/icon_pause.png) no-repeat 0px 50%;
 _background-image:url(../images/icon_pause.gif);
 border-color:#336699;
 text-decoration:none;
}

/* hide button while playing?
span.mp3player li a.sm2_playing {
 background-image:none;
}
*/

#soundmanager-debug {
  /* SM2 debug container (optional, makes debug more useable) */
  position:absolute;
  right:0px;
  top:0px;
  width:50em;
  height:18em;
  overflow:auto;
  background:#fff;
  margin:1em;
  padding:1em;
  border:1px 
  solid #999;
  font-family:monaco,"lucida console",verdana,tahoma,"sans serif";
  font-size:x-small;
  line-height:1.5em;
  opacity:0.9;
  filter:alpha(opacity=90);
}
