how can i use javascript and html to check the day of the week and then based on what day it is, embedded a video on my webpage (different video for each day of the week).
I have the following javascript code:
<script type="text/javascript">

var curdate = new Date();
var dayofweek = curdate.getUTCDay();

function dow()
{
// based on day of week, set a value and play specific video in HTML code below

if (dayofweek == 0 || dayofweek == 2 || dayofweek == 5) {
set a value;
}
elseif (dayofweek == 1 || dayofweek == 4){
set a value;
}
else{
set a value;
}

</script>

I then have the following html code that embeds my video:
<div id="media">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="299" id="csSWF">
<param name="movie" value="Trans_controller.swf" />
<param name="quality" value="best" />
<param name="bgcolor" value="#1a1a1a" />
<param name="allowfullscreen" value="true" />
<param name="scale" value="showall" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="autostart=false&thumb=Trans.png&thumbscale=80&color=0x000000,0x000000" />
</object> </div>