//============================================
//=============================================
//If you modify this file, pleas note it below
//author                date                        change
//sekhris               12/03/2001      		edited the menuMap portion of writerFooter        
//whittaker             12/17/2001      		added dynamic function calls for section navigation and menu maps
//sekhris               12/19/2001			rollover image functions added
//lpoplawski            12/11/2001          	fixed logoff (reservations logoff goes to reservation overview) - pulled out of old cvs version
//lpoplawski            12/19/2001      		fixed where gift certificates link goes
//sekhris	            12/20/2001      		rollover works in IE
//sekhris	            12/20/2001      		rollover works in both browsers
//sekhris	            12/20/2001      		remove rollover if the mouse is not on it
//sekhris	            01/08/2002      		made different sections for log off to direct to
//sekhris	            01/18/2002      		made a portion of the secondary nav dynamic
//sekhris	            01/18/2002      		made secondary nav dynamic
//sekhris	            01/28/2002      		added giftCert sections to footer and secondary navs
//sekhris	            01/29/2002      		made Wampum work in the secondary navs
//mchan			03/15/2002			temporarily split banner and reserve_banner and fixed drop downs
//lpoplawski		03/18/2002			commented out changing gift cert to ssl




//browser sniff
var isIE = (document.all)? true:false;
var nscp = (navigator.appName == "Netscape");

//Preload Images
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//Swap Images
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function doElementMouseOut(currentPage,imageSource) {
  var swapImage = "/images/"+imageSource+"_off.gif";
  var swapCurrentImage = "/images/"+currentPage+"_on.gif";
  MM_swapImgRestore();
  if(currentPage!='none'){MM_swapImage(currentPage,'',swapCurrentImage,1); } 
  if(currentPage != imageSource){MM_swapImage(imageSource,'',swapImage,1);}
}

function doElementMouseOver(currentPage,introText,imageSource) {
  var swapImage = "/images/"+imageSource+"_on.gif";
  var swapCurrentImage = "/images/"+currentPage+"_off.gif";
  var swapIntroImage = "/images/"+introText+"_"+imageSource+"_intro.gif";
  if(currentPage != imageSource){MM_swapImage(currentPage,'',swapCurrentImage,1);}
  MM_swapImage(imageSource,'',swapImage,1);
  MM_swapImage('menu','',swapIntroImage,1);
  MM_callJS(menuRoll(2));
}

function doNavMouseOut(currentPage,imageSource) {
  var swapImage = "/images/"+imageSource+"_off.gif";
  var swapCurrentImage = "/images/"+currentPage+"_on.gif";
  MM_swapImgRestore();
  if(currentPage!='none'){MM_swapImage(currentPage,'',swapCurrentImage,1); } 
  if(currentPage != imageSource){MM_swapImage(imageSource,'',swapImage,1);}
}

function doNavMouseOver(currentPage,introText,imageSource) {
  var swapImage = "/images/"+imageSource+"_on.gif";
  var swapCurrentImage = "/images/"+currentPage+"_off.gif";
  var swapIntroImage = "/images/"+introText+"_"+imageSource+"_intro.gif";  
  if(currentPage != imageSource){MM_swapImage(currentPage,'',swapCurrentImage,1);}
  MM_swapImage(imageSource,'',swapImage,1);
  MM_swapImage('menu','',swapIntroImage,1);
  MM_callJS(menuRoll(2));
}

function doBodyMouseOver(currentImage,imageSource) {
  var swapImage = "/images/"+currentImage+"_"+imageSource+"_over.gif";
  var swapCurrentImage = "/images/"+currentImage+"_"+imageSource+".gif";
  MM_swapImage(imageSource,'',swapImage,1);
  MM_callJS(menuRoll(2));
}

function doBodyMouseOut(currentImage,imageSource) {
  var swapImage = "/images/"+currentImage+"_"+imageSource+".gif";
  var swapCurrentImage = "/images/"+currentImage+"_"+imageSource+"_over.gif";
  MM_swapImage(imageSource,'',swapImage,1);
}

function doPequotMouseOut(currentPage,imageSource) {
  var swapImage = "/pequots/images/"+currentPage+"_banner_"+imageSource+"_off.gif";
  var swapCurrentImage = "/pequots/images/"+currentPage+"_banner_"+imageSource+"_on.gif";
  var thisPage = "/pequots/images/"+currentPage+"_banner_"+currentPage+"_on.gif";
  MM_swapImgRestore(); 
  if(currentPage != imageSource)
    {
     MM_swapImage(imageSource,'',swapImage,1);
     MM_swapImage(currentPage,'',thisPage,1);
    }
}

function doPequotMouseOver(currentPage,imageSource) {
  var swapImage = "/pequots/images/"+currentPage+"_banner_"+imageSource+"_on.gif";
  var swapCurrentImage = "/pequots/images/"+currentPage+"_banner_"+imageSource+"_off.gif";
  var thisPage = "/pequots/images/"+currentPage+"_banner_"+currentPage+"_off.gif";
  MM_swapImgRestore(); 
  if(currentPage != imageSource)
    {
     MM_swapImage(imageSource,'',swapImage,1);
     MM_swapImage(currentPage,'',thisPage,1);
    }
  MM_callJS(menuRoll(2));
}

function doPequotNavMouseOut(currentPage,imageSource) {
  var swapImage = "/pequots/images/history_bar_"+imageSource+"_off.gif";
  var swapCurrentImage = "/pequots/images/history_bar_"+imageSource+"_on.gif";
  var thisPage = "/pequots/images/history_bar_"+currentPage+"_on.gif";
  MM_swapImgRestore(); 
  if(currentPage != imageSource)
    {
     MM_swapImage(imageSource,'',swapImage,1);
     MM_swapImage(currentPage,'',thisPage,1);
    }
}

function doPequotNavMouseOver(currentPage,imageSource) {
  var swapImage = "/pequots/images/history_bar_"+imageSource+"_on.gif";
  var swapCurrentImage = "/pequots/images/history_bar_"+imageSource+"_off.gif";
  var thisPage = "/pequots/images/history_bar_"+currentPage+"_off.gif";
  MM_swapImgRestore(); 
  if(currentPage != imageSource)
    {
     MM_swapImage(imageSource,'',swapImage,1);
     MM_swapImage(currentPage,'',thisPage,1);
    }
  MM_callJS(menuRoll(2));
}

//Cookie functions

function getCookie (name) {
  var value = "none";
  name += "=";
  if (document.cookie.length > 0 && getCookie.arguments.length == 1) {
    var start = document.cookie.indexOf (name);
    if (start != -1) {
      start += name.length;
      var end = document.cookie.indexOf (";", start);
      if (end == -1) {
        end = document.cookie.length;
      }
      if (end - start > 0)
      {
        value = 'true';
      }
    }
  }
  return value;
}

//deleteCookie.asp invalidates cookie.
function doLogOff(section)
{
  var confirmQ = "Are you sure you want to Log off?";
  var loc = window.location.pathname;

  var wampCheck = false;
  var resCheck = false;
  var gcCheck = false;

  if (section == 'reservations')
  {
      confirmQ = "When you log off, you will be returned to the reservations sign-in page. \n\n"+confirmQ;
      resCheck = true;
  }
  else if (section == 'wampum')
  {
      confirmQ = "When you log off, you will be returned to the sign-in page. \n\n"+confirmQ;
      wampCheck = true;
  }
  else if (section == 'giftCert')
  {
      confirmQ = "When you log off, you will be returned to the gift certificates overview page. \n\n"+confirmQ;
      gcCheck = true;
  }
  if (confirm(confirmQ))
  {
    if ( wampCheck )
    {
      window.location = "/wampum/deleteCookie.asp?URL="+escape("/wampum_club.html")+"&addSSL=y";
    } 
    else if ( resCheck )
    {

      window.location = "/wampum/deleteCookie.asp?URL="+escape("/reservations.html")+"&addSSL=y";
    } 
    else if ( gcCheck )
    {
      //window.location = "/wampum/deleteCookie.asp?URL="+escape("/gift_certificates.html")+"&addSSL=y";
	// getting rid of gift certificates logon for release 3
      window.location = "/wampum/deleteCookie.asp?URL="+escape("/gift_certificates.html")+"&addSSL=n";
    } 
    else
    {
        var location = String(window.location);
        for (i=0; i<location.length; i++)
        {
          if (location.charAt(i) == '.')
          {
            location = location.substring(0,i)+'|'+location.substring(i+1,location.length)
          }
        }
        window.location = "/wampum/deleteCookie.asp?URL="+location;
    }
  }
}


//used when called without a section
function logOff()
{
  doLogOff('');
}


//direct where the Wampum Club nav button goes (only called from html)
function goWampumClub()
{
  if (getCookie('hFoxwoodsSessionID') =='true')
  {
        window.location = "https://"+window.location.hostname+"/wampum/my_wampum.asp?v=h";
  } else
  {
        window.location = "https://"+window.location.hostname+"/wampum_club.html";
  }
}

//direct where the Reservations nav button goes (only called from html)
function goReservations()
{
  if (getCookie('hFoxwoodsSessionID') =='true')
  {
        window.location = "http://"+window.location.hostname+"/reservations.html";
  } else
  {
        window.location = "https://"+window.location.hostname+"/reservations.html";
  }
}

//direct where the Gift Certificates nav button goes (only called from html)
function goGiftCertificates()
{
  if (getCookie('hFoxwoodsSessionID') =='true')
  {
        window.location = "http://"+window.location.hostname+"/gift_certificates.html";
  } else
  {
        //window.location = "https://"+window.location.hostname+"/gift_certificates.html";
        // getting rid of gift certificates login for release 3
        window.location = "http://"+window.location.hostname+"/gift_certificates.html";
  }
}

//direct where the View Reservations secondary nav button goes
function goViewHotelReservations()
{
  if (checkShowHeaderFooter() && getCookie('hFoxwoodsSessionID') =='true')
  {
        // html logged in
        window.location = "https://"+window.location.hostname+"/wampum/view_hotel_reservations.asp?v=h";
  } 
  else if (!checkShowHeaderFooter() && getCookie('foxwoodsSessionID') =='true')
  {
        // flash logged in
        window.location = "https://"+window.location.hostname+"/wampum/view_hotel_reservations.asp?v=f";
  } 
  else
  {
        window.location = "https://"+window.location.hostname+"/view_hotel_reservations.html";
  }
}

function goViewDiningReservations()
{
  if (checkShowHeaderFooter() && getCookie('hFoxwoodsSessionID') =='true')
  {
        // html logged in
        window.location = "https://"+window.location.hostname+"/wampum/view_dining_reservations.asp?v=h";
  } 
  else if (!checkShowHeaderFooter() && getCookie('foxwoodsSessionID') =='true')
  {
        // flash logged in
        window.location = "https://"+window.location.hostname+"/wampum/view_dining_reservations.asp?v=f";
  } 
  else
  {
        window.location = "https://"+window.location.hostname+"/view_dining_reservations.html";
  }
}

function doReservationsSwitch(theLink)
{
  var agt=navigator.userAgent.toLowerCase();
    var appVer = navigator.appVersion.toLowerCase();

    // *** BROWSER VERSION ***

    var is_minor = parseFloat(appVer);
    var is_major = parseInt(is_minor);

    // Note: On IE, start of appVersion return 3 or 4
    // which supposedly is the version of Netscape it is compatible with.
    // So we look for the real version further on in the string

    var iePos  = appVer.indexOf('msie');
    if (iePos !=-1) {
       is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)))
       is_major = parseInt(is_minor);
    }

    var is_ie   = (iePos!=-1);
    var is_ie3  = (is_ie && (is_major < 4));

    var is_ie4   = (is_ie && is_major == 4);
    var is_ie4up = (is_ie && is_minor >= 4);
    var is_ie5   = (is_ie && is_major == 5);
    var is_ie5up = (is_ie && is_minor >= 5);
  // end browser version
  if ( (checkShowHeaderFooter() && getCookie('hFoxwoodsSessionID') != 'true') 
    || (!checkShowHeaderFooter() && getCookie('foxwoodsSessionID') != 'true') )
  {
        theLink.protocol = "https:";
        if (is_ie) theLink.port = "443";
  }
}

// Functions to navigate Press Center Next and Previous buttons
function pressCenterNext(pageNum)
{
	var pc_NavArray = new Array("/images_overview.html", "/images_conv_halls.html", "/images_gaming.html", "/images_logos.html", "/images_paragon.html", "/images_resort.html", "/images_star_lounge.html", "/images_other.html");
	var nextPage = (pageNum + 1);
	window.location = "http://"+window.location.hostname+pc_NavArray[nextPage];
}

function pressCenterPrevious(pageNum)
{
	var pc_NavArray = new Array("/images_overview.html", "/images_conv_halls.html", "/images_gaming.html", "/images_logos.html", "/images_paragon.html", "/images_resort.html", "/images_star_lounge.html", "/images_other.html");
	var prevPage = (pageNum - 1);
	window.location = "http://"+window.location.hostname+pc_NavArray[prevPage];
}

function checkShowHeaderFooter()
{
  if (window.name == 'flash')
  {
    return false;
  }
  return true;
}

// Section specific function calls used in dynamic creation of navigation menu

// Home Section
function sectionHeaderImage_home()
{
	document.write('<td rowspan="2" colspan="2" valign="bottom"><img src="/images/home_image_top.jpg" alt="Home" width="204" height="60" border="0"></td>');
}

function sectionNav_home()
{
	document.write('<td rowspan="2" colspan="3" valign="bottom" nowrap><a href="/resort.html" onMouseOut="doNavMouseOut(\'none\',\'resort\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'resort\');"><img name="resort" border="0" src="/images/resort_off.gif" width="63" height="59" alt="Resort"></a><a href="/gaming.html" onMouseOut="doNavMouseOut(\'none\',\'gaming\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'gaming\');"><img name="gaming" border="0" src="/images/gaming_off.gif" width="63" height="59" alt="Gaming"></a><a href="/entertainment.html" onMouseOut="doNavMouseOut(\'none\',\'entertain\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'entertain\');"><img name="entertain" border="0" src="/images/entertain_off.gif" width="63" height="59" alt="Entertainment"></a><a href="/dining.html" onMouseOut="doNavMouseOut(\'none\',\'dining\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'dining\');"><img name="dining" border="0" src="/images/dining_off.gif" width="63" height="59" alt="Dining"></a></td>');
 	document.write('</tr>');
 	document.write('<tr>');
	document.write('<td rowspan="1" colspan="1" valign="top"><img src="/images/home_image_bottom.jpg" width="101" height="43"></td>');
    document.write('<td rowspan="1" colspan="2" align="right" valign="bottom" nowrap><a href="/home.html" onClick="doProtocolSwitch(this);"><img src="/images/home_on.gif" width="87" height="25" name="home" alt="Home" border="0"></a><a href="/promotions.html" onMouseOut="doElementMouseOut(\'home\',\'promo\');" onMouseOver="doElementMouseOver(\'home\',\'home\',\'promo\');"><img name="promo" border="0" src="/images/promo_off.gif" width="86" height="25" alt="Promotions"></a><a href="javascript:goWampumClub()" onMouseOut="doElementMouseOut(\'home\',\'wampum\');" onMouseOver="doElementMouseOver(\'home\',\'home\',\'wampum\');"><img name="wampum" border="0" src="/images/wampum_off.gif" width="89" height="25" alt="Wampum Club"></a><a href="javascript:goReservations()" onMouseOut="doElementMouseOut(\'home\',\'reserve\');" onMouseOver="doElementMouseOver(\'home\',\'home\',\'reserve\');"><img name="reserve" border="0" src="/images/reserve_off.gif" width="76" height="25" alt="Reservations"></a></td>');
}

function sectionSecNav_home()
{
	if(isIE)
	{
		document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
		document.write('<div id="imageHolder" style="position:absolute; left: 248px; top: 106px;">');
		document.write('<img src="/images/home_nav.gif" height="24" name="menu" usemap="#menuMap" border="0">');
		document.write('</div>');
		document.write('</td>');
	}else
	{
		document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
		document.write('<img src="/images/home_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" width="15" height="23">');
		document.write('</td>');
	}
}

// Gift Certificates Section
function sectionHeaderImage_giftCert()
{
	document.write('<td rowspan="2" colspan="2" valign="bottom"><img src="/images/home_image_top.jpg" alt="Home" width="204" height="60" border="0"></td>');
}

function sectionNav_giftCert()
{
	document.write('<td rowspan="2" colspan="3" valign="bottom" nowrap><a href="/resort.html" onMouseOut="doNavMouseOut(\'none\',\'resort\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'resort\');"><img name="resort" border="0" src="/images/resort_off.gif" width="63" height="59" alt="Resort"></a><a href="/gaming.html" onMouseOut="doNavMouseOut(\'none\',\'gaming\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'gaming\');"><img name="gaming" border="0" src="/images/gaming_off.gif" width="63" height="59" alt="Gaming"></a><a href="/entertainment.html" onMouseOut="doNavMouseOut(\'none\',\'entertain\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'entertain\');"><img name="entertain" border="0" src="/images/entertain_off.gif" width="63" height="59" alt="Entertainment"></a><a href="/dining.html" onMouseOut="doNavMouseOut(\'none\',\'dining\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'dining\');"><img name="dining" border="0" src="/images/dining_off.gif" width="63" height="59" alt="Dining"></a></td>');
 	document.write('</tr>');
 	document.write('<tr>');
	document.write('<td rowspan="1" colspan="1" valign="top"><img src="/images/home_image_bottom.jpg" width="101" height="43"></td>');
    document.write('<td rowspan="1" colspan="2" align="right" valign="bottom" nowrap><a href="/home.html" onClick="doProtocolSwitch(this);"><img src="/images/home_on.gif" width="87" height="25" name="home" alt="Home" border="0"></a><a href="/promotions.html" onMouseOut="doElementMouseOut(\'home\',\'promo\');" onMouseOver="doElementMouseOver(\'home\',\'home\',\'promo\');"><img name="promo" border="0" src="/images/promo_off.gif" width="86" height="25" alt="Promotions"></a><a href="javascript:goWampumClub()" onMouseOut="doElementMouseOut(\'home\',\'wampum\');" onMouseOver="doElementMouseOver(\'home\',\'home\',\'wampum\');"><img name="wampum" border="0" src="/images/wampum_off.gif" width="89" height="25" alt="Wampum Club"></a><a href="javascript:goReservations()" onMouseOut="doElementMouseOut(\'home\',\'reserve\');" onMouseOver="doElementMouseOver(\'home\',\'home\',\'reserve\');"><img name="reserve" border="0" src="/images/reserve_off.gif" width="76" height="25" alt="Reservations"></a></td>');
}

function sectionSecNav_giftCert()
{
	if(isIE)
	{
		if(checkShowHeaderFooter())
		{
			document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
			document.write('<div id="imageHolder" style="position:absolute; left: 248px; top: 106px;">');
			document.write('<img src="/images/home_nav.gif" height="24" name="menu" usemap="#menuMap" border="0">');
			document.write('</div>');
			document.write('</td>');
		}else
		{
			document.write('<img src="/images/clear.gif" height="24" name="menu" border="0">');
		}
	}else
	{
		document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
		document.write('<img src="/images/home_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" border="0" width="15" height="23">');
		document.write('</td>');
	}
}

// Reservation Section
function sectionHeaderImage_reservations()
{
	document.write('<td rowspan="2" colspan="2" valign="bottom"><img src="/images/reserve_image_top.jpg" alt="Reservations" width="313" height="60" border="0"></td>');
}


function sectionNav_reservations()
{
	document.write('<td rowspan="2" colspan="3" valign="bottom" nowrap><a href="/resort.html" onMouseOut="doNavMouseOut(\'none\',\'resort\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'resort\');"><img name="resort" border="0" src="/images/resort_off.gif" width="63" height="59" alt="Resort"></a><a href="/gaming.html" onMouseOut="doNavMouseOut(\'none\',\'gaming\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'gaming\');"><img name="gaming" border="0" src="/images/gaming_off.gif" width="63" height="59" alt="Gaming"></a><a href="/entertainment.html" onMouseOut="doNavMouseOut(\'none\',\'entertain\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'entertain\');"><img name="entertain" border="0" src="/images/entertain_off.gif" width="63" height="59" alt="Entertainment"></a><a href="/dining.html" onMouseOut="doNavMouseOut(\'none\',\'dining\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'dining\');"><img name="dining" border="0" src="/images/dining_off.gif" width="63" height="59" alt="Dining"></a></td>');
 	document.write('</tr>');
 	document.write('<tr>');
	document.write('<td rowspan="1" colspan="1" valign="top"><img src="/images/reserve_image_bottom.jpg" width="110" height="43"></td>');
    document.write('<td rowspan="1" colspan="2" align="right" valign="bottom" nowrap><a href="/home.html" onMouseOut="doElementMouseOut(\'reserve\',\'home\');" onMouseOver="doElementMouseOver(\'reserve\',\'home\',\'home\');"><img border="0" src="/images/home_off.gif" width="87" height="25" name="home" alt="Home"></a><a href="/promotions.html" onMouseOut="doElementMouseOut(\'reserve\',\'promo\');" onMouseOver="doElementMouseOver(\'reserve\',\'home\',\'promo\');"><img name="promo" border="0" src="/images/promo_off.gif" width="86" height="25" alt="Promotions"></a><a href="javascript:goWampumClub()" onMouseOut="doElementMouseOut(\'reserve\',\'wampum\');" onMouseOver="doElementMouseOver(\'reserve\',\'home\',\'wampum\');"><img name="wampum" border="0" src="/images/wampum_off.gif" width="89" height="25" alt="Wampum Club"></a><a href="javascript:goReservations()" onMouseOver="javascript:MM_callJS(menuRoll(2))"><img name="reserve" border="0" src="/images/reserve_on.gif" width="76" height="25" alt="Reservations"></a></td>');
}

function sectionSecNav_reservations()
{
	if(isIE)
	{
		if (checkShowHeaderFooter())
		{
			document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
			document.write('<div id="imageHolder" style="position:absolute; left: 170px; top: 106px;">');
			document.write('<img src="/images/reserve_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><a onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="24" width="45" border="0"></a>');
			document.write('</div>');
			document.write('</td>');
			document.write('<td>');
			document.write('<div id="imageRollover1" style="position:absolute; left: 497px; top: 130px; visibility: hidden;">');
			document.write('<table border="0"');
				document.write('<tr>');		
					document.write('<td>');
						document.write('<a onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="30" width="277" border="0"></a>');
					document.write('</td>');
				document.write('</tr>');		
			document.write('</table>');
			document.write('</div>');
			document.write('<div id="imageRollover2" style="position:absolute; left: 497px; top: 196px; visibility: hidden;">');
			document.write('<table border="0"');
				document.write('<tr>');		
					document.write('<td>');
						document.write('<a onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="30" width="277" border="0"></a>');
					document.write('</td>');
				document.write('</tr>');		
			document.write('</table>');
			document.write('</div>');
			document.write('<div id="imageRollover3" style="position:absolute; left: 497px; top: 161px; visibility: hidden;">');
			document.write('<table border="0"');
				document.write('<tr>');		
					document.write('<td>');
						document.write('<a onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="34" width="277" border="0"></a>');
					document.write('</td>');
				document.write('</tr>');		
			document.write('</table>');
			document.write('</div>');
			document.write('</td>');
		}else
		{
			document.write('<div id="imageHolder" style="position:absolute; left: 0px; top: 55px;">');
			document.write('<img src="/images/reserve_nav_no_overview.gif" width="344" height="24" name="menu" usemap="#menuMap" border="0">');
			document.write('</div>');
			document.write('<div id="imageRollover1" style="position:absolute; left: 100px; top: 79px; visibility: hidden;">');
			document.write('<table border="0"');
				document.write('<tr>');		
					document.write('<td>');
						document.write('<a onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="60" width="277" border="0"></a><br>');
					document.write('</td>');
				document.write('</tr>');		
			document.write('</table>');
			document.write('</div>');
			document.write('<div id="imageRollover2" style="position:absolute; left: 30px; top: 50px; visibility: hidden;">');
			document.write('<table border="0"');
				document.write('<tr>');		
					document.write('<td>');
						document.write('<a onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="25" width="100" border="0"></a><br>');
					document.write('</td>');
				document.write('</tr>');		
			document.write('</table>');
			document.write('</div>');
			document.write('<div id="imageRollover3" style="position:absolute; left: 350px; top: 50px; visibility: hidden;">');
			document.write('<table border="0"');
				document.write('<tr>');		
					document.write('<td>');
						document.write('<a onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="25" width="75" border="0"></a><br>');
					document.write('</td>');
				document.write('</tr>');		
			document.write('</table>');
			document.write('</div>');
			document.write('<div id="imageRollover4" style="position:absolute; left: 100px; top: 5px;">');
			document.write('<table border="0"');
				document.write('<tr>');		
					document.write('<td>');
						document.write('<a onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="40" width="277" border="0"></a><br>');
					document.write('</td>');
				document.write('</tr>');		
			document.write('</table>');
			document.write('</div>');
		}
	}else
	{
		if (checkShowHeaderFooter())
		{
			document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29"><img src="/images/clear.gif" width="1" height="1">');
			document.write('<layer id="imageHolder" left="170px" top="106px">');
			document.write('<img src="/images/reserve_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" height="24" width="45" border="0">');
			document.write('</layer>');
			document.write('</td>');
//			document.write('<td bgcolor="#d9e0e4">');
//			document.write('<layer id="imageRollover1" left="515px" top="131px">');
//			document.write('<table border="0"');
//				document.write('<tr>');		
//					document.write('<td background="/images/clear.gif">');
//					document.write('<a href="#" onMouseOver="MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="30" width="277" border="1"></a>');
//					document.write('</td>');
//				document.write('</tr>');		
//			document.write('</table>');
//			document.write('</layer>');
//			document.write('<layer id="imageRollover2" left="497px" top="196px">');
//			document.write('<table border="0"');
//				document.write('<tr>');		
//					document.write('<td bgcolor="#d9e0e4">');
//						document.write('<a href="#" onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="30" width="277" border="0"></a>');
//					document.write('</td>');
//				document.write('</tr>');		
//			document.write('</table>');
//			document.write('</layer>');
//			document.write('<layer id="imageRollover3" left="497px" top="161px">');
//			document.write('<table border="0"');
//				document.write('<tr>');		
//					document.write('<td bgcolor="#d9e0e4">');
//						document.write('<a href="#" onMouseOver="javascript:MM_callJS(menuRoll(2))"><img src="/images/clear.gif" height="34" width="65" border="0"></a>');
//					document.write('</td>');
//				document.write('</tr>');		
//			document.write('</table>');
//			document.write('</layer>');
//			document.write('</td>');
		}else
		{
			document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29"><img src="/images/clear.gif" width="1" height="1">');
			document.write('<layer id="imageHolder" left="0px" top="55px">');
			document.write('<img src="/images/reserve_nav_no_overview.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" height="24" width="45" border="0">');
			document.write('</layer>');
			document.write('</td>');
		}
	}
}

// Wampum Section
function sectionHeaderImage_wampum()
{
	document.write('<td rowspan="2" colspan="2" valign="bottom"><img src="/images/wampum_image_top.jpg" alt="Wampum Club" width="325" height="60" border="0"></td>');
}

function sectionNav_wampum()
{
	document.write('<td rowspan="2" colspan="3" valign="bottom" nowrap><a href="/resort.html" onMouseOut="doNavMouseOut(\'none\',\'resort\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'resort\');"><img name="resort" border="0" src="/images/resort_off.gif" width="63" height="59" alt="Resort"></a><a href="/gaming.html" onMouseOut="doNavMouseOut(\'none\',\'gaming\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'gaming\');"><img name="gaming" border="0" src="/images/gaming_off.gif" width="63" height="59" alt="Gaming"></a><a href="/entertainment.html" onMouseOut="doNavMouseOut(\'none\',\'entertain\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'entertain\');"><img name="entertain" border="0" src="/images/entertain_off.gif" width="63" height="59" alt="Entertainment"></a><a href="/dining.html" onMouseOut="doNavMouseOut(\'none\',\'dining\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'dining\');"><img name="dining" border="0" src="/images/dining_off.gif" width="63" height="59" alt="Dining"></a></td>');
	document.write('</tr>');
 	document.write('<tr>');
	document.write('<td rowspan="1" colspan="1" valign="top"><img src="/images/wampum_image_bottom.jpg" width="100" height="43"></td>');
    document.write('<td rowspan="1" colspan="2" align="right" valign="bottom" nowrap><a href="/home.html" onMouseOut="doElementMouseOut(\'wampum\',\'home\');" onMouseOver="doElementMouseOver(\'wampum\',\'home\',\'home\');"><img name="home" border="0" src="/images/home_off.gif" width="87" height="25" alt="Home"></a><a href="/promotions.html" onMouseOut="doElementMouseOut(\'wampum\',\'promo\');" onMouseOver="doElementMouseOver(\'wampum\',\'home\',\'promo\');"><img name="promo" border="0" src="/images/promo_off.gif" width="86" height="25" alt="Promotions"></a>');
       if (getCookie('hFoxwoodsSessionID') == 'true')
       {
         document.write('<a href="/wampum/my_wampum.asp?v=h">');
       }
       else
       {
         document.write('<a href="https://' + window.location.hostname + '/wampum_club.html">');
       }
    document.write('<img name="wampum" border="0" src="/images/wampum_on.gif" width="89" height="25" alt="Wampum Club"></a><a href="javascript:goReservations()" onMouseOut="doElementMouseOut(\'wampum\',\'reserve\');" onMouseOver="doElementMouseOver(\'wampum\',\'home\',\'reserve\');"><img name="reserve" border="0" src="/images/reserve_off.gif" width="76" height="25" alt="Reservations"></a></td>');
}

function sectionSecNav_wampum()
{
	if(isIE)
	{
		if (getCookie('hFoxwoodsSessionID') == 'true')		
		{
			document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
			document.write('<div id="imageHolder" style="position:absolute; left: 193px; top: 106px;">');
			document.write('<img src="/images/wampum_in_nav.gif" height="24" name="menu" usemap="#menuMap" border="0">');
			document.write('</div>');
			document.write('</td>');
		}else{
			document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
			document.write('<div id="imageHolder" style="position:absolute; left: 400px; top: 106px;">');
			document.write('<img src="/images/wampum_nav.gif" height="24" name="menu" usemap="#menuMap" border="0">');
			document.write('</div>');
			document.write('</td>');
		}
	}else
	{
		if (getCookie('hFoxwoodsSessionID') == 'true')	
		{
			document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
			document.write('<img src="/images/wampum_in_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" border="0" width="15" height="23">');
			document.write('</td>');
		}else{
			document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
			document.write('<img src="/images/wampum_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" border="0" width="15" height="23">');
			document.write('</td>');
		}
	}
}

// Promotion Section
function sectionHeaderImage_promotions()
{
  	document.write('<td rowspan="2" colspan="2" valign="bottom"><img src="/images/promotions_image_top.jpg" alt="Promotions" width="298" height="60" border="0"></td>');
}

function sectionNav_promotions()
{
	document.write('<td rowspan="2" colspan="3" valign="bottom" nowrap><a href="/resort.html" onMouseOut="doNavMouseOut(\'none\',\'resort\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'resort\');"><img name="resort" border="0" src="/images/resort_off.gif" width="63" height="59" alt="Resort"></a><a href="/gaming.html" onMouseOut="doNavMouseOut(\'none\',\'gaming\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'gaming\');"><img name="gaming" border="0" src="/images/gaming_off.gif" width="63" height="59" alt="Gaming"></a><a href="/entertainment.html" onMouseOut="doNavMouseOut(\'none\',\'entertain\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'entertain\');"><img name="entertain" border="0" src="/images/entertain_off.gif" width="63" height="59" alt="Entertainment"></a><a href="/dining.html" onMouseOut="doNavMouseOut(\'none\',\'dining\');" onMouseOver="doNavMouseOver(\'none\',\'home\',\'dining\');"><img name="dining" border="0" src="/images/dining_off.gif" width="63" height="59" alt="Dining"></a></td>');
 	document.write('</tr>');
 	document.write('<tr>');
	document.write('<td rowspan="1" colspan="1" valign="top"><img src="/images/promotions_image_bottom.jpg" width="128" height="43"></td>');
	document.write('<td rowspan="1" colspan="2" align="right" valign="bottom" nowrap><a href="/home.html" onMouseOut="doElementMouseOut(\'promo\',\'home\');" onMouseOver="doElementMouseOver(\'promo\',\'home\',\'home\');"><img border="0" src="/images/home_off.gif" width="87" height="25" name="home" alt="Home"></a><a href="/promotions.html" ><img name="promo" border="0" src="/images/promo_on.gif" width="86" height="25" alt="Promotions"></a><a href="javascript:goWampumClub()" onMouseOut="doElementMouseOut(\'promo\',\'wampum\');" onMouseOver="doElementMouseOver(\'promo\',\'home\',\'wampum\');"><img name="wampum" border="0" src="/images/wampum_off.gif" width="89" height="25" alt="Wampum Club"></a><a href="javascript:goReservations()" onMouseOut="doElementMouseOut(\'promo\',\'reserve\');" onMouseOver="doElementMouseOver(\'promo\',\'home\',\'reserve\');"><img name="reserve" border="0" src="/images/reserve_off.gif" width="76" height="25" alt="Reservations"></a></td>');
}

function sectionSecNav_promotions()
{
	if(isIE)
	{
		document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
		document.write('<div id="imageHolder" style="position:absolute; left: 179px; top: 106px;">');
		document.write('<img src="/images/clear.gif" height="24" name="menu" usemap="#menuMap" border="0">');
		document.write('</div>');
		document.write('</td>');
	}else
	{
		document.write('<td rowspan="1" colspan="6" background="/images/bar.gif" align="right" valign="middle" height="29">');
		document.write('<img src="/images/clear.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" border="0" width="215" height="23">');
		document.write('</td>');
	}
}

// Resort Section
function sectionHeaderImage_resort()
{
	document.write('<td rowspan="2" colspan="2" valign="bottom"><img src="/images/resort_image_top.jpg" alt="Resort" width="224" height="60" border="0"></td>');
}

function sectionNav_resort()
{
	document.write('<td rowspan="2" colspan="3" valign="bottom" nowrap><a href="/resort.html"><img name="resort" border="0" src="/images/resort_on.gif" width="63" height="59" alt="Resort"></a><a href="/gaming.html" onMouseOut="doNavMouseOut(\'resort\',\'gaming\');" onMouseOver="doNavMouseOver(\'resort\',\'resort\',\'gaming\');"><img name="gaming" border="0" src="/images/gaming_off.gif" width="63" height="59" alt="Gaming"></a><a href="/entertainment.html" onMouseOut="doNavMouseOut(\'resort\',\'entertain\');" onMouseOver="doNavMouseOver(\'resort\',\'resort\',\'entertain\');"><img name="entertain" border="0" src="/images/entertain_off.gif" width="63" height="59" alt="Entertainment"></a><a href="/dining.html" onMouseOut="doNavMouseOut(\'resort\',\'dining\');" onMouseOver="doNavMouseOver(\'resort\',\'resort\',\'dining\');"><img name="dining" border="0" src="/images/dining_off.gif" width="63" height="59" alt="Dining"></a></td>');
	document.write('</tr>');
 	document.write('<tr>');
	document.write('<td rowspan="1" colspan="1" valign="top" height="42"><img src="/images/resort_image_bottom.jpg" width="116" height="43"></td>');
	document.write('<td rowspan="1" colspan="2" align="right" valign="bottom" nowrap height="42"><a href="/home.html" onMouseOut="doElementMouseOut(\'none\',\'home\');" onMouseOver="doElementMouseOver(\'none\',\'resort\',\'home\');"><img name="home" border="0" src="/images/home_off.gif" width="87" height="25" alt="Home"></a><a href="/promotions.html" onMouseOut="doElementMouseOut(\'none\',\'promo\');" onMouseOver="doElementMouseOver(\'none\',\'resort\',\'promo\');"><img name="promo" border="0" src="/images/promo_off.gif" width="86" height="25" alt="Promotions"></a><a href="javascript:goWampumClub()" onMouseOut="doElementMouseOut(\'none\',\'wampum\');" onMouseOver="doElementMouseOver(\'none\',\'resort\',\'wampum\');"><img name="wampum" border="0" src="/images/wampum_off.gif" width="89" height="25" alt="Wampum Club"></a><a href="javascript:goReservations()" onMouseOut="doElementMouseOut(\'none\',\'reserve\');" onMouseOver="doElementMouseOver(\'none\',\'resort\',\'reserve\');"><img name="reserve" border="0" src="/images/reserve_off.gif" width="76" height="25" alt="Reservations"></a></td>');
}

function sectionSecNav_resort()
{
	if(isIE)
	{
		document.write('<td rowspan="1" colspan="6" background="/images/resort_bar.gif" align="right" valign="middle" height="29">');
		document.write('<div id="imageHolder" style="position:absolute; left: 178px; top: 106px;">');
		document.write('<img src="/images/resort_nav.gif" height="24" name="menu" usemap="#menuMap" border="0">');
		document.write('</div>');
		document.write('</td>');
	}else
	{
		document.write('<td rowspan="1" colspan="6" background="/images/resort_bar.gif" align="right" valign="middle" height="29">');
		document.write('<img src="/images/resort_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" border="0" width="15" height="23">');
		document.write('</td>');
	}
}

// Gaming Section
function sectionHeaderImage_gaming()
{
	document.write('<td rowspan="2" colspan="2" valign="bottom"><img src="/images/gaming_image_top.jpg" alt="Gaming" width="225" height="60" border="0"></td>');
}

function sectionNav_gaming()
{
	document.write('<td rowspan="2" colspan="3" valign="bottom" nowrap><a href="/resort.html" onMouseOut="doNavMouseOut(\'gaming\',\'resort\');" onMouseOver="doNavMouseOver(\'gaming\',\'gaming\',\'resort\');"><img name="resort" border="0" src="/images/resort_off.gif" width="63" height="59" alt="Resort"></a><a href="/gaming.html"><img name="gaming" border="0" src="/images/gaming_on.gif" width="63" height="59" alt="Gaming"></a><a href="/entertainment.html" onMouseOut="doNavMouseOut(\'gaming\',\'entertain\');" onMouseOver="doNavMouseOver(\'gaming\',\'gaming\',\'entertain\');"><img name="entertain" border="0" src="/images/entertain_off.gif" width="63" height="59" alt="Entertainment"></a><a href="/dining.html" onMouseOut="doNavMouseOut(\'gaming\',\'dining\');" onMouseOver="doNavMouseOver(\'gaming\',\'gaming\',\'dining\');"><img name="dining" border="0" src="/images/dining_off.gif" width="63" height="59" alt="Dining"></a></td>');
    document.write('</tr>');
    document.write('<tr> ');
    document.write('<td rowspan="1" colspan="1" valign="top" height="42"><img src="/images/gaming_image_bottom.jpg" width="121" height="43"></td>');
	document.write('<td rowspan="1" colspan="2" align="right" valign="bottom" nowrap height="42"><a href="/home.html" onMouseOut="doElementMouseOut(\'none\',\'home\');" onMouseOver="doElementMouseOver(\'none\',\'gaming\',\'home\');"><img name="home" border="0" src="/images/home_off.gif" width="87" height="25" alt="Home"></a><a href="/promotions.html" onMouseOut="doElementMouseOut(\'none\',\'promo\');" onMouseOver="doElementMouseOver(\'none\',\'gaming\',\'promo\');"><img name="promo" border="0" src="/images/promo_off.gif" width="86" height="25" alt="Promotions"></a><a href="javascript:goWampumClub()" onMouseOut="doElementMouseOut(\'none\',\'wampum\');" onMouseOver="doElementMouseOver(\'none\',\'gaming\',\'wampum\');"><img name="wampum" border="0" src="/images/wampum_off.gif" width="89" height="25" alt="Wampum Club"></a><a href="javascript:goReservations()" onMouseOut="doElementMouseOut(\'none\',\'reserve\');" onMouseOver="doElementMouseOver(\'none\',\'gaming\',\'reserve\');"><img name="reserve" border="0" src="/images/reserve_off.gif" width="76" height="25" alt="Reservations"></a></td>');
}

function sectionSecNav_gaming()
{
	if(isIE)
	{
		document.write('<td rowspan="1" colspan="6" background="/images/gaming_bar.gif" align="right" valign="middle" height="29">');
		document.write('<div id="imageHolder" style="position:absolute; left: 178px; top: 106px;">');
		document.write('<img src="/images/gaming_nav.gif" height="24" name="menu" usemap="#menuMap" border="0">');
		document.write('</div>');
		document.write('</td>');
	}else
	{
		document.write('<td rowspan="1" colspan="6" background="/images/gaming_bar.gif" align="right" valign="middle" height="29">');
		document.write('<img src="/images/gaming_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" border="0" width="15" height="23">');
		document.write('</td>');
	}
}

// Entertain Section
function sectionHeaderImage_entertain()
{
	document.write('<td rowspan="2" colspan="2" valign="bottom"><img src="/images/entertain_image_top.jpg" alt="Entertainment" width="333" height="60" border="0"></td>');
}

function sectionNav_entertain()
{
	document.write('<td rowspan="2" colspan="3" valign="bottom" nowrap><a href="/resort.html" onMouseOut="doNavMouseOut(\'entertain\',\'resort\');" onMouseOver="doNavMouseOver(\'entertain\',\'entertain\',\'resort\');"><img name="resort" border="0" src="/images/resort_off.gif" width="63" height="59" alt="Resort"></a><a href="/gaming.html" onMouseOut="doNavMouseOut(\'entertain\',\'gaming\');" onMouseOver="doNavMouseOver(\'entertain\',\'entertain\',\'gaming\');"><img name="gaming" border="0" src="/images/gaming_off.gif" width="63" height="59" alt="Gaming"></a><a href="/entertainment.html"><img name="entertain" border="0" src="/images/entertain_on.gif" width="63" height="59" alt="Entertainment"></a><a href="/dining.html" onMouseOut="doNavMouseOut(\'entertain\',\'dining\');" onMouseOver="doNavMouseOver(\'entertain\',\'entertain\',\'dining\');"><img name="dining" border="0" src="/images/dining_off.gif" width="63" height="59" alt="Dining"></a></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td rowspan="1" colspan="1" valign="top" height="42"><img src="/images/entertain_image_bottom.jpg" width="113" height="43"></td>');
    document.write('<td rowspan="1" colspan="2" align="right" valign="bottom" nowrap height="42"><a href="/home.html" onMouseOut="doElementMouseOut(\'none\',\'home\');" onMouseOver="doElementMouseOver(\'none\',\'entertain\',\'home\');"><img name="home" border="0" src="/images/home_off.gif" width="87" height="25" alt="Home"></a><a href="/promotions.html" onMouseOut="doElementMouseOut(\'none\',\'promo\');" onMouseOver="doElementMouseOver(\'none\',\'entertain\',\'promo\');"><img name="promo" border="0" src="/images/promo_off.gif" width="86" height="25" alt="Promotions"></a><a href="javascript:goWampumClub()" onMouseOut="doElementMouseOut(\'none\',\'wampum\');" onMouseOver="doElementMouseOver(\'none\',\'entertain\',\'wampum\');"><img name="wampum" border="0" src="/images/wampum_off.gif" width="89" height="25" alt="Wampum Club"></a><a href="javascript:goReservations()" onMouseOut="doElementMouseOut(\'none\',\'reserve\');" onMouseOver="doElementMouseOver(\'none\',\'entertain\',\'reserve\');"><img name="reserve" border="0" src="/images/reserve_off.gif" width="76" height="25" alt="Reservations"></a></td>');
}

function sectionSecNav_entertain()
{
	if(isIE)
	{
		document.write('<td rowspan="1" colspan="6" background="/images/entertain_bar.gif" align="right" valign="middle" height="29">');
		document.write('<div id="imageHolder" style="position:absolute; left: 178px; top: 106px;">');
		document.write('<img src="/images/entertain_nav.gif" height="24" name="menu" usemap="#menuMap" border="0">');
		document.write('</div>');
		document.write('</td>');
	}else
	{
		document.write('<td rowspan="1" colspan="6" background="/images/entertain_bar.gif" align="right" valign="middle" height="29">');
		document.write('<img src="/images/entertain_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" border="0" width="15" height="23">');
		document.write('</td>');
	}
}

// Dining Section
function sectionHeaderImage_dining()
{
	document.write('<td rowspan="2" colspan="2" valign="bottom"><img src="/images/dining_image_top.jpg" alt="Dining" width="219" height="60" border="0"></td>');
}

function sectionNav_dining()
{
	document.write('<td rowspan="2" colspan="3" valign="bottom" nowrap><a href="/resort.html" onMouseOut="doNavMouseOut(\'dining\',\'resort\');" onMouseOver="doNavMouseOver(\'dining\',\'dining\',\'resort\');"><img name="resort" border="0" src="/images/resort_off.gif" width="63" height="59" alt="Resort"></a><a href="/gaming.html" onMouseOut="doNavMouseOut(\'dining\',\'gaming\');" onMouseOver="doNavMouseOver(\'dining\',\'dining\',\'gaming\');"><img name="gaming" border="0" src="/images/gaming_off.gif" width="63" height="59" alt="Gaming"></a><a href="/entertainment.html" onMouseOut="doNavMouseOut(\'dining\',\'entertain\');" onMouseOver="doNavMouseOver(\'dining\',\'dining\',\'entertain\');"><img name="entertain" border="0" src="/images/entertain_off.gif" width="63" height="59" alt="Entertainment"></a><a href="/dining.html"><img name="dining" border="0" src="/images/dining_on.gif" width="63" height="59" alt="Dining"></a></td>');
    document.write('</tr>');
    document.write('<tr>');
	document.write('<td rowspan="1" colspan="1" valign="top" height="42"><img src="/images/dining_image_bottom.jpg" width="80" height="43"></td>');
	document.write('<td rowspan="1" colspan="2" align="right" valign="bottom" nowrap height="42"><a href="/home.html" onMouseOut="doElementMouseOut(\'none\',\'home\');" onMouseOver="doElementMouseOver(\'none\',\'dining\',\'home\');"><img name="home" border="0" src="/images/home_off.gif" width="87" height="25" alt="Home"></a><a href="/promotions.html" onMouseOut="doElementMouseOut(\'none\',\'promo\');" onMouseOver="doElementMouseOver(\'none\',\'dining\',\'promo\');"><img name="promo" border="0" src="/images/promo_off.gif" width="86" height="25" alt="Promotions"></a><a href="javascript:goWampumClub()" onMouseOut="doElementMouseOut(\'none\',\'wampum\');" onMouseOver="doElementMouseOver(\'none\',\'dining\',\'wampum\');"><img name="wampum" border="0" src="/images/wampum_off.gif" width="89" height="25" alt="Wampum Club"></a><a href="javascript:goReservations()" onMouseOut="doElementMouseOut(\'none\',\'reserve\');" onMouseOver="doElementMouseOver(\'none\',\'dining\',\'reserve\');"><img name="reserve" border="0" src="/images/reserve_off.gif" width="76" height="25" alt="Reservations"></a></td>');
}

function sectionSecNav_dining()
{
	if(isIE)
	{
		document.write('<td rowspan="1" colspan="6" background="/images/dining_bar.gif" align="right" valign="middle" height="29">');
		document.write('<div id="imageHolder" style="position:absolute; left: 178px; top: 106px;">');
		document.write('<img src="/images/dining_nav.gif" height="24" name="menu" usemap="#menuMap" border="0">');
		document.write('</div>');
		document.write('</td>');
	}else
	{
		document.write('<td rowspan="1" colspan="6" background="/images/dining_bar.gif" align="right" valign="middle" height="29">');
		document.write('<img src="/images/dining_nav.gif" height="24" name="menu" usemap="#menuMap" border="0"><img src="/images/clear.gif" border="0" width="15" height="23">');
		document.write('</td>');
	}
}

// Write Header function
function writeFullHeader(section, nav, backgroundImage)
{
 document.write('<!-- header table -->');
 document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#000000">');
 document.write('<!-- spacer row -->');
 document.write('<tr>'); 
 document.write('<td width="100%"><img src="/images/clear.gif" width="190" height="1" border="0"></td>');
 document.write('<td width="290"><img src="/images/clear.gif" width="290" height="1" border="0"></td>');
 document.write('<td width="45"><img src="/images/clear.gif" width="45" height="1" border="0"></td>');
 document.write('<td width="85"><img src="/images/clear.gif" width="85" height="1" border="0"></td>');
 document.write('<td width="90"><img src="/images/clear.gif" width="90" height="1" border="0"></td>');
 document.write('<td width="55"><img src="/images/clear.gif" width="55" height="1" border="0"></td>');
 document.write('</tr>');
 document.write('<!-- 4 rows, 6 columns -->');
 document.write('<tr>'); 

 // Dynamically create navigation menu based on section
    eval('sectionHeaderImage_' + section + '();');
 document.write('<td rowspan="1" colspan="3" valign="top"><img src="/images/black.gif" width="15" height="38"><a href="/home.html"><img border="0" src="/images/logo.jpg" width="149" height="38" alt="Foxwoods Home"></a></td>');
 document.write('<td rowspan="1" colspan="1" valign="middle">');
     if (getCookie('hFoxwoodsSessionID') =='true') 
      {
       document.write('<a href="javascript:doLogOff(\'');
	 document.write(section);
	 document.write('\')" onMouseOver="document.logoffImg.src=\'/images/log_off_on.gif\'" onMouseOut="document.logoffImg.src=\'/images/log_off_off.gif\'"><img src="/images/log_off_off.gif" width="53" height="25" name="logoffImg" alt="Log off" border="0"/></a>');
      }
 document.write('</td>');
 document.write('</tr>');
 document.write('<tr>'); 
 document.write('<td rowspan="1" colspan="1"><img src="/images/black.gif" width="46" height="16"></td>');
 // Dynamically create navigation menu based on section
 	eval('sectionNav_' + section + '();');
 
 document.write('</tr>');
 document.write('<tr>'); 
 // Dynamically create secondary navigation menu based on section
 	eval('sectionSecNav_' + section + '();');
 document.write('</tr>');
 document.write('</table>');
}

function writePopupHeader(header, hdrHeight, hdrWidth, nav, section, sctHeight, sctWidth)
{
 document.write('<table width="100%" cellspacing="0" cellpadding="0" border="0">');
 document.write('<tr>');
 document.write('<td width="60%" background="/images/wampum_tile.jpg" align="left" valign="middle" height="53">');
 document.write('<img src="/images/' + header + '" width="' + hdrWidth + '" height="' + hdrHeight + '" border="0">');
 document.write('</td>');
 document.write('<td width="40%" colspan="2" background="/images/wampum_tile.jpg" align="right">');
 document.write('<img src="/images/' + section + '" width="' + sctWidth + '" height="' + sctHeight + '" border="0">');
 document.write('</td>');
 document.write('</tr>');
 document.write('</table>');
 document.write('<table width="100%" cellspacing="0" cellpadding="0" border="0">');
 document.write('<tr>'); 
 document.write('<td width="85%" colspan="2" background="/images/bar.gif" align="left" valign="middle" height="29">');
 document.write('<img src="/images/clear.gif" width="20" height="24" border="0">');
 if (nav != '')
 {
	if (section == 'reserve_header.jpg')
	{
		section = 'reservations';
	 	eval('sectionSecNav_' + section + '();');	
	}else if(header == 'gift_gift_cert_header.jpg')
	{
		section = 'giftCert';
	 	eval('sectionSecNav_' + section + '();');	
	}
	else
	{
	   document.write('<img src="/images/' + nav + '" width="589" height="24" name="menu" usemap="#menuMap" border="0">');
	}
 }
 document.write('<td width="15%" background="/images/bar.gif" align="right" valign="middle">');
 document.write('<a href="javascript:window.close();">');
 document.write('<img src="/images/close_blue.gif" width="37" height="17" border="0">');
 document.write('</a><img src="/images/clear.gif" width="18" height="17" border="0">');
 document.write('</td>');
 document.write('</tr>');
 document.write('</table>');
}

// Specific function calls to write menu map based on section
function writeMenuMap_home()
{
  document.write('<td width="100%" background="/images/bar.gif" colspan="2"><img src="/images/clear.gif" height="29" width="779" border="0"></td>');
  document.write('</tr>');
  document.write('</table>');
  document.write('<map name="menuMap">');
  document.write('<area shape="rect" coords="0,1,90,27" href="javascript:goGiftCertificates()" alt="Gift Certificates" title="Gift Certificates">');
  document.write('<area shape="rect" coords="90,1,150,27" href="/careers.html" alt="Careers" title="Careers">');
  document.write('<area shape="rect" coords="150,1,280,27" href="/conference_planning.html" alt="Conference Planning" title="Conference Planning">');
  document.write('<area shape="rect" coords="280,1,384,27" href="/about_us.html" alt="About Foxwoods" title="About Foxwoods">');
  document.write('<area shape="rect" coords="384,1,458,27" href="/contact_us.html" alt="Contact Us" title="Contact Us">');
  document.write('<area shape="rect" coords="458,1,534,27" href="/getting_here.html" alt="Directions" title="Directions">');
  document.write('</map>');
}

function writeMenuMap_giftCert()
{
  document.write('<td width="100%" background="/images/bar.gif" colspan="2"><img src="/images/clear.gif" height="29" border="0"></td>');
  document.write('</tr>');
  document.write('</table>');
  document.write('<map name="menuMap">');
  document.write('<area shape="rect" coords="0,1,90,27" href="javascript:goGiftCertificates()" alt="Gift Certificates" title="Gift Certificates">');
  document.write('<area shape="rect" coords="90,1,150,27" href="/careers.html" alt="Careers" title="Careers">');
  document.write('<area shape="rect" coords="150,1,280,27" href="/conference_planning.html" alt="Conference Planning" title="Conference Planning">');
  document.write('<area shape="rect" coords="280,1,384,27" href="/about_us.html" alt="About Foxwoods" title="About Foxwoods">');
  document.write('<area shape="rect" coords="384,1,458,27" href="/contact_us.html" alt="Contact Us" title="Contact Us">');
  document.write('<area shape="rect" coords="458,1,534,27" href="/getting_here.html" alt="Directions" title="Directions">');
  document.write('</map>');
}

function writeMenuMap_reservations()
{
	if (!isIE)
	{
		document.write('<td width="100%" background="/images/bar.gif" colspan="2"><img src="/images/clear.gif" height="29" width="779" border="0"></td>');
		document.write('</tr>');
		document.write('</table>');
		document.write('<map name="menuMap">');
		if (checkShowHeaderFooter())
		{
			document.write('<area shape="rect" coords="235,1,365,27" href="/reservations.html" onMouseOver="javascript:MM_callJS(menuRoll(2))" alt="Reservations Overview" title="Reservations Overview" onClick="doReservationsSwitch(this)">');
			document.write('<area shape="rect" coords="365,1,475,27" href="javascript:MM_callJS(menuRoll(0))" onMouseOver=MM_callJS(menuRoll(0))>'); 
			document.write('<area shape="rect" coords="475,1,600,27" href="javascript:MM_callJS(menuRoll(1))" onMouseOver=MM_callJS(menuRoll(1))>');
		}else
		{
			document.write('<area shape="rect" coords="0,1,130,27" href="javascript:MM_callJS(menuRoll(2))" onMouseOver=MM_callJS(menuRoll(2))>'); 
			document.write('<area shape="rect" coords="130,1,240,27" href="javascript:MM_callJS(menuRoll(3))" onMouseOver=MM_callJS(menuRoll(3))>'); 
			document.write('<area shape="rect" coords="240,1,365,27" href="javascript:MM_callJS(menuRoll(4))" onMouseOver=MM_callJS(menuRoll(4))>');
		}
		document.write('</map>');	
	}else
	{
  		document.write('<td width="100%" background="/images/bar.gif" colspan="2"><img src="/images/clear.gif" height="29" width="77" border="0"></td>');
	  	document.write('</tr>');
  		document.write('</table>');
		document.write('<map name="menuMap">');
		if(checkShowHeaderFooter())
		{
			document.write('<area shape="rect" coords="235,1,365,27" onMouseOver=MM_callJS(menuRoll(2)) href="/reservations.html" alt="Reservations Overview" title="Reservations Overview" onClick="doReservationsSwitch(this)">');
		   	document.write('<area shape="rect" coords="365,1,475,27" onMouseOver=MM_callJS(menuRoll(0)) alt="Make Reservations" title="Make Reservations">'); 
   			document.write('<area shape="rect" coords="475,1,600,27" onMouseOver=MM_callJS(menuRoll(1)) alt="View Reservations" title="View Reservations">');
		}else
		{
   			document.write('<area shape="rect" coords="0,1,130,27" onMouseOver=MM_callJS(menuRoll(2))>');
		   	document.write('<area shape="rect" coords="130,1,240,27" onMouseOver=MM_callJS(menuRoll(3)) alt="Make Reservations" title="Make Reservations">'); 
   			document.write('<area shape="rect" coords="240,1,365,27" onMouseOver=MM_callJS(menuRoll(4)) alt="View Reservations" title="View Reservations">');
		}
	   	document.write('<area shape="rect" coords="365,1,400,27" onMouseOver=MM_callJS(menuRoll(2))>');
   		document.write('<area shape="rect" coords="0,1,400,50" border="0" onMouseOver=MM_callJS(menuRoll(2))>');
	  	document.write('</map>');
	}
}

function writeMenuMap_wampum()
{
      if (checkShowHeaderFooter() && getCookie('hFoxwoodsSessionID') == 'true')
      {
        // html logged in
		 document.write('<td width="100%" background="/images/bar.gif" colspan="2"><img src="/images/clear.gif" height="29" width="779" border="0"></td>');
		 document.write('</tr>');
 		 document.write('</table>');
         document.write('<map name="menuMap">'); 
         document.write('<area shape="rect" coords="1,1,113,27" href="https://' + window.location.hostname + '/wampum/my_wampum.asp?v=h" alt="My Wampum Club" title="My Wampum Club">');
         document.write('<area shape="rect" coords="113,1,183,27" href="https://' + window.location.hostname + '/wampum/my_profile.asp?v=h" alt="My Profile" title="My Profile">');
         document.write('<area shape="rect" coords="183,1,259,27" href="https://' + window.location.hostname + '/wampum/my_itinerary.asp?v=h" alt="My Itinerary" title="My Itinerary">'); 
         document.write('<area shape="rect" coords="259,1,388,27" href="/wampum_benefits.html" alt="Membership Benefits" title="Membership Benefits">');
         document.write('<area shape="rect" coords="388,1,548,27" href="/using_wampum_card.html" alt="Using Your Wampum Card" title="Using Your Wampum Card">'); 
         document.write('<area shape="rect" coords="548,1,589,27" href="/wampum_rules.html" alt="Rules" title="Rules">');
         document.write('</map>');
      }
      else if (!checkShowHeaderFooter() && getCookie('foxwoodsSessionID') == 'true')
      {
        // flash logged in
		 document.write('<td width="100%" background="/images/bar.gif" colspan="2"><img src="/images/clear.gif" height="29" border="0"></td>');
		 document.write('</tr>');
 		 document.write('</table>');
         document.write('<map name="menuMap">'); 
         document.write('<area shape="rect" coords="1,1,113,27" href="https://' + window.location.hostname + '/wampum/my_wampum.asp?v=f" alt="My Wampum Club" title="My Wampum Club">');
         document.write('<area shape="rect" coords="113,1,183,27" href="https://' + window.location.hostname + '/wampum/my_profile.asp?v=f" alt="My Profile" title="My Profile">');
         document.write('<area shape="rect" coords="183,1,259,27" href="https://' + window.location.hostname + '/wampum/my_itinerary.asp?v=f" alt="My Itinerary" title="My Itinerary">'); 
         document.write('<area shape="rect" coords="259,1,388,27" href="/wampum_benefits.html" alt="Membership Benefits" title="Membership Benefits">');
         document.write('<area shape="rect" coords="388,1,548,27" href="/using_wampum_card.html" alt="Using Your Wampum Card" title="Using Your Wampum Card">'); 
         document.write('<area shape="rect" coords="548,1,589,27" href="/wampum_rules.html" alt="Rules" title="Rules">');
         document.write('</map>');
      }
      else
      {
       if (checkShowHeaderFooter() == true)
       {
	   	 document.write('<td width="100%" background="/images/bar.gif" colspan="2"><img src="/images/clear.gif" height="29" width="779" border="0"></td>');
		 document.write('</tr>');
 		 document.write('</table>');
         document.write('<map name="menuMap">'); 
         document.write('<area shape="rect" coords="1,1,47,27" href="javascript:goWampumClub()" alt="Sign In" title="Sign In">');
         document.write('<area shape="rect" coords="47,1,176,27" href="/wampum_benefits.html" alt="Membership Benefits" title="Membership Benefits">');
         document.write('<area shape="rect" coords="176,1,333,27" href="/using_wampum_card.html" alt="Using Your Wampum Card" title="Using Your Wampum Card">');
         document.write('<area shape="rect" coords="333,1,374,27" href="/wampum_rules.html" alt="Rules" title="Rules">');
         document.write('</map>');
       }
       else
       {
	   	 document.write('<td width="100%" background="/images/bar.gif" colspan="2"><img src="/images/clear.gif" height="29" border="0"></td>');
		 document.write('</tr>');
 		 document.write('</table>');
         document.write('<map name="menuMap">'); 
         document.write('<area shape="rect" coords="1,1,112,27" href="/wampum_overview.html" alt="Wampum Overview" title="Wampum Overview">');
         document.write('<area shape="rect" coords="113,1,242,27" href="/wampum_benefits.html" alt="Membership Benefits" title="Membership Benefits">');
         document.write('<area shape="rect" coords="243,1,400,27" href="/using_wampum_card.html" alt="Using Your Wampum Card" title="Using Your Wampum Card">');
         document.write('<area shape="rect" coords="401,1,452,27" href="/wampum_rules.html" alt="Rules" title="Rules">');
         document.write('</map>');
       }
      }
}

function writeMenuMap_resort()
{
    document.write('<td width="100%" background="/images/resort_bar.gif" colspan="2"><img src="/images/clear.gif" width="780" height="29"></td>');
 	document.write('</tr>');
	document.write('</table>');
    document.write('<map name="menuMap">'); 
    document.write('<area shape="rect" coords="63,1,194,27" href="/resort.html" alt="Staying at Foxwoods" title="Staying at Foxwoods">');
    document.write('<area shape="rect" coords="194,1,299,27" href="/accommodations.html" alt="Accommodations" title="Accommodations">');
    document.write('<area shape="rect" coords="299,1,368,27" href="/shopping.html" alt="Shopping" title="Shopping">');
    document.write('<area shape="rect" coords="368,1,452,27" href="/salon_spa.html" alt="Salon and Spa" title="Salon and Spa">');
    document.write('<area shape="rect" coords="452,1,508,27" href="/golfing.html" alt="Golfing" title="Golfing">');
    document.write('<area shape="rect" coords="508,1,589,27" href="/getting_here.html" alt="Getting Here" title="Getting Here">');
    document.write('</map>');
}

function writeMenuMap_gaming()
{
    document.write('<td width="100%" background="/images/gaming_bar.gif" colspan="2"><img src="/images/clear.gif" width="780" height="29"></td>');
 	document.write('</tr>');
	document.write('</table>');
    document.write('<map name="menuMap">'); 
 	document.write('<area shape="rect" coords="160,1,290,27" href="/gaming.html" alt="Gaming at Foxwoods" title="Gaming at Foxwoods">');
	document.write('<area shape="rect" coords="290,1,336,27" href="/bingo.html" alt="Bingo" title="Bingo">');
	document.write('<area shape="rect" coords="336,1,384,27" href="/keno.html" alt="Keno" title="Keno">');
	document.write('<area shape="rect" coords="384,1,428,27" href="/poker.html" alt="Poker" title="Poker">');
	document.write('<area shape="rect" coords="428,1,500,27" href="/race_book.html" alt="Race Book" title="Race Book">');
	document.write('<area shape="rect" coords="500,1,540,27" href="/slots.html" alt="Slots" title="Slots">');
	document.write('<area shape="rect" coords="540,1,590,27" href="/tables.html" alt="Tables" title="Tables">');
    document.write('</map>');
}

function writeMenuMap_entertain()
{
    document.write('<td width="100%" background="/images/entertain_bar.gif" colspan="2"><img src="/images/clear.gif" width="780" height="29"></td>');
 	document.write('</tr>');
	document.write('</table>');
    document.write('<map name="menuMap">'); 
	document.write('<area shape="rect" coords="102,1,243,27" href="/entertainment.html" alt="Entertainment Overview" title="Entertainment Overview">');
	document.write('<area shape="rect" coords="243,1,320,27" href="/headliners.html" alt="Headliners" title="Headliners">');
	document.write('<area shape="rect" coords="320,1,384,27" href="/nightlife.html" alt="Nightlife" title="Nightlife">');
	document.write('<area shape="rect" coords="384,1,487,27" href="/other_attractions.html" alt="Other Attractions" title="Other Attractions">');
	document.write('<area shape="rect" coords="487,1,591,27" href="/area_attractions.html" alt="Area Attractions" title="Area Attractions">');
    document.write('</map>');
}

function writeMenuMap_dining()
{
    document.write('<td width="100%" background="/images/dining_bar.gif" colspan="2"><img src="/images/clear.gif" width="780" height="29"></td>');
 	document.write('</tr>');
	document.write('</table>');
    document.write('<map name="menuMap">'); 
	document.write('<area shape="rect" coords="300,1,413,27" href="/dining.html" alt="Dining at Foxwoods" title="Dining at Foxwoods">');
	document.write('<area shape="rect" coords="413,1,481,27" href="/dining_gourmet.html" alt="Gourmet" title="Gourmet">');
	document.write('<area shape="rect" coords="481,1,534,27" href="/dining_casual.html" alt="Casual" title="Casual">');
	document.write('<area shape="rect" coords="534,1,590,27" href="/dining_express.html" alt="Express" title="Express">');
    document.write('</map>');
}

function writeFooter(section)
{
 document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
 document.write('<tr>');
 // Dynamically create menu map based on section
 	eval('writeMenuMap_' + section + '();');
 }
 
//for menu rollovers
var menuCount = 2
var clipRate = 6
var menuTop = 230
var menuActive = false
var newMenuChoice = -1
var tempMenuChoice
var oldMenuChoice = -1

//for IE
var clipTop = [0, 0];
var menuBottom = [0, 0];
var menuWidth = [97, 97];

function menuRoll(which){
	if (isIE)
	{
		if(document.all["menu0"] != null)
		{
			if(oldMenuChoice == which) return;
			if(!menuActive) { 
				tempMenuChoice = oldMenuChoice;
				newMenuChoice = which;
				if(newMenuChoice!=tempMenuChoice) {
					menuActive = true;
			   		slideIDdown = setInterval("menuHide(clipTop[tempMenuChoice])", 4);
					slideIDup = setInterval("menuShow(newMenuChoice)", 4);
					oldMenuChoice = newMenuChoice;
				} 
			}
		}
	}else
	{
		if(document.layers["menu0"] != null)
		{
			if (which != -1)
			{
				if(oldMenuChoice == which) return;
				if(!menuActive) { 
					tempMenuChoice = oldMenuChoice;
					newMenuChoice = which;
					if(newMenuChoice!=tempMenuChoice) {
						menuActive = true;
				   		slideIDdown = setInterval("menuHide(clipTop[tempMenuChoice])", 4);
						slideIDup = setInterval("menuShow(newMenuChoice)", 4);
						oldMenuChoice = newMenuChoice;
					} 
				}
			}else if (oldMenuChoice != -1)
			{
				if(oldMenuChoice == 0)
				{
					which = 1;
				}
				if (oldMenuChoice == 1)
				{
					which = 0;
				}
				tempMenuChoice = oldMenuChoice;
				newMenuChoice = which;
				menuActive = false;
		   		slideIDdown = setInterval("menuHide(clipTop[tempMenuChoice])", 4);
				oldMenuChoice = -1;
			}
		}
	}
}

function menuShow(i){
	if(!isIE){
		if (document.layers["menu"+i].clip.bottom < menuTop) {
		  document.layers["menu"+i].clip.bottom += clipRate;
		} else {
			clearInterval(slideIDup);
			menuActive = false;
		}
	} else {
		if (menuBottom[i] < menuTop) {
			menuBottom[i] += clipRate;
			document.all["menu"+i].style.clip = "rect(" + clipTop[i] + " " + menuWidth[i] + " " + menuBottom[i] + " 0)";	    						
	  	} else {
		    	clearInterval(slideIDup);
			menuActive = false;
		}
	}
}

function menuHide(bounds){
  if(tempMenuChoice >= 0){
    i = tempMenuChoice;
	srate = clipRate/2;
	if(!isIE){
		if (document.layers["menu"+i].clip.bottom > bounds) {
			document.layers["menu"+i].clip.bottom -= srate;
	  	} else {
		  	clearInterval(slideIDdown);
			resetClips();
	  	}
	} else {
		if (menuBottom[i] > bounds) {
	   		menuBottom[i] -= srate;
			document.all["menu"+i].style.clip = "rect(" + clipTop[i] + " " + menuWidth[i] + " " + menuBottom[i] + " 0)";
	  	} else {
		  	clearInterval(slideIDdown);
			resetClips();
	  	}
	}
  }	
}

function resetClips(){
	for(i=0;i<menuCount;i++){
		if(oldMenuChoice != i) {
			if(!isIE){
				clipTop[i] =  menuBottom[i];
				document.layers["menu"+i].clip.top = menuBottom[i];
			} else {
				clipTop[i] =  menuBottom[i];
				document.all["menu"+i].style.clip = "rect(" + clipTop[i] + " " + menuWidth[i] + " " + menuBottom[i] + " 0)";
			}
		}
	}

}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function writeDivs()
{
	if (isIE)
	{
		document.write('<div id="removeDropMenu1" style="position:absolute; width:10px; height:215px; z-index:4; left: 193px; top: 80px;">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><a  onMouseOver="javascript:MM_callJS(menuRoll(1));"><img src="/images/clear.gif" width="100" height="75" border="0"></a></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</div>');
		document.write('<div id="removeDropMenu2" style="position:absolute; width:10px; height:215px; z-index:4; left: 12px; top: 80px;">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><a onMouseOver="javascript:MM_callJS(menuRoll(1));"><img src="/images/clear.gif" width="80" height="215" border="0"></a></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</div>');
		document.write('<div id="removeDropMenu3" style="position:absolute; width:10px; height:215px; z-index:4; left: 193px; top: 195px;">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><a onMouseOver="javascript:MM_callJS(menuRoll(1));"><img src="/images/clear.gif" width="100" height="12" border="0"></a></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</div>');
		document.write('<div id="removeDropMenu4" style="position:absolute; width:10px; height:215px; z-index:4; left: 193px; top: 242px;">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><a onMouseOver="javascript:MM_callJS(menuRoll(1));"><img src="/images/clear.gif" width="100" height="53" border="0"></a></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</div>');
		document.write('<div id="removeDropMenu5" style="position:absolute; width:10px; height:215px; z-index:4; left: 12px; top: 296px;">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><a onMouseOver="javascript:MM_callJS(menuRoll(1));"><img src="/images/clear.gif" width="281" height="90" border="0"></a></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</div>');
		document.write('<div id="removeDropMenu6" style="position:absolute; width:10px; height:215px; z-index:4; left: 0px; top: 0px;">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><a onMouseOver="javascript:MM_callJS(menuRoll(1));"><img src="/images/clear.gif" width="293" height="45" border="0"></a></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</div>');
	}else
	{
		document.write('<layer id="removeDropMenu1" left="193px" top="80px" onMouseOver="javascript:MM_callJS(menuRoll(1));">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><img src="/images/clear.gif" width="100" height="75" border="0"></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</layer>');
		document.write('<layer id="removeDropMenu2" left="12px" top="80px" onMouseOver="javascript:MM_callJS(menuRoll(1));">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><img src="/images/clear.gif" width="80" height="215" border="0"></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</layer>');
		document.write('<layer id="removeDropMenu3" left="193px" top="195px" onMouseOver="javascript:MM_callJS(menuRoll(1));">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><img src="/images/clear.gif" width="100" height="12" border="0"></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</layer>');
		document.write('<layer id="removeDropMenu4" left="193px" top="242px" onMouseOver="javascript:MM_callJS(menuRoll(1));">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><img src="/images/clear.gif" width="100" height="53" border="0"></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</layer>');
		document.write('<layer id="removeDropMenu5" left="12px" top="296px" onMouseOver="javascript:MM_callJS(menuRoll(1));">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><img src="/images/clear.gif" width="281" height="90" border="0"></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</layer>');
		document.write('<layer id="removeDropMenu6" left="0px" top="0px" onMouseOver="javascript:MM_callJS(menuRoll(1));">');
			document.write('<table border="0" cellpadding="0" cellspacing="0">');
				document.write('<tr>');
					document.write('<td><img src="/images/clear.gif" width="293" height="45" border="0"></td>');
				document.write('</tr>');
			document.write('</table>');
		document.write('</layer>');
	}
}