﻿// JScript File

// *** Google Map Here
   
   function InitializeMap() 
   {
      if (GBrowserIsCompatible())
      {
          var map = new GMap2(document.getElementById("map"));
          map.setCenter(new GLatLng(40.732478,-74.140055), 16);  // from google map take a ll=40.732478,-74.140055
          map.addControl(new GSmallZoomControl());
          map.addControl(new GOverviewMapControl());
        
          // Create our "tiny" marker icon
          var blueIcon = new GIcon(G_DEFAULT_ICON);blueIcon.image = "http://www.google.com/mapfiles/markerF.png";
       
          // Set up our GMarkerOptions object
          markerOptions = { icon:blueIcon };
          var marker = new GMarker(new GLatLng(40.732478,-74.140055),markerOptions);
             
          map.addOverlay(marker);
          marker.openInfoWindowHtml("<DIV ALIGN='center'><img src='http://www.fernandessteakhouse.com/App_Themes/Default/images/IMAGE2.jpg' width='271' height='219'/> <br/>FERNANDES STEAK HOUSE <br/> 158 Fleming Ave <BR/>Newark, NJ 07105<BR/><BR/></DIV>");
         
          }// if
   }//function InitializeMap()


// *** Google Map Ends Here

// *** Category Menu
var strPrefix = "ctl00$ContentPlaceHolder1$CategoryMenu$"
function OnClickSelectedMenu(strSelectedMenuCategory)
{
   //alert(strSelectedMenuCategory);
   $get(strPrefix + 'txtClickedMenu').value = strSelectedMenuCategory;
}

// *** Category Menu


       function PrintForm(strFormID) { 
          //var printContent = document.getElementById('<%= pnlCategoryMenuShow.ClientID %>');
          var printContent = document.getElementById(strFormID);
          var windowUrl = 'about:blank'; 
          var uniqueName = new Date(); 
          var windowName = 'Print' + uniqueName.getTime(); 
          var printWindow = window.open(windowUrl, windowName, 'left=50000,top=50000,width=0,height=0');
          
          printWindow.document.write(printContent.innerHTML); 
          printWindow.document.close();
          printWindow.focus(); 
          printWindow.print(); 
          printWindow.close(); 
       } 



// *** ItemMenuView
function ChangeValueOnUpdate(){
    alert();

}//function ChangeValueOnUpdate()


