var videofolder='video';
//==================================================
function GetVideoStr(video){
var videopath='video/'+video;

VideoStr='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="240" id="FLVPlayer"><param name="movie" value="FLVPlayer_Progressive.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="scale" value="noscale" /><param name="salign" value="lt" /><param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_3&amp;streamName='+videopath+'&amp;autoPlay=true&amp;autoRewind=false" /><param name="swfversion" value="8,0,0,0" /><param name="expressinstall" value="Scripts/expressInstall.swf" />';

VideoStr+='<!--[if !IE]>-->';
VideoStr+='<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="320" height="240">';
VideoStr+='<!--<![endif]-->';

VideoStr+='<param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="scale" value="noscale" /><param name="salign" value="lt" /><param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_3&amp;streamName='+videopath+'&amp;autoPlay=true&amp;autoRewind=false" /><param name="swfversion" value="8,0,0,0" /><param name="expressinstall" value="Scripts/expressInstall.swf" />';

VideoStr+='<div><h4>Content on this page requires a newer version of Adobe Flash Player.</h4><p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p></div>';
VideoStr+='<!--[if !IE]>--></object><!--<![endif]-->';
VideoStr+='</object>';
//VideoStr+='<p class="closewindow"><a href="#" onclick="CloseWindow()">Close Window</a> &nbsp; </p>';

return VideoStr;
}


//==================================================
function GetGoogleAudioStr(audio, title){

AudioStr='<p><object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="27" width="400" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="_cx" value="10583"><param name="_cy" value="714"><param name="FlashVars" value="audioUrl=http://www.asq4.com/audio/'+audio+'&autoplay=true"><param name="Movie" value="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=http://www.asq4.com/audio/'+audio+'&autoplay=true"><param name="Src" value="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=http://www.asq4.com/audio/'+audio+'&autoplay=true"><param name="WMode" value="Window"><param name="Play" value="true"><param name="Loop" value="-1"><param name="Quality" value="High"><param name="SAlign" value="LT"><param name="Menu" value="-1"><param name="Base" value=""><param name="AllowScriptAccess" value="never"><param name="Scale" value="NoScale"><param name="autoplay" value="true"><param name="DeviceFont" value="0"><param name="EmbedMovie" value="0"><param name="BGColor" value="#333333"><param name="SWRemote" value=""><param name="MovieData" value=""><param name="SeamlessTabbing" value="1"><param name="Profile" value="0"><param name="ProfileAddress" value=""><param name="ProfilePort" value="0"><param name="AllowNetworking" value="all"><param name="AllowFullScreen" value="false"><embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=http://www.asq4.com/audio/'+audio+'&autoplay=true" allowscriptaccess="never" quality="best" bgcolor="#333333" wmode="window" flashvars="playerMode=embedded&backgroundColor=0xEEEEEE&autoplay=true" pluginspage="http://www.macromedia.com/go/getflashplayer" height="27" width="400"></object><p>'+title+'</p>';	
	
return 	AudioStr;
}



//==================================================
function GetAudioStr(audio, title){
AudioStr='<p><embed src="http://webjay.org/flash/dark_player" width="400" height="40" wmode="transparent" flashVars="playlist_url=http://www.asq4.com/audio/'+audio+'&skin_color_1=-145,-89,-4,5&skin_color_2=-141,20,0,0&autoplay=true" type="application/x-shockwave-flash" /></p><p>'+title+'</p>';


return AudioStr;
}


//==================================================
function PlayVideo(videofile){
//video=videofile.replace(/.flv/i, '');
var tmp=document.getElementById("videobox");
tmp.innerHTML=GetVideoStr(videofile);
tmp.style.display="block";	
//swfobject.registerObject("FLVPlayer");
return true;
}
	
//==================================================
function CloseWindow(){
var tmp=document.getElementById("videobox");	
tmp.innerHTML='';
tmp.style.display="none";	
 }
  
 
//==================================================
function GetCustomAudio(audio, title){
var Str='<object type="application/x-shockwave-flash" data="http://www.asq4.com/flash/audio_player.swf" width="410" height="27" id="audioplayer"><param name="movie" value="http://www.asq4.com/flash/audio_player.swf" /><param name="bgcolor" value="#C6C7B9" /><param name="autoplay" value="1" /><param name="FlashVars" value="mp3=http://www.asq4.com/audio/'+audio+'&autoload=1 &width=410&height=27&autoplay=1&volume=50&showvolume=1&sliderheight=15&volumeheight=10&loadingcolor=ffffff&bgcolor=C6C7B9&bgcolor1=cccccc&bgcolor2=cccccc&slidercolor1=E5E5E5&slidercolor2=999999&buttoncolor=333333" /></object><p>'+title+'</p>';

return Str;
 }

 
 
//==================================================
function PlayAudio(file, title){
var tmp=document.getElementById("audiobox");
//tmp.innerHTML=GetAudioStr(file, title);
//tmp.innerHTML=GetGoogleAudioStr(file, title);
tmp.innerHTML=GetCustomAudio(file, title);
tmp.style.display="block";	
document.getElementById("audioplayer").SetVariable("player:jsPlay", "");
return true; 
 }
 
 
 
 
 