//compatibility check
br=navigator.appName;
//vr=navigator.appVersion;
//vr=parseFloat(vr);
//if (br=='Netscape'){document.location='sorry.htm';}
//end compatibility check

ox=0; oy=0; //display offsets

function setOffset(){
 br=navigator.appName;
 ox=window.innerWidth; oy=window.innerHeight;
 if (br=="Microsoft Internet Explorer"){ox=document.body.clientWidth; oy=document.body.clientHeight;}
 if (ox>752){ox=parseInt((ox-751)/2);}else{ox=0;}
 if (oy>453){oy=parseInt((oy-452)/2);}else{oy=0;}
}

function setPosition(x,y,object){
 br=navigator.appName;
 if (document.all){ //for IE
  eval('document.all.'+object+'.style.left='+x+';');
  eval('document.all.'+object+'.style.top='+y+';');
 }
 
 if (document.getElementById) { //for firefox
  eval('document.getElementById("'+object+'").style.left='+x+';');
  eval('document.getElementById("'+object+'").style.top='+y+';');
 }

 if (document.layers) { //for netscape
  eval('document.layers["'+object+'"].left='+x+';');
  eval('document.layers["'+object+'"].top='+y+';');
 }
}



function setVisible(object,choice){
 if (document.all){ //for IE
 		eval('document.all.'+object+'.style.visibility=\''+choice+'\';');
 }
 if (document.getElementById) { //for firefox
        eval('document.getElementById("'+object+'").style.visibility=\''+choice+'\';');
 }
 if (document.layers) { //for netscape
        eval('document.layers["'+object+'"].visibility=\''+choice+'\';');
 }
}

function setUp(){

  setOffset();
  setPosition(ox,oy,'headerdiv');
  setVisible('headerdiv','visible');
  setPosition(ox,oy+91,'bigpicdiv');
  setVisible('bigpicdiv','visible');
  setPosition(ox,oy+414,'navbottomdiv');
  setVisible('navbottomdiv','visible');
  setPosition(ox+326,oy+127,'tlf1div');
  setVisible('tlf1div','visible');
  setPosition(ox+312,oy+91,'homemenudiv');
  setVisible('homemenudiv','visible');




/*

  choice = Math.floor(1 * Math.random());
  if (choice == 0){
    giftpopupwin=window.open('twinforksBBQ.htm','giftpopupwin','width=540,height=270,status=0,scrollbars=no,menu=no,resize=no');
  } 
  else {
    giftpopupwin=window.open('giftpopup.htm','giftpopupwin','width=541,height=271,status=0,scrollbars=no,menu=no,resize=no');
  }
  //else {
  //giftpopupwin=window.open('twinforksBBQ.htm','giftpopupwin','width=540,height=270,status=0,scrollbars=no,menu=no,resize=no');
  //giftpopupwin=window.open('easter.htm','giftpopupwin','width=540,height=270,status=0,scrollbars=no,menu=no,resize=no');
  //giftpopupwin=window.open('tbone.htm','giftpopupwin','width=326,height=326,status=0,scrollbars=no,menu=no,resize=no');
  //giftpopupwin=window.open('fathersday.htm','giftpopupwin','width=540,height=270,status=0,scrollbars=no,menu=no,resize=no');

  //}

*/

}

function openwin(url,name,x,y){

var screenHeight;
var screenWidth;

if ((screen.width < 1024) && (screen.height < 768)) //desired screen resolution for normal behaviour
{
   if(screenHeight < y) { y = screenHeight - 50; }
   if(screenWidth < x) { x = screenWidth - 50; }
}

//window configuration
settings=
"toolbar=no,location=yes,"+
"status=no,menubar=no,scrollbars=yes,"+
"screenX=0,screenY=0,left=0,top=0"+
"resizable=no,width="+x+",height="+y;

Popupwindow=window.open(url,name,settings); 

}//end openwin


nearest_off = new Image();
nearest_off.src = "nearest_off.gif";
nearest_on = new Image();
nearest_on.src = "nearest_on.gif";



menus_off = new Image();
menus_off.src = "menus_off.gif";
menus_on = new Image();
menus_on.src = "menus_on.gif";



gifts_off = new Image();
gifts_off.src = "gifts_off.gif";
gifts_on = new Image();
gifts_on.src = "gifts_on.gif";



bonuses_off = new Image();
bonuses_off.src = "bonuses_off.gif";
bonuses_on = new Image();
bonuses_on.src = "bonuses_on.gif";



banquets_off = new Image();
banquets_off.src = "banquets_off.gif";
banquets_on = new Image();
banquets_on.src = "banquets_on.gif";



catering_off = new Image();
catering_off.src = "catering_off.gif";
catering_on = new Image();
catering_on.src = "catering_on.gif";



createaplate_off = new Image();
createaplate_off.src = "createaplate_off.gif";
createaplate_on = new Image();
createaplate_on.src = "createaplate_on.gif";



contact_off = new Image();
contact_off.src = "contact_off.gif";
contact_on = new Image();
contact_on.src = "contact_on.gif";



community_off = new Image();
community_off.src = "community_off.gif";
community_on = new Image();
community_on.src = "community_on.gif";



work_off = new Image();
work_off.src = "work_off.gif";
work_on = new Image();
work_on.src = "work_on.gif";


happyhour = new Image();
happyhour.src = "summer2008_BBQ.jpg";
giftcertificates2 = new Image();
giftcertificates2.src = "giftcertificates2.jpg";
catering2 = new Image();
catering2.src = "catering.jpg";
topsirloin = new Image();
topsirloin.src = "BigAndTender.jpg";

