// JavaScript Document
var TimeOut = 180;    // Initial time to Close window after __ number of seconds?
var TimeRemain = 0;  // Remaining time to Close window after __ number of seconds?
var RefreshRate = 2; // Check to close window every __ number of seconds?
var ChildWin = null;


function TimedPopup(url)
{
 windowprops = "toolbar=no,statusbar=no,resizable=no,directories=no,locationbar=no,scrollbars=no,menubar=no,channelmode=yes,fullscreen=yes,titlebar=no,height=1024,width=1280"// May be adjusted according to your needs
 if (ChildWin)
     return false;
 ChildWin = window.open(url, "ChildWin", windowprops);
 ResetTimer();
 if (TimeOut && RefreshRate)
    setTimeout("CheckClose();",RefreshRate * 1000);
}
function ResetTimer()
{
 TimeRemain = TimeOut;
 document.form1.field1.value = TimeRemain; // For demo purposes only (May be removed)
}
function CheckClose()
{
 TimeRemain -= (RefreshRate);
 if (TimeRemain > 0)
    {
    if (ChildWin && ChildWin.closed)
       {
	document.form1.field1.value = TimeOut; // For demo purposes only (May be removed)
	ChildWin = null;
       }
    else
    if (ChildWin)
       {
        document.form1.field1.value = TimeRemain; // For demo purposes only (May be removed)
	setTimeout("CheckClose();",RefreshRate * 1000);
       }
    }
 else
 if (ChildWin)
    {
     document.form1.field1.value = TimeOut; // For demo purposes only (May be removed)
     if (ChildWin.closed)
	 ChildWin = null;
     else
	{
         ChildWin.close();
	 ChildWin = null;
        }
    }
}
//  End -->
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function mmLoadMenus() {
  if (window.mm_menu_0828095508_0) return;
  window.mm_menu_0828095508_0 = new Menu("root",176,35,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#9a383c","#9f3a3e","#ffffff","left","middle",1,1,1000,-5,7,true,true,true,7,false,false);
  mm_menu_0828095508_0.addMenuItem("About&nbsp;TableTouch,&nbsp;Inc.","location='aboutus.html'");
  mm_menu_0828095508_0.addMenuItem("Testimonials","location='testimonial.htm'");
  mm_menu_0828095508_0.addMenuItem("In&nbsp;The&nbsp;News","location='http://www.tabletouch.com/Press Release/PressRelease.html'");
  mm_menu_0828095508_0.addMenuItem("Visit&nbsp;Our&nbsp;Systems","location='locations.php'");
  
  mm_menu_0828095508_0.bgImageUp="fireworks/mmmenu5_176x35_up.gif";
   mm_menu_0828095508_0.bgImageOver="fireworks/mmmenu5_176x35_over.gif";
   mm_menu_0828095508_0.fontWeight="bold";
   mm_menu_0828095508_0.hideOnMouseOut=true;
   mm_menu_0828095508_0.bgColor='#333333';
  window.mm_menu_0828095637_1 = new Menu("root",178,35,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#9a383c","#9f3a3e","#ffffff","left","middle",1,1,1000,-5,7,true,true,true,7,false,false);
mm_menu_0828095637_1.addMenuItem("Hardware:","");
mm_menu_0828095637_1.addMenuItem("* Window&nbsp;Shopper","location='windowshopper.htm'");
mm_menu_0828095637_1.addMenuItem("* TapTable","location='taptable.htm'");
mm_menu_0828095637_1.addMenuItem("* Digital&nbsp;Monitors","location='monitor.html'");
mm_menu_0828095637_1.addMenuItem("Software:","");
mm_menu_0828095637_1.addMenuItem("* CellPhone&nbsp;Messages","location='celltech.html'");
mm_menu_0828095637_1.addMenuItem("* CellPhone&nbsp;Coupons","location='coupon.php'");
mm_menu_0828095637_1.addMenuItem("* XML&nbsp;News&nbsp;Feeds","location='newsfeed.html'");
mm_menu_0828095637_1.bgImageUp="fireworks/mmmenu4_178x35_up.gif";
   mm_menu_0828095637_1.bgImageOver="fireworks/mmmenu4_178x35_over.gif";
   mm_menu_0828095637_1.fontWeight="bold";
   mm_menu_0828095637_1.hideOnMouseOut=true;
   mm_menu_0828095637_1.bgColor='#333333';
  window.mm_menu_0828095729_2 = new Menu("root",178,35,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#9a383c","#9f3a3e","#ffffff","left","middle",1,1,1000,-5,7,true,true,true,7,false,false);
//  mm_menu_0828095729_2.addMenuItem("Property&nbsp;Management","window.open('http://www.sfmanager.com/ts/', '_blank');");
  mm_menu_0828095729_2.addMenuItem("Window&nbsp;Agent","location='http://www.tabletouch.com/realestate.htm'");
  mm_menu_0828095729_2.addMenuItem("NewsTables","location='newstable.htm'");
  mm_menu_0828095729_2.addMenuItem("Wired&nbsp;Portals","location='village.html'");
  ;
	mm_menu_0828095729_2.bgImageUp="fireworks/mmmenu3_178x35_up.gif";
   	mm_menu_0828095729_2.bgImageOver="fireworks/mmmenu3_178x35_over.gif";
   mm_menu_0828095729_2.fontWeight="bold";
   mm_menu_0828095729_2.hideOnMouseOut=true;
   mm_menu_0828095729_2.bgColor='#333333';
  window.mm_menu_0828095825_3 = new Menu("root",179,35,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#9a383c","#9f3a3e","#ffffff","left","middle",1,1,1000,-5,7,true,true,true,7,false,false);
  mm_menu_0828095825_3.addMenuItem("Support","location='support.htm'");
   mm_menu_0828095825_3.bgImageUp="fireworks/mmmenu2_179x35_up.gif";
   mm_menu_0828095825_3.bgImageOver="fireworks/mmmenu2_179x35_over.gif";
   mm_menu_0828095825_3.fontWeight="bold";
   mm_menu_0828095825_3.hideOnMouseOut=true;
   mm_menu_0828095825_3.bgColor='#333333';
  window.mm_menu_0828095858_4 = new Menu("root",145,35,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#9a383c","#9f3a3e","#ffffff","left","middle",1,1,1000,-5,7,true,true,true,7,false,false);
  mm_menu_0828095858_4.addMenuItem("Contact&nbsp;Us","location='contactus.htm'");
mm_menu_0828095858_4.bgImageUp="fireworks/mmmenu1_145x35_up.gif";
   mm_menu_0828095858_4.bgImageOver="fireworks/mmmenu1_145x35_over.gif";
   mm_menu_0828095858_4.fontWeight="bold";
   mm_menu_0828095858_4.hideOnMouseOut=true;
   mm_menu_0828095858_4.bgColor='#333333';

  mm_menu_0828095858_4.writeMenus();
} // mmLoadMenus()

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];}}
}

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.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

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_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//-->


