/*

 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.

 Default:

 sm2_link

 Additional states:

 sm2_playing
 sm2_paused

 eg.

  default 
 <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 ul.graphic / ul.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: Would do multiple class definitions eg.

 a.sm2_default.sm2_playing{}

 .. except IE 6 has a parsing bug which may break behaviour,
 applying sm2_playing {} even when the class is set to sm2_default.


 If you want to make your own UI from scratch, here is the base:

 Default + 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 {}


*/

/* two different list types */

ul.flat {
 list-style-type:none;
 padding-left:0px;
}

ul.flat li,
ul.graphic li {
	padding-bottom:1px;
	}

ul.flat li a {
	display:inline-block;
	padding-top: 2px;
	padding-right: 4px;
	padding-bottom: 2px;
	padding-left: 4px;
}

ul.graphic {
	list-style-type:none;
	padding-left:0px;
	margin-left:0px;
}

/* background-image-based CSS3 example */

ul.graphic {
 list-style-type:none;
 margin:0px;
 padding:0px;
}

ul.graphic li {
	margin-bottom:2px;
}

ul.graphic li a,
ul.graphic li a.sm2_link {
	/* assume all items will be sounds rather than wait for onload etc. in this example.. may differ for your uses. */
	
 	display:block;
	padding-left:30px;
	min-height:22px;
	vertical-align: middle;
	_width:175px; /* IE 6 */
	text-decoration:none;
	font-weight:normal;
	font-size:0.95em;
	color:#FFFFFF;
	padding-top: 3px;
	padding-right: 2px;
	padding-bottom: 3px;
	border-top-width: 1px;
	border-bottom-width: 1px;
	border-top-style: dashed;
	border-bottom-style: dashed;
	border-top-color: #666;
	border-bottom-color: #666;
	
}

ul.graphic li a.sm2_link {
 /* safari 3.1+ fun (or, proprietary crap. TBD.) */
 -webkit-transition-property: hover;
 -webkit-transition: background-color 0.15s linear;
 -moz-transition: background-color 0.15s linear 0s; /* firefox 4 */
  -o-transition-property: background-color; /* opera 10.5 */
  -o-transition-duration: 0.15s;
}

ul.graphic li a { 
	background-image:url(../image/btn_play.png);
 	background-position: 1px 50%;
 	background-repeat:no-repeat;
 	_background-image:url(../image/btn_play.gif);
	
}/* use a.sm2_link {} if you want play icons showing only if SM2 is supported */

ul.graphic li a.sm2_link:hover {
	_background-image:url(../image/btn_play_hover.gif);
	background-color: #CC6633;
	background-image: url(../image/btn_play_hover.png);
	background-repeat: no-repeat;
	background-position:1px 50%;
	color:#fff;
}



ul.graphic li a.sm2_paused {
	_background-image:url(../image/btn_play.gif);
	background-color: ;
	background-image: url(../image/btn_play.png);
	background-repeat: no-repeat;
	background-position: 1px 50%;
 
}

ul.graphic li a.sm2_paused:hover {
	_background-image:url(../image/btn_play_hover.gif);
	background-color: #CC6633;
	background-image: url(../image/btn_play_hover.png);
	background-repeat: no-repeat;
	background-position: 1px 50%;
}

ul.graphic li a.sm2_playing,
ul.graphic li a.sm2_playing:hover {
	_background-image:url(../image/btn_pause_hover.gif);
	text-decoration:none;
	background-color: #CC6633;
	background-image: url(../image/btn_pause_over.png);
	background-repeat: no-repeat;
	background-position: 1px 50%;	
	color: #fff;
}


/* hide button while playing?
ul.graphic li a.sm2_playing {
 background-image:none;
}
*/

body #sm2-container object,
body #sm2-container embed {
 /*
  flashblock handling: hide SWF off-screen by default (until blocked timeout case.)
  include body prefix to ensure override of flashblock.css.
 */

 left:-9999em;
 top:-9999em;
}
