<!--   
//=================================================================
function getcookie(name) {
   re = new RegExp(name + "=([^;]+)");
   value = re.exec(document.cookie);
   return (value != null) ? value[1] : "";
}
//=================================================================
function checkcart(level) {

// alert('Our staff is currently on vacation. Orders placed now will ship on Monday, May 26th.');
// return;

   if (getcookie("TMBcart") == "") alert("Your shopping cart is empty.");
     else self.location = "https://secure.missingbite.com/scripts/cart.html";
 //	 else self.location = "http://missingbite.com/scripts/cart.html";
}

//=================================================================
var timerID = null;    //intentionally outside of the function - timerID is global;
function act(ndx,defbtn) {
   if (timerID) clearTimeout(timerID);
   navndx = ndx + 2;
   document.images[navndx].src = btninv[ndx].src;
   if (defbtn && defbtn !=navndx && defbtn < 13) document.images[defbtn].src = btn[defbtn-2].src;
}
//=================================================================
function inact(ndx,defbtn) {
 navndx = ndx + 2;
if (!defbtn || defbtn !=navndx) document.images[navndx].src = btn[ndx].src;
if (defbtn && defbtn < 13) {timerID = setTimeout('act(' + (defbtn-2) +','+defbtn + ')', 400); }
}
//=================================================================
function drawbtn(ndx) {
  //lev, defbtn, & btnname are global variables from header()
   document.write('<a href="'+lev+btnname[ndx]+'.html"  onmouseover="act('+ndx+','+defbtn+')"  onmouseout="inact('+ndx+','+defbtn+')">');
   document.write('<img name="btn'+ndx+'" src="'+lev+'std/'+btnname[ndx]+'.gif" border=0></a>');
  document.writeln('<BR>');
}
//=================================================================
function footnote() {
document.write('<CENTER><P>');
document.write('<SPAN class=tiny>');
document.write('Copyright &copy; 2001-2010 &#149; The Missing Bite, All rights reserved');
document.writeln("</SPAN></P>");
}

//=================================================================
function header(level, page)  {
  //  level = index or detail level in the hierarchy 1 or 2
  //  defbtn = IMAGE OFFSET on page for default button to highlight
  //  Posters=5, SH=6, , MS=7, WM=8, SP=9, FAQ=10, priv=11, ... 13=thankyou (continue), 14=index (no defbtn),     0 & undefined = no default btn

   btnname =  [,"posters","SH","MS","WM","SP","FAQ","sitemap","guar","test","cart","thanks","index"];
  if (!page) defbtn = false;
  else defbtn = page + 2;
   lev = (level ==1) ? "./":"../";
   document.writeln('<META name="description" content="We offer a huge selection of iPod and Apple Mac shirts, hats, Think Different posters, pens, mugs, stickers, and more.">');
   document.writeln('<META name="keywords" content="apple logo, ipod, apple computer logo, gifts, think different, Macintosh, Mac, Mac OS X, OS X, shirts, tshirts, t-shirts, hats, watches, clocks, mouse pads, keyrings, pens, mugs">');
   document.writeln('<LINK REL=STYLESHEET HREF='+lev+'scripts/styles.css TYPE="text/css">');
   document.write('</HEAD>');

   document.write('<BODY BACKGROUND='+lev+'std/lines.gif>');
   document.write('<TABLE WIDTH=800 BORDER=0 CELLPADDING=0><TR ALIGN=CENTER>');
   document.write('<TD WIDTH=220 ALIGN=LEFT VALIGN=TOP><A HREF='+lev+'><IMG SRC='+lev+'std/TMBlogo.gif BORDER=0></A><IMG SRC='+lev+'std/spacer.gif></TD><TD>');

   if (defbtn) {
      document.writeln('<IMG SRC='+lev+'std/'+btnname[page]+'banner.gif><BR><BR>');
      if (defbtn == 13) defbtn = 12;   //Continue button on Thank You page replaces "Shopping Cart" btn
   } else  document.writeln('<IMG SRC='+lev+'std/indexbanner.gif><BR>');
  
   // ********** Discount Header  *************
   // Code also in cart.html & index.html 
   // document.writeln('<CENTER><B><FONT COLOR=RED>Now thru the end of July get $5 off any order over $30!</FONT></B></CENTER>');    
   // document.write('<B><FONT COLOR=RED>Our staff is currently on vacation.<BR>Orders placed now will ship on June 24th.</FONT></B>');
   // document.write('<BR><B><FONT COLOR=RED>Merry Christmas, Frohe Weihnachten, Bon Noel, Feliz Navidad, & Buon Natale</FONT></B>');
   // document.write('<BR><B><FONT COLOR=RED>Orders placed now will arrive after Christmas.</FONT></B>');
   // document.write('<BR><B><FONT COLOR=RED>Today Only!<BR>Save 15% Off <I>everything</I> in our store!</FONT></B>');
   // document.write('<BR><B><FONT COLOR=RED>Orders placed now will arrive after Christmas.</FONT></B>');
   // document.write('<BR><B><FONT COLOR=RED>>Our Annual Fall Sale is going on now!<BR>Save 15% Off <I>everything</I> in our store!</B><BR>(Discount calculated at checkout)</FONT>');
   // document.write('<B><FONT COLOR=RED>Our staff is currently on vacation.<BR>Orders placed now will ship on Monday, May 26th.</FONT></B>');
   // document.write('<B><FONT COLOR=RED>Orders placed now will arrive after Christmas.</FONT></B>');
   // document.write('<B><FONT COLOR=RED>Our staff is currently on vacation.<BR>Orders placed now will ship on Monday, May 10th.</FONT></B>');

// *********** End Discount Header *****************

 
   document.write('</TD></TR></TABLE><BR>');
   document.write('<TABLE WIDTH=800 BORDER=0 CELLPADDING=0>');
   document.write('<TR><TD WIDTH=20% ALIGN=LEFT VALIGN=TOP>');

   btn = new Array();
   btninv = new Array();
   for (i=1; i<=10; i++) {
     btn[i] = new Image();
     btninv[i] = new Image();
     btn[i].src = lev+"std/"+btnname[i]+".gif";
     btninv[i].src = lev+"std/"+btnname[i]+"inv.gif";
    if (i<10) drawbtn(i);
 if (i==5)  document.writeln('<HR>');
 //    if (i==5)  document.writeln('<BR><A HREF=../giftsetsec.html>Apple Gift Sets</A><HR>');
    if (i==9)  document.writeln('<HR>');
 }
  if (page == 11) {      //Thank you page
     btn[10].src = lev+"std/continue.gif";
     btninv[10].src = lev+"std/continueinv.gif";
    document.write('<A HREF="../" onmouseover="act(10,12)"  onmouseout="inact(10,12)">');
    document.write('<IMG  SRC='+lev+'std/continue.gif BORDER=0 ></A>');
} else {
    document.write('<A HREF="Javascript: checkcart('+level+')" onmouseover="act(10,'+defbtn+')"  onmouseout="inact(10,'+defbtn+')">');
    document.write('<IMG  SRC='+lev+'std/cart.gif BORDER=0 ></A>');
  }
document.writeln('</TD><TD VALIGN=TOP>');

// setup code for detail page header
  if (!defbtn) {
   document.writeln('<TABLE WIDTH=100% BORDER=0 CELLPADDING=5><TR><TH ALIGN=CENTER COLSPAN=2>');
  } 

}

-->