/*

 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 {}


*/

a.sm2_link {
	/* assume all items will be sounds rather than wait for onload etc. in this example.. may differ for your uses. */
/*  
 padding-right:22px;*/
    display:block;
	float:right;
	min-height:14px;
	/*  -moz-border-radius:3px;
 -webkit-border-radius:3px;
 border-radius:3px; */
/*  padding:0px 3px 0px 1px; */
  min-width:20px;
	_width:20px;
	text-decoration:none;/*  color:#fff; */
	text-align: center;
}

a.sm2_link,
a.sm2_paused:hover,
a.sm2_link:hover {
	_background-image:url(/ar/css/audioplayer/image/icon_play.gif); /* IE 6 */
	background-image: url(/ar/css/audioplayer/image/icon_play.png);
	background-repeat: no-repeat;
	background-position: 100% 2%; /* border-color:#CFD8F7; */
	text-align: center;
	display: inline-block;
	padding-right: 20px;
	_padding-right: 20px;
}

a.sm2_paused {
	border-color:#CFD8F7;
}

a.sm2_paused:hover {
 background: url(/ar/css/audioplayer/images/icon_play.png) no-repeat 100% 2%;
 _background-image:url(/ar/css/audioplayer/image/icon_play.gif);
 border-color:#CFD8F7;
}

a.sm2_playing,
a.sm2_playing:hover {
	_background-image:url(/ar/css/audioplayer/image/icon_pause.gif);
	text-decoration:none;
	background-image: url(/ar/css/audioplayer/image/icon_pause.png);
	background-repeat: no-repeat;
	background-position: 100% 2%;
}

/* hide button while playing?
ul.graphic li a.sm2_playing {
 background-image:none;
}
*/

/* flat CSS example */

ul.flat a.sm2_link {
 /* default state: "a playable link" */
 /* border-right:6px solid #999; */
 padding-right:4px;
 padding-left:4px;
}

ul.flat a.sm2_link:hover {
 /* default (inactive) hover state */
 border-right-color:#333;
}


ul.flat a.sm2_playing {
 /* "now playing" */
 /* border-right-color:#6666ff; */
 /* background-color:#000; */
 color:#fff;
 text-decoration:none;
}

ul.flat a.sm2_playing:hover {
 /* "clicking will now pause" */
 /* border-right-color:#cc3333; */
}

ul.flat a.sm2_paused {
 /* "paused state" */
/*  background-color:#666; */
 color:#fff;
 text-decoration:none;
}

ul.flat a.sm2_paused:hover {
 /* "clicking will resume" */
/*  border-right-color:#33cc33; */
}
