if (f.indexOf(".mp3") != -1 || f.indexOf(".wma") != -1 || f.indexOf(".asf") != -1 || f.indexOf(".wav") != -1 || f.indexOf(".avi") != -1 || f.indexOf(".mpg") != -1 || f.indexOf(".mpeg") != -1 || f.indexOf(".wmv") != -1) {
	if (detectWindowsMedia() == false) {
	    document.write('<div align=center class=required>Windows Media Player is required to play this media. To download Windows Media Player click the link below:<br /><br /><a href="players/wmp.exe">Download Windows Media Player</a></div>');
	} else { 
	    document.write('<OBJECT height="64" width="350" border="0" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" VIEWASTEXT>');
	    document.write('<PARAM NAME="URL" VALUE="'+f+'">');
	    document.write('<PARAM NAME="rate" VALUE="1">');
	    document.write('<PARAM NAME="balance" VALUE="0">');
	    document.write('<PARAM NAME="currentPosition" VALUE="0">');
	    document.write('<PARAM NAME="defaultFrame" VALUE="">');
	    document.write('<PARAM NAME="playCount" VALUE="1">');
	    document.write('<PARAM NAME="autoStart" VALUE="-1">');
	    document.write('<PARAM NAME="currentMarker" VALUE="0">');
	    document.write('<PARAM NAME="invokeURLs" VALUE="-1">');
	    document.write('<PARAM NAME="baseURL" VALUE="">');
	    document.write('<PARAM NAME="volume" VALUE="100">');
	    document.write('<PARAM NAME="mute" VALUE="0">');
	    document.write('<PARAM NAME="uiMode" VALUE="full">');
	    document.write('<PARAM NAME="stretchToFit" VALUE="-1">');
	    document.write('<PARAM NAME="windowlessVideo" VALUE="0">');
	    document.write('<PARAM NAME="enabled" VALUE="-1">');
	    document.write('<PARAM NAME="EnableContextMenu" VALUE="0">');
	    document.write('<PARAM NAME="fullScreen" VALUE="0">');
	    document.write('<PARAM NAME="SAMIStyle" VALUE="">');
	    document.write('<PARAM NAME="SAMILang" VALUE="">');
	    document.write('<PARAM NAME="SAMIFilename" VALUE="">');
	    document.write('<PARAM NAME="captioningID" VALUE="">');
	    document.write('<PARAM NAME="enableErrorDialogs" VALUE="0">');
	    document.write('<PARAM NAME="_cx" VALUE="25030">');
	    document.write('<PARAM NAME="_cy" VALUE="6615">');
        document.write('<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'+f+'" width="350" height="64" AutoStart="1" volume="100" EnableContextMenu="0" uiMode="full"></EMBED>');
        document.write('</OBJECT>');
	}
} else if (f.indexOf(".mov") != -1 || f.indexOf(".mid") != -1 || f.indexOf(".3gp") != -1 || f.indexOf(".mp4") != -1 || f.indexOf(".amr") != -1) {
    if (detectQuickTime() == false) {
	    document.write('<div align=center class=required>Quick Time Player is required to play this media. To download Quick Time Player click the link below:<br /><br /><a href="players/QuickTime.exe">Download Quick Time Player</a></div>');
	} else { 
	    document.write('<OBJECT height="64" width="350" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">');
	    document.write('<PARAM NAME="SRC" VALUE="'+f+'">');
	    document.write('<PARAM NAME="AutoPlay" VALUE="true">');							
	    document.write('<PARAM NAME="CONTROLLER" VALUE="true">');
	    document.write('<PARAM NAME="LOOP" VALUE="false">');
        document.write('<PARAM NAME="BGCOLOR" VALUE="#B8B8B8">');
        document.write('<EMBED src="'+f+'" width="350" height="64" LOOP="false" BGCOLOR="#B8B8B8" AutoPlay="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED>');
	    document.write('</OBJECT>');
    }
} else {
    if (detectReal() == false) {
	    document.write('<div align=center class=required>Real Player is required to play this media. To download Real Player click the link below:<br /><br /><a href="players/real.exe">Download Real Player</a></div>');
	} else { 
	    document.write('<OBJECT height="64" width="350" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" VIEWASTEXT>');
	    document.write('<PARAM NAME="SRC" VALUE="'+f+'">');
	    document.write('<PARAM NAME="_ExtentX" VALUE="11377">');							
	    document.write('<PARAM NAME="_ExtentY" VALUE="794">');
	    document.write('<PARAM NAME="AUTOSTART" VALUE="-1">');
	    document.write('<PARAM NAME="SHUFFLE" VALUE="0">');
	    document.write('<PARAM NAME="PREFETCH" VALUE="0">');
	    document.write('<PARAM NAME="NOLABELS" VALUE="0">');								
	    document.write('<PARAM NAME="CONTROLS" VALUE="ControlPanel">');
	    document.write('<PARAM NAME="CONSOLE" VALUE="one">');
	    document.write('<PARAM NAME="LOOP" VALUE="0">');
	    document.write('<PARAM NAME="NUMLOOP" VALUE="0">');
	    document.write('<PARAM NAME="CENTER" VALUE="0">');
	    document.write('<PARAM NAME="MAINTAINASPECT" VALUE="0">');
	    document.write('<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">');
        document.write('<EMBED height="64" width="350" controls="ControlPanel" BACKGROUNDCOLOR="#000000" src="'+f+'" type="audio/x-pn-realaudio-plugin" autostart="true" CONSOLE="1"></EMBED>');
	    document.write('</OBJECT>');
    }
}
