function showJpg()
{
document.write('<img src="i/cal.jpg" width="800" height="174" hspace="0" vspace="0" border="0">');
}

function showAnim()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="174" id="anim" align="middle">\n');
document.write('<param name="movie" value="cal.swf" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#000000" />\n');
document.write('<embed src="cal.swf" quality="high" bgcolor="#000000" width="800" height="174" name="anim" align="middle" swLiveConnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    // if cookie exists
    if (offset != -1) { 
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1) end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function playAnim()
{
if (get_cookie("lastpage")!="cal")
showAnim();
else
showJpg();
}


