if (document.images) {
img14 = new Image();
img14.src = "http://www.lotno3.com/newsite/images/twitter.jpg";
img15 = new Image();
img15.src = "http://www.lotno3.com/newsite/images/facebook.jpg";
img16 = new Image();
img16.src = "http://www.lotno3.com/newsite/images/signup.jpg";
img1 = new Image();
img1.src = "http://www.lotno3.com/newsite/images/link1a.gif";
img2 = new Image();
img2.src = "http://www.lotno3.com/newsite/images/link2a.gif";
img3 = new Image();
img3.src = "http://www.lotno3.com/newsite/images/link3a.gif";
img4 = new Image();
img4.src = "http://www.lotno3.com/newsite/images/link4a.gif";
img5 = new Image();
img5.src = "http://www.lotno3.com/newsite/images/link5a.gif";
img6 = new Image();
img6.src = "http://www.lotno3.com/newsite/images/link6a.gif";
img7 = new Image();
img7.src = "http://www.lotno3.com/newsite/images/link7a.gif";
img8 = new Image();
img8.src = "http://www.lotno3.com/newsite/images/link8a.gif";
img9 = new Image();
img9.src = "http://www.lotno3.com/newsite/images/link9a.gif";
img10 = new Image();
img10.src = "http://www.lotno3.com/newsite/images/slideshow-1.jpg";
img12 = new Image();
img12.src = "http://www.lotno3.com/newsite/images/dark-hr.gif";
img13 = new Image();
img13.src = "http://www.lotno3.com/newsite/images/background-new.jpg";
}

function linkOn(num)
{
document.images['link' + (num)].src = "http://www.lotno3.com/newsite/images/link"+(num)+"a.gif"
}

function linkOff(num)
{
document.images['link' + (num)].src = "http://www.lotno3.com/newsite/images/link"+(num)+".gif"
}

var piccount=Math.floor(Math.random()*11);

var ssID = '';

function slideshow() {
ssID = setTimeout("newPic()",6000);
}

function newPic() {
piccount=((piccount)+1);
if ((piccount)>11)
{
piccount=1;
}
document.images.slideshowpic.src="images/slideshow-"+(piccount)+".jpg";
slideshow();
}

function nextPic() {
clearTimeout(ssID);
piccount=((piccount)+1);

if ((piccount)>11)
{
piccount=1;
}
document.images.slideshowpic.src="images/slideshow-"+(piccount)+".jpg";
}

function prevPic() {
clearTimeout(ssID);
piccount=((piccount)-1);

if ((piccount)<1)
{
piccount=11;
}
document.images.slideshowpic.src="images/slideshow-"+(piccount)+".jpg";
}

var tID = '';

function showTables(){
document.images.reservetable.src='http://www.lotno3.com/newsite/images/reserve-a-table-a.gif';
}

function hideTables(){
document.images.reservetable.src='http://www.lotno3.com/newsite/images/reserve-a-table.gif';
}

function origVals(){
document.images.reservetable.src='http://www.lotno3.com/newsite/images/reserve-a-table.gif';
}

function resetTimer() {
clearTimeout(tID);
}



function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=parent.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].parent.document);
  if(!x && parent.document.getElementById) x=parent.document.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_preloadImages() { //v3.0
  var d=parent.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];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=parent.document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; parent.document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){parent.document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; parent.document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

var tID = '';

function showMenus(){
document.getElementById("menus").style.display = "block";
}

function showWidget(){
document.getElementById("reservations").style.display = "block";
}

function hideMenus(){
tID = setTimeout("origVals()",700);
}

function hideWidget(){
document.getElementById("reservations").style.display = "none";
}

function origVals(){
document.getElementById("menus").style.display = "none";
}

function resetTimer() {
clearTimeout(tID);
}
