One .asf to use two diferent .xml files

On our Intranet I have an audio player delivering multiple mp3’s referenced by accessing the links from an external .xml file as standard and all works well :slight_smile:

MY PROBLEM = I am now asked to make this available on the Internet. For technical and security reasons if the user is internal on the Intranet they will get the flash file on the Intranet server and if on the Internet will get the Flash file from a duplicate site on an internet server.

This is the code I am using to send a user to the appropriate file for a video (together with an include file containing the two url’s to the Intranet and the internet) which works fine.

QUESTION how do I code the param or obect tag (or both) to direct the user dependent on there access iether Intranet or Internet.

              <script type="text/javascript">

AC_FL_RunContent( ‘id’,‘myId’,‘type’,’’,‘width’,‘320’,‘height’,‘240’,‘movie’,’<%=spurl(“newVid2”)%>?video=<%=spurl(“AirMiles.flv”)%>’ ); //end AC code
</script>
<noscript>
<object id=“myId” type=“application/x-shockwave-flash” width=“320” height=“240” >
<param name=“movie” value="<%=spurl(“player.swf”)%>?video=<%=spurl(“AirMiles.flv”)%>" />
</object>
</noscript>

Thanks for any help as I am really lost on this.