// JavaScript Document
function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}




function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}


function hideWebFront()
{
	 document.getElementById('webfrontid').style.visibility = 'hidden';
	 document.getElementById('webfrontid').style.display = 'none';
}

function checkCookie()
{
webfrontcookie=getCookie('webfront');

//alert(webfrontcookie);	

if (webfrontcookie == 'yes')
  {
  	 //document.getElementById('webfrontid').style.visibility = 'hidden';
	 //document.getElementById('webfrontid').style.display = 'none';
  }
else
  {
	 document.writeln("<div id=\"webfrontid\">");
  	 document.writeln("<object id=\"FlashID2\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"250\" height=\"300\">");
     document.write("<param name=\"movie\" value=\"flash/WebFront.swf\" />")
	 document.write("<param name=\"quality\" value=\"high\" />")
	 document.write("<param name=\"wmode\" value=\"transparent\" />")
	 document.write("<param name=\"swfversion\" value=\"6.0.65.0\" />")
	 document.write("<param name=\"expressinstall\" value=\"scripts/expressInstall.swf\" />")
	 document.write("<!--[if !IE]>-->")
	 document.write("<object type=\"application/x-shockwave-flash\" data=\"flash/WebFront.swf\" width=\"250\" height=\"300\">")
	 document.write("<!--<![endif]-->")
	 document.write("<param name=\"quality\" value=\"high\" />")
	 document.write("<param name=\"wmode\" value=\"transparent\" />")
	 document.write("<param name=\"swfversion\" value=\"6.0.65.0\" />")
	 document.write("<param name=\"expressinstall\" value=\"scripts/expressInstall.swf\" />")
	 document.write("<div>")
	 document.write("<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>")
	 document.write("<p><a href=\"http://www.adobe.com/go/getflashplayer\"><img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Adobe Flash player\" width=\"112\" height=\"33\" /></a></p>")
	 document.write("</div>")
	 document.write("<!--[if !IE]>-->")
	 document.write("</object>")
	 document.write("<!--<![endif]-->")
	 document.write("</object>")
	 document.write("</div>")
	 setCookie('webfront','yes',30)
  }
}