document.write('<link rel="stylesheet" href="https://www.restaurantinternational.ca/Portals/_default/psn/oeInjectedReservationStyleSheet.css" type="text/css" media="screen" />')
document.write(' <div class="SQBM"> ')
document.write('   <div class="SQBL"></div> ')
document.write('   <div class="SQBR"></div> ')
document.write('   <div class="SQBO"> ')
document.write('       <div class="SQBW"> ')
document.write('           <div class="SQB"> ')
document.write('                   <div class="title">Reservation</div> ')
document.write('     <div class="groupSize"> ')
document.write('       <select id="ddlGroupSize105" class="QBList ddlGroupSize"> ')
document.write('           <option value="1" >1 Guest</option> ')
document.write('           <option value="2" selected >2 Guests</option>  ')
document.write('           <option value="3" >3 Guests</option> ')
document.write('           <option value="4" >4 Guests</option> ')
document.write('           <option value="5" >5 Guests</option> ')
document.write('           <option value="6" >6 Guests</option> ')
document.write('           <option value="7" >7 Guests</option> ')
document.write('           <option value="8" >8 Guests</option> ')
document.write('           <option value="2" >Otherwise please call</option> ')
document.write('       </select> ')
document.write('     </div> ')
document.write('     <div  class="day"> ')
document.write('       <select id="ddlStartDate105" class="QBList ddlStartDate"> ')
document.write('           <option value="2026-11-18" >Wed, Nov 18</option> ')
document.write('           <option value="2026-11-19" >Thu, Nov 19</option> ')
document.write('           <option value="2026-11-20" >Fri, Nov 20</option> ')
document.write('           <option value="2026-11-24" >Tue, Nov 24</option> ')
document.write('           <option value="2026-11-25" >Wed, Nov 25</option> ')
document.write('           <option value="2026-11-26" >Thu, Nov 26</option> ')
document.write('           <option value="2026-11-27" >Fri, Nov 27</option> ')
document.write('           <option value="2026-12-03" >Thu, Dec 03</option> ')
document.write('           <option value="2026-12-04" >Fri, Dec 04</option> ')
document.write('           <option value="2026-12-08" >Tue, Dec 08</option> ')
document.write('           <option value="2026-12-09" >Wed, Dec 09</option> ')
document.write('           <option value="2026-11-15"  >Otherwise</option> ')
document.write('       </select> ')
document.write('     </div > ')
document.write('     <div class="time"> ')
document.write('       <select id="ddlStartTime105" class="QBList ddlStartTime"> ')
document.write('           <option value="11:30" >11:30 AM</option> ')
document.write('           <option value="11:45" >11:45 AM</option> ')
document.write('           <option value="12:00" >12:00 PM</option> ')
document.write('           <option value="12:15" >12:15 PM</option> ')
document.write('           <option value="12:30" >12:30 PM</option> ')
document.write('           <option value="00:00" >Otherwise please call</option> ')
document.write('       </select> ')
document.write('     </div> ')
document.write('                   <div class="submit"> ')
document.write('                       <input type="button" name="SQBButton105" value="Make Reservation" id="MakeReservation105" class="MakeReservation" /> ')
document.write('                   </div>')
document.write('           </div>')
document.write('       </div>')
document.write('   </div>')
document.write('</div>')
function addParam(QueryString, Parameter, Value) { if (QueryString == null || QueryString == '') return '?' + Parameter + '=' + Value; else return QueryString + '&' + Parameter + '=' + Value; } 
function OpenLightbox105() { 
       var RezParameters = ''; 
       var width = getWidth(); 
       if (jQuery('#ddlStartDate105').length > 0) RezParameters = addParam(RezParameters, 'StartDate', jQuery('#ddlStartDate105').val()); 
       if (jQuery('#ddlStartTime105').length > 0) RezParameters = addParam(RezParameters, 'StartTime', jQuery('#ddlStartTime105').val()); 
       if (jQuery('#ddlGroupSize105').length > 0) RezParameters = addParam(RezParameters, 'GroupSize', jQuery('#ddlGroupSize105').val()); 
       RezParameters = addParam(RezParameters, 'DialogBox', 'y'); 
       RezParameters = addParam(RezParameters, 'ParentUrl', encodeURIComponent(document.location.href)); 
       RezParameters = addParam(RezParameters, 'psn', 'oe'); 
       if(width < 710) { 
	        var iFrameUrl = 'https://www.restaurantinternational.ca/MobileReservation.aspx' + RezParameters; 
	        var dialogHtml = '<div id="reservationWizard105" align="center" style="width: 300px; height: 600px"><iframe id="reservationWizardiFrame105" name="reservationWizardiFrame105" src="' + iFrameUrl + '" width="100%" height="100%" frameborder="0"></iframe></div>'; 
	        if (jQuery('#reservationWizard105').length > 0) jQuery('#reservationWizard105').remove();
	        jQuery(dialogHtml).dialog({ autoOpen: false, closeText: 'Close', width: 300, height: 600, title: ('Reservation for Restaurant International').replace("&#39;","'"), close: function (type, data) { jQuery(this).dialog('destroy'); }, modal: true }); 
       } 
       else { 
	        var iFrameUrl = 'https://www.restaurantinternational.ca/tabid/7335/Default.aspx' + RezParameters; 
	        var dialogHtml = '<div id="reservationWizard105" align="center" style="width: auto; height: 600px"><iframe id="reservationWizardiFrame105" name="reservationWizardiFrame105" src="' + iFrameUrl + '" width="100%" height="100%" frameborder="0"></iframe></div>'; 
	        if (jQuery('#reservationWizard105').length > 0) jQuery('#reservationWizard105').remove();
	        jQuery(dialogHtml).dialog({ autoOpen: false, closeText: 'Close', width: 710, height: 600, title: ('Reservation for Restaurant International').replace("&#39;","'"), close: function (type, data) { jQuery(this).dialog('destroy'); }, modal: true }); 
       } 
	    jQuery('#reservationWizard105').dialog('open'); 
 } 
function getWidth() { 
  var currentWidth = 0; 
  if( typeof( window.innerWidth ) == 'number' ) { 
    currentWidth = window.innerWidth; 
  } else if( document.documentElement && ( document.documentElement.clientWidth ) ) { 
    currentWidth = document.documentElement.clientWidth; 
  } else if( document.body && ( document.body.clientWidth ) ) { 
    currentWidth = document.body.clientWidth; 
  } 
  return currentWidth; 
}; 
function updateIframe() { 
   var RezParameters = ''; 
   if (jQuery('#ddlStartDate105').length > 0) RezParameters = addParam(RezParameters, 'StartDate', jQuery('#ddlStartDate105').val()); 
       if (jQuery('#ddlStartTime105').length > 0) RezParameters = addParam(RezParameters, 'StartTime', jQuery('#ddlStartTime105').val()); 
   if (jQuery('#ddlGroupSize105').length > 0) RezParameters = addParam(RezParameters, 'GroupSize', jQuery('#ddlGroupSize105').val()); 
   RezParameters = addParam(RezParameters, 'DialogBox', 'y'); 
   RezParameters = addParam(RezParameters, 'ParentUrl', encodeURIComponent(document.location.href)); 
   RezParameters = addParam(RezParameters, 'psn', 'oe'); 
   width = getWidth(); 
   if (width < 710) { 
	    var iFrameUrl = 'https://www.restaurantinternational.ca/MobileReservation.aspx' + RezParameters; 
		jQuery(document.getElementById('reservationWizardiFrame105')).attr('src', iFrameUrl); 
	    jQuery('#reservationWizardiFrame105').addClass('reservationWizardiFrame105-resize'); 
	    jQuery('.reservationWizardiFrame105-resize').css("width",300); 
	    var dialogElementParent = jQuery("#reservationWizard105").parent(); 
	    dialogElementParent.width(350); 
	    jQuery("#reservationWizard105").parent().addClass("iFrameShiftLeft"); 
	    jQuery(".iFrameShiftLeft").css("width",350); 
	    jQuery(".iFrameShiftLeft").css("left",(width -350) / 2 ); 
    } else { 
	    var iFrameUrl = 'https://www.restaurantinternational.ca/tabid/7335/Default.aspx' + RezParameters; 
		jQuery(document.getElementById('reservationWizardiFrame105')).attr('src', iFrameUrl); 
	    jQuery('#reservationWizardiFrame105').addClass('reservationWizardiFrame105-resize'); 
	    jQuery('.reservationWizardiFrame105-resize').css("width",660); 
	    var dialogElementParent = jQuery("#reservationWizard105").parent(); 
	    dialogElementParent.width(710); 
	    jQuery("#reservationWizard105").parent().css("width",710); 
	    jQuery("#reservationWizard105").parent().css("left",(width -710) / 2 ); 
	}; 
}; 
function Events105(){
	    jQuery('form').each(function() {
		    this.reset(); 
	    });
	    jQuery('#MakeReservation105').click(function(){
	    	OpenLightbox105(); 
 	    }); 
	    jQuery('#ddlGroupSize105').change(function(){ 
	    	OpenLightbox105(); 
 	    }); 
	    jQuery('#ddlStartDate105').change(function(){ 
	    	OpenLightbox105(); 
 	    }); 
	    jQuery('#ddlStartTime105').change(function(){ 
	    	if (jQuery('#ddlStartTime105').val() == '00:00') {OpenLightbox105();} 
 	    }); 
	    jQuery('#ExtLink').remove(); 
       jQuery.receiveMessage(function (e) { 
           if (e.data === 'close') { 
               jQuery('#reservationWizard105').dialog('close'); 
           } 
       }, 'https://www.restaurantinternational.ca'); 
	    jQuery(window).resize(function() { 
	        updateIframe(); 
       }); 
} 
//http:'www.nczonline.net/blog/2009/07/28/the-best-way-to-load-external-javascript/ 
function LoadScript105(url, callback){
    var script = document.createElement('script')
    script.type = 'text/javascript';
    if (script.readyState){ 
            script.onreadystatechange = function(){ 
               if (script.readyState == 'loaded' ||script.readyState == 'complete'){
                   script.onreadystatechange = null; 
                   callback(); 
               }
           };
   } else {  
        script.onload = function(){
            callback();
        };
   }
   script.src = url;
   document.getElementsByTagName('head')[0].appendChild(script); 
}
 if (typeof jQuery == 'undefined'){ 
   LoadScript105('https://www.restaurantinternational.ca/js/jquery.min.js', function(){
       jQuery('document').ready(function (){ 
           if (typeof jQuery.ui == 'undefined'){ 
               LoadScript105('https://www.restaurantinternational.ca/js/jquery-ui.min.js', function(){ 
                   if (typeof jQuery.postmessage == 'undefined'){ 
                       LoadScript105('https://www.restaurantinternational.ca/js/jquery.ba-postmessage.js', function(){ 
                           Events105(); 
                       }); 
                   }else{ 
                       Events105(); 
                   }; 
               }); 
           }; 
       }); 
   }); 
 }else{ 
   if (typeof jQuery.ui == 'undefined'){ 
       if(jQuery.fn.jquery.split('.').map(function(i){return('0'+i).slice(-2)}).join('.') > '01.08.03'){ 
           LoadScript105('https://www.restaurantinternational.ca/js/jquery-ui.min.js', function(){  
               if (typeof jQuery.postmessage == 'undefined'){  
                   LoadScript105('https://www.restaurantinternational.ca/js/jquery.ba-postmessage.js', function(){  
                       Events105();  
                   });  
               }else{  
                   Events105();  
               }; 
           });  
       } else { 
           LoadScript105('https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js', function(){ 
               if (typeof jQuery.postmessage == 'undefined'){  
                   LoadScript105('https://www.restaurantinternational.ca/js/jquery.ba-postmessage.js', function(){  
                       Events105();  
                   });  
               }else{  
                   Events105();  
               }; 
           });  
       }; 
   }else{ 
       if (typeof jQuery.postmessage == 'undefined'){ 
           LoadScript105('https://www.restaurantinternational.ca/js/jquery.ba-postmessage.js', function(){ 
               Events105(); 
           }); 
       }else{ 
           Events105(); 
       }; 
   }; 
 };
