function showJpg()
{
document.write('<img src="i/home_rgt.jpg" width="467" height="700" 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="467" height="700" id="anim" align="middle">\n');
document.write('<param name="movie" value="1.swf" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#b38d69" />\n');
document.write('<embed src="1.swf" quality="high" bgcolor="#b38d69" width="467" height="700" 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 playHome()
{
if (get_cookie("amhomeanimshown")!="yes")
showAnim();
else
showJpg();
}

function anim_played()
{
document.cookie="amhomeanimshown=yes";
}

