function printIT(Str) { 
	b = "";
	b = b + "<HTML><HEAD><TITLE>2 e a t - אתר המסעדות הישראלי</TITLE>";
	b = b + "<META content='text/html;charset=windows-1255' http-equiv=Content-Type><link rel='STYLESHEET' type='text/css' href='includes/stylesheet.css'>";
	b = b + "</head><Body dir='rtl' lang='he'><div align='right' dir='rtl'>"
	b = b + eval(Str+".innerHTML");
	b = b + "</div></body></html>"
	frames.Printer.document.body.innerHTML = b;
	frames.Printer.focus();
	frames.Printer.print();
} 

function printCoupon() { 
	printArea.style.visibility = "hidden";
	window.focus();
	window.print();
	printArea.style.visibility = "visible";
} 

function openWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

function openPage(theURL) {
	self.location = theURL;
}

function ShowHide(lLayer) {
 if (eval("document.all."+lLayer+".style.display") == ""){
     eval("document.all."+lLayer+".style.display = 'none'");
 	 eval("document.all.Pic"+lLayer+".src = 'images/ResizeBig_Button.gif'")
	 }
 else{
     eval("document.all."+lLayer+".style.display = ''");
	eval("document.all.Pic"+lLayer+".src = 'images/ResizeSmal_Button.gif'")
	 }
 }
function isOver800(){ // פונקציה לקביעת גודל מסך אחיד
    sizeTable.height="100%";
    if (window.screen.width > 800){
        sizeTable.width="1005px";
    }
    else{
        sizeTable.width="795px";
    }
}
function FixAX(strSRC,w,h,type)
{
if (type=="swf")
    {
        document.write("<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH="+w+" HEIGHT="+h+" id=searc>")
        document.write("<PARAM NAME=movie VALUE="+strSRC)
        document.write("><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="+strSRC+" WIDTH="+w+" HEIGHT="+h+" NAME=searc ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>")
    }
if (type=="MP3")
    {
        document.write("<OBJECT id='SOUND' WIDTH="+w+" HEIGHT="+h+" CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'	type='application/x-oleobject'>")
        document.write("<PARAM NAME='URL' VALUE="+strSRC+"<PARAM NAME='SendPlayStateChangeEvents' VALUE='True'><PARAM NAME='AutoStart' VALUE='True'><PARAM name='uiMode' value='none'><PARAM name='PlayCount' value='9999'>")
        document.write("</OBJECT>")
    }
if (type=="WAV")
    {
        document.write("<OBJECT id='SOUND' WIDTH="+w+" HEIGHT="+h+" classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0' align='middle' >")
        document.write("<param name='src' value='"+strSRC+"' /><param name='autoplay' value='true' />")
        document.write("<embed src='"+strSRC+"' width="+w+" height="+h+" pluginspage=http://www.apple.com/quicktime/download/ align='middle' autoplay='true' bgcolor='black' > </embed>")
    }
}
function mouseOvr(src,newColor,oldColor)
{
    srcTD=eval("TD"+src);
    srcFONT=eval("FONT"+src);
    srcTD.style.backgroundColor=newColor;
    srcFONT.style.color=oldColor;
}
function ScrooRightMenu()
{    
    document.all.RightMenuTable.style.marginTop=document.body.scrollTop;
    /*
        if ( (window.screen.height - 364) > (document.all.countPages.value * 25) )
        {
            //window.status = window.screen.height;
            //window.status = document.all.sizeTable.height
            document.all.RightMenuTable.style.marginTop=document.body.scrollTop;
        }
        else
        {
            //document.all.RightMenuTable.style.marginTop=document.body.scrollTop;
            //window.status = window.screen.availHeight
        }
    */
    if (document.all.countPages.value > 14)
        document.all.RightMenuTable.style.marginTop=0
}
function openClickATableSearch(restaurantGuid, refID)
{
    var newwindow = window.open("http://www.clickatable.co.il/ClickATable/SearchPage.aspx?RestaurantId={"+refID+"}&ref="+restaurantGuid+"&portal=2eat","SearchSeats", "height=477, width=750, scrollbars=yes, status=yes,resizable=yes, location=yes, top=50, left=100");
    if (window.focus) {newwindow.focus()}
}
function track(page, action, restaurant) {
    if (typeof (pageTracker) != "undefined")
        pageTracker._trackEvent(page, action, restaurant);
}