function FlashView(useRedirect,hasRightVersion,common_mediaplayers_isPlayerSupported,strFlashVars,strMovie,strSrc,strHtmlDataRs,intHeight,intWidth,strExtraDiv)
{
	if (!useRedirect) {
		if(hasRightVersion && common_mediaplayers_isPlayerSupported) {
		//for audio files
		var oeTags = "<!--Flash Player--><table cellpadding='0' cellspacing='0' border='0'><tr><td><OBJECT id='album_player' codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' height='"+intHeight+"' width='"+intWidth+"' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' VIEWASTEXT><PARAM NAME='_cx' VALUE='13229'><PARAM NAME='_cy' VALUE='7594'><PARAM NAME='FlashVars' VALUE='"+strFlashVars+"'><PARAM NAME='Movie' VALUE='"+strMovie+"'><PARAM NAME='Src' VALUE='"+strSrc+"'><PARAM NAME='WMode' VALUE='transparent'><PARAM NAME='Play' VALUE='-1'><PARAM NAME='Loop' VALUE='-1'><PARAM NAME='Quality' VALUE='High'><PARAM NAME='SAlign' VALUE=''><PARAM NAME='Menu' VALUE='0'><PARAM NAME='Base' VALUE=''><PARAM NAME='Scale' VALUE='ShowAll'><PARAM NAME='DeviceFont' VALUE='0'><PARAM NAME='EmbedMovie' VALUE='0'><PARAM NAME='BGColor' VALUE=''><PARAM NAME='SWRemote' VALUE=''><EMBED src='"+strMovie+"' wmode='transparent' FlashVars='"+strFlashVars+"' quality='high' bgcolor='#FFFFFF' height='"+intHeight+"' width='"+intWidth+"' NAME='main' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED><NOEMBED>You need to have windows media to view the video.</NOEMBED></OBJECT><OBJECT id='music_player' codeBase='http://www.microsoft.com/ntserver/netshow/download/en/nsmp2inf.cab#Version=6,1,51,415' height='0' standby='Loading Microsoft Media Player components...' width='0' classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95' VIEWASTEXT><PARAM NAME='AudioStream' VALUE='-1'><PARAM NAME='AutoSize' VALUE='0'><PARAM NAME='AutoStart' VALUE='-1'><PARAM NAME='AnimationAtStart' VALUE='0'><PARAM NAME=AllowScan VALUE=-1><PARAM NAME=AllowChangeDisplaySize VALUE=-1><PARAM NAME=AutoRewind VALUE=0><PARAM NAME=Balance VALUE=0><PARAM NAME=BaseURL VALUE=/Previews/SoundClip.aspx?link=vc14zldq0pqi75xxsy3e4zu><PARAM NAME=BufferingTime VALUE=5><PARAM NAME=CaptioningID VALUE=><PARAM NAME=ClickToPlay VALUE=-1><PARAM NAME=CursorType VALUE=0><PARAM NAME=CurrentPosition VALUE=-1><PARAM NAME=CurrentMarker VALUE=0><PARAM NAME=DefaultFrame VALUE=><PARAM NAME=DisplayBackColor VALUE=0><PARAM NAME=DisplayForeColor VALUE=16777215><PARAM NAME=DisplayMode VALUE=0><PARAM NAME=DisplaySize VALUE=0><PARAM NAME=Enabled VALUE=-1><PARAM NAME=EnableContextMenu VALUE=0><PARAM NAME=EnablePositionControls VALUE=-1><PARAM NAME=EnableFullScreenControls VALUE=-1><PARAM NAME=EnableTracker VALUE=0><PARAM NAME=Filename VALUE=><PARAM NAME=InvokeURLs VALUE=-1><PARAM NAME=Language VALUE=0><PARAM NAME=Mute VALUE=0><PARAM NAME=PlayCount VALUE=5><PARAM NAME=PreviewMode VALUE=0><PARAM NAME=Rate VALUE=1><PARAM NAME=SAMILang VALUE=><PARAM NAME=SAMIStyle VALUE=123><PARAM NAME=SAMIFileName VALUE=><PARAM NAME=SelectionStart VALUE=-1><PARAM NAME=SelectionEnd VALUE=-1><PARAM NAME=SendOpenStateChangeEvents VALUE=-1><PARAM NAME=SendWarningEvents VALUE=-1><PARAM NAME=SendErrorEvents VALUE=-1><PARAM NAME=SendKeyboardEvents VALUE=0><PARAM NAME=SendMouseClickEvents VALUE=0><PARAM NAME=SendMouseMoveEvents VALUE=0><PARAM NAME=SendPlayStateChangeEvents VALUE=-1><PARAM NAME=ShowCaptioning VALUE=-1><PARAM NAME=ShowControls VALUE=0><PARAM NAME=ShowAudioControls VALUE=0><PARAM NAME=ShowDisplay VALUE=-1><PARAM NAME=ShowGotoBar VALUE=0><PARAM NAME=ShowPositionControls VALUE=-1><PARAM NAME=ShowStatusBar VALUE=-1><PARAM NAME=ShowTracker VALUE=-1><PARAM NAME=TransparentAtStart VALUE=0><PARAM NAME=VideoBorderWidth VALUE=1><PARAM NAME=VideoBorderColor VALUE=16777215><PARAM NAME=VideoBorder3D VALUE=-1><PARAM NAME=Volume VALUE=-600><PARAM NAME=WindowlessVideo VALUE=0></OBJECT>"+strExtraDiv+"</td></tr></table><!--End Flash Player-->";
		document.write(oeTags);
		} else {
	    	var alternateContent = strHtmlDataRs;
		    document.write(alternateContent);
		}
	}	
	//alert('useRedirect: '+useRedirect);
	//alert('hasRightVersion: '+hasRightVersion);
	//alert('useRedirect: '+common_mediaplayers_isPlayerSupported);
}

function WindowsMediaShow(directLink,studioName,theFlag,isFlash,maxBR)
{

//directLink = 'http://members.aol.com/jrzycrim01/mozilla/wmp/vidtest-HS.wmv';
//directLink = 'http://www.videodetective.net/player.asp?cmd=5&customerId=25213&publishedId=416454&KbTestResult=';

                       
                       document.write(" <a name=\"thepreview\"><center>");
                       document.write("<table border=0 cellpadding=0 cellspacing=0 align=center ><tr><td width=11><img src=/images/boxtl.gif border=0 width=11 height=25></td><td background=/images/boxtm.gif align=center class=txt><b>Preview</b></td><td width=11><img src=/images/boxtr.gif border=0 width=11 height=25></td></tr><tr><td background=/images/boxl.gif></td><td bgcolor=#ffffff valign=top align=center >");

                        if(theFlag=="S" || isFlash=="false"){//use Windows media player

                           document.write("<OBJECT ID='MediaPlayer' type='application/x-ms-wmp'"); // WIDTH=320 HEIGHT=240 ");
                           
                           if(navigator.appName == "Microsoft Internet Explorer")
                            document.write(" classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' ");                       
                           else
                            document.write(" WIDTH=320 HEIGHT=240 ");
                           
                           document.write( " codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112'");
                           document.write( " standby='Loading Microsoft Windows Media Player components...'");
                           //document.write( " data='" + directLink + "'>");
                           document.write("     <param name='FileName' VALUE='" + directLink + "'>");
                           document.write("     <param name='src' VALUE='" + directLink + "'>");                       
                           document.write( "     <param name='ShowControls' VALUE='1'>");
                           document.write( "     <param name='ShowDisplay' VALUE='0'>");
                           document.write( "     <param name='ShowStatusBar' VALUE='1'>");
                           document.write( "     <param name='AutoSize' VALUE='0'>");
                           document.write( "     <param name='stretchToFit' VALUE='0'>");
                           document.write( "     <param name='AutoStart' VALUE='1'>");
                           document.write( "     <param name='ClickToPlay' VALUE='1'>");
                           document.write("     <param name='TransparentAtStart' VALUE='1'>");
                           document.write("     <param name='EnableFullScreenControls' VALUE='1'>");
                           document.write("     <param name='windowlessVideo' VALUE='1'>");
                          
                           document.write( "     <Embed type='application/x-mplayer2'");
                           document.write( "         pluginspage='http://www.microsoft.com/windows/windowsmedia/download/'");
                           document.write("         FileName='" + directLink + "' ");
                           document.write( "         src='" + directLink + "'");
                           document.write( "         ShowControls=1");
                           document.write( "         ShowDisplay=0");
                           document.write( "         ShowStatusBar=1");
                           document.write( "         AutoSize=0");                       
                           document.write( "         stretchToFit=0");
                           document.write("         width=400");
                           document.write("         height=300");
                           document.write( "         AutoStart=1");
                           document.write( "         ClickToPlay=1");
                           document.write("         TransparentAtStart=1");
                           document.write("         EnableFullScreenControls=1");
                           document.write( "         windowlessVideo=1>");
                           document.write( "     </embed>");
    // */                       
                           document.write(" </OBJECT>");
                       
                       }
                       
                       else{//use flash movie player 

                       //directLink = directLink.toString().replace("bitrateid=10","bitrateid=314");//change bitrate to call .flv format.
                       directLink = directLink.toString().replace("bitrateid=10","bitrateid="+maxBR);

                       strFlashVars="movLink=" + directLink;

                        document.write("<OBJECT id='movie_player' codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' height='400' width='490' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' VIEWASTEXT><param name='allowFullScreen' value='true' ><PARAM NAME='_cx' VALUE='13229'><PARAM NAME='_cy' VALUE='7594'><PARAM NAME='Movie' VALUE='/controls/flash/vidplayer.swf'><PARAM NAME='Src' VALUE='/controls/flash/vidplayer.swf'><PARAM NAME='FlashVars' VALUE='"+strFlashVars+"'><PARAM NAME='WMode' VALUE='transparent'><PARAM NAME='Play' VALUE='-1'><PARAM NAME='Loop' VALUE='-1'><PARAM NAME='Quality' VALUE='High'><PARAM NAME='SAlign' VALUE=''><PARAM NAME='Menu' VALUE='0'><PARAM NAME='Base' VALUE=''><PARAM NAME='Scale' VALUE='ShowAll'><PARAM NAME='DeviceFont' VALUE='0'><PARAM NAME='EmbedMovie' VALUE='0'><PARAM NAME='BGColor' VALUE='#000000'><PARAM NAME='SWRemote' VALUE=''><EMBED src='/controls/flash/vidplayer.swf?movLink=" + directLink + "' FlashVars='"+strFlashVars+"' wmode='transparent' allowFullScreen='true' quality='high' bgcolor='#000000' height='400' width='490' NAME='main' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>");

                       }

                       
                       document.write("<br>" + studioName + "</td><td background=/images/boxr.gif></td></tr><tr><td width=11><img src=/images/boxbl.gif border=0 width=11></td><td background=/images/boxbm.gif class=txt></td><td width=11><img src=/images/boxbr.gif border=0 width=11></td></tr></table></center>");
/*                       
document.write('      <object data="http://members.aol.com/jrzycrim01/mozilla/wmp/vidtest-HS.wmv" type="video/x-ms-wmv" ');
document.write('       width="320" height="320">');
document.write('    <param name="ShowStatusBar" value="1">');
document.write('       <param name="src" value="http://members.aol.com/jrzycrim01/mozilla/wmp/vidtest-HS.wmv">');
document.write('       <param name="autostart" value="0">');
document.write('       <param name="volume" value="0">');
document.write('      </object>                       ');
// */                        
}

