<!--
function getCookieVal (offset)
{
 var endstr = document.cookie.indexOf (";", offset);
 if (endstr == -1)
  endstr = document.cookie.length;
 return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name)
 {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen)
   {
     var j = i + alen;
     if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
     i = document.cookie.indexOf(" ", i) + 1;
     if (i == 0)
      break;
  }
  return null;
 }

function ShowFlash()
 {
  if(!GetCookie("flash"))
   {
     h=500;
     w=627;
     l=(screen.width-w)/2;
     t=(screen.height-h)/2;
     param='width='+w+',height='+h+',top='+t+',left='+l;
     flash=window.open("/flash.phtml","Flash",param);
     document.cookie="flash=1; path=/"; 
   }
 }
 function HideFlash()
 	{
		window.close;
 	}
//-->
