document.write('<link rel="stylesheet" href="https://keg.york.sitebenefits.com/Portals/_default/psn/kegInjectedReservationStyleSheet.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">Réservation</div> ')
document.write('     <div class="groupSize"> ')
document.write('       <select id="ddlGroupSize258" class="QBList ddlGroupSize"> ')
document.write('           <option value="1" >1 personne</option> ')
document.write('           <option value="2" selected >2 personnes</option>  ')
document.write('           <option value="3" >3 personnes</option> ')
document.write('           <option value="4" >4 personnes</option> ')
document.write('           <option value="5" >5 personnes</option> ')
document.write('           <option value="6" >6 personnes</option> ')
document.write('           <option value="7" >7 personnes</option> ')
document.write('           <option value="8" >8 personnes</option> ')
document.write('           <option value="2" >autrement veuillez appeler</option> ')
document.write('       </select> ')
document.write('     </div> ')
document.write('     <div  class="day"> ')
document.write('       <select id="ddlStartDate258" class="QBList ddlStartDate"> ')
document.write('           <option value="2026-06-10" >mer., juin 10</option> ')
document.write('           <option value="2026-06-11" >jeu., juin 11</option> ')
document.write('           <option value="2026-06-12" >ven., juin 12</option> ')
document.write('           <option value="2026-06-13" >sam., juin 13</option> ')
document.write('           <option value="2026-06-14" >dim., juin 14</option> ')
document.write('           <option value="2026-06-15" >lun., juin 15</option> ')
document.write('           <option value="2026-06-16" >mar., juin 16</option> ')
document.write('           <option value="2026-06-17" >mer., juin 17</option> ')
document.write('           <option value="2026-06-18" >jeu., juin 18</option> ')
document.write('           <option value="2026-06-19" >ven., juin 19</option> ')
document.write('           <option value="2026-06-20" >sam., juin 20</option> ')
document.write('           <option value="2026-06-21" >dim., juin 21</option> ')
document.write('           <option value="2026-06-22" >lun., juin 22</option> ')
document.write('           <option value="2026-06-23" >mar., juin 23</option> ')
document.write('           <option value="2026-06-24" >mer., juin 24</option> ')
document.write('           <option value="2026-06-25" >jeu., juin 25</option> ')
document.write('           <option value="2026-06-26" >ven., juin 26</option> ')
document.write('           <option value="2026-06-27" >sam., juin 27</option> ')
document.write('           <option value="2026-06-28" >dim., juin 28</option> ')
document.write('           <option value="2026-06-29" >lun., juin 29</option> ')
document.write('           <option value="2026-06-30" >mar., juin 30</option> ')
document.write('           <option value="2026-07-01" >mer., juil. 01</option> ')
document.write('           <option value="2026-06-09"  >autrement</option> ')
document.write('       </select> ')
document.write('     </div > ')
document.write('     <div class="time"> ')
document.write('       <select id="ddlStartTime258" class="QBList ddlStartTime"> ')
document.write('           <option value="17h00" >17h00</option> ')
document.write('           <option value="17h15" >17h15</option> ')
document.write('           <option value="17h30" >17h30</option> ')
document.write('           <option value="17h45" >17h45</option> ')
document.write('           <option value="18h00" >18h00</option> ')
document.write('           <option value="18h15" >18h15</option> ')
document.write('           <option value="18h45" >18h45</option> ')
document.write('           <option value="19h00" >19h00</option> ')
document.write('           <option value="19h15" >19h15</option> ')
document.write('           <option value="19h30" >19h30</option> ')
document.write('           <option value="19h45" >19h45</option> ')
document.write('           <option value="20h00" >20h00</option> ')
document.write('           <option value="20h15" >20h15</option> ')
document.write('           <option value="20h30" >20h30</option> ')
document.write('           <option value="20h45" >20h45</option> ')
document.write('           <option value="21h00" >21h00</option> ')
document.write('           <option value="00:00" >autrement veuillez appeler</option> ')
document.write('       </select> ')
document.write('     </div> ')
document.write('                   <div class="submit"> ')
document.write('                       <input type="button" name="SQBButton258" value="Faire une réservation" id="MakeReservation258" 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 OpenLightbox258() { 
       var RezParameters = ''; 
       var width = getWidth(); 
       if (jQuery('#ddlStartDate258').length > 0) RezParameters = addParam(RezParameters, 'StartDate', jQuery('#ddlStartDate258').val()); 
       if (jQuery('#ddlStartTime258').length > 0) RezParameters = addParam(RezParameters, 'StartTime', jQuery('#ddlStartTime258').val().replace('h',':')); 
       if (jQuery('#ddlGroupSize258').length > 0) RezParameters = addParam(RezParameters, 'GroupSize', jQuery('#ddlGroupSize258').val()); 
       RezParameters = addParam(RezParameters, 'DialogBox', 'y'); 
       RezParameters = addParam(RezParameters, 'ParentUrl', encodeURIComponent(document.location.href)); 
       RezParameters = addParam(RezParameters, 'psn', 'keg'); 
       RezParameters = addParam(RezParameters, 'ac', 'fr-CA'); 
       if(width < 710) { 
	        var iFrameUrl = 'https://keg.york.sitebenefits.com/MobileReservationFr.aspx' + RezParameters; 
	        var dialogHtml = '<div id="reservationWizard258" align="center" style="width: 300px; height: 600px"><iframe id="reservationWizardiFrame258" name="reservationWizardiFrame258" src="' + iFrameUrl + '" width="100%" height="100%" frameborder="0"></iframe></div>'; 
	        if (jQuery('#reservationWizard258').length > 0) jQuery('#reservationWizard258').remove();
	        jQuery(dialogHtml).dialog({ autoOpen: false, closeText: 'Fermé', width: 300, height: 600, title: ('Réservation pour Ottawa Market Keg').replace("&#39;","'"), close: function (type, data) { jQuery(this).dialog('destroy'); }, modal: true }); 
       } 
       else { 
	        var iFrameUrl = 'https://keg.york.sitebenefits.com/tabid/106332/Default.aspx' + RezParameters; 
	        var dialogHtml = '<div id="reservationWizard258" align="center" style="width: auto; height: 600px"><iframe id="reservationWizardiFrame258" name="reservationWizardiFrame258" src="' + iFrameUrl + '" width="100%" height="100%" frameborder="0"></iframe></div>'; 
	        if (jQuery('#reservationWizard258').length > 0) jQuery('#reservationWizard258').remove();
	        jQuery(dialogHtml).dialog({ autoOpen: false, closeText: 'Fermé', width: 710, height: 600, title: ('Réservation pour Ottawa Market Keg').replace("&#39;","'"), close: function (type, data) { jQuery(this).dialog('destroy'); }, modal: true }); 
       } 
	    jQuery('#reservationWizard258').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('#ddlStartDate258').length > 0) RezParameters = addParam(RezParameters, 'StartDate', jQuery('#ddlStartDate258').val()); 
       if (jQuery('#ddlStartTime258').length > 0) RezParameters = addParam(RezParameters, 'StartTime', jQuery('#ddlStartTime258').val().replace('h',':')); 
   if (jQuery('#ddlGroupSize258').length > 0) RezParameters = addParam(RezParameters, 'GroupSize', jQuery('#ddlGroupSize258').val()); 
   RezParameters = addParam(RezParameters, 'DialogBox', 'y'); 
   RezParameters = addParam(RezParameters, 'ParentUrl', encodeURIComponent(document.location.href)); 
   RezParameters = addParam(RezParameters, 'psn', 'keg'); 
   RezParameters = addParam(RezParameters, 'ac', 'fr-CA'); 
   width = getWidth(); 
   if (width < 710) { 
	    var iFrameUrl = 'https://keg.york.sitebenefits.com/MobileReservationFr.aspx' + RezParameters; 
		jQuery(document.getElementById('reservationWizardiFrame258')).attr('src', iFrameUrl); 
	    jQuery('#reservationWizardiFrame258').addClass('reservationWizardiFrame258-resize'); 
	    jQuery('.reservationWizardiFrame258-resize').css("width",300); 
	    var dialogElementParent = jQuery("#reservationWizard258").parent(); 
	    dialogElementParent.width(350); 
	    jQuery("#reservationWizard258").parent().addClass("iFrameShiftLeft"); 
	    jQuery(".iFrameShiftLeft").css("width",350); 
	    jQuery(".iFrameShiftLeft").css("left",(width -350) / 2 ); 
    } else { 
	    var iFrameUrl = 'https://keg.york.sitebenefits.com/tabid/106332/Default.aspx' + RezParameters; 
		jQuery(document.getElementById('reservationWizardiFrame258')).attr('src', iFrameUrl); 
	    jQuery('#reservationWizardiFrame258').addClass('reservationWizardiFrame258-resize'); 
	    jQuery('.reservationWizardiFrame258-resize').css("width",660); 
	    var dialogElementParent = jQuery("#reservationWizard258").parent(); 
	    dialogElementParent.width(710); 
	    jQuery("#reservationWizard258").parent().css("width",710); 
	    jQuery("#reservationWizard258").parent().css("left",(width -710) / 2 ); 
	}; 
}; 
function Events258(){
	    jQuery('form').each(function() {
		    this.reset(); 
	    });
	    jQuery('#MakeReservation258').click(function(){
	    	OpenLightbox258(); 
 	    }); 
	    jQuery('#ddlGroupSize258').change(function(){ 
	    	OpenLightbox258(); 
 	    }); 
	    jQuery('#ddlStartDate258').change(function(){ 
	    	OpenLightbox258(); 
 	    }); 
	    jQuery('#ddlStartTime258').change(function(){ 
	    	if (jQuery('#ddlStartTime258').val() == '00:00') {OpenLightbox258();} 
 	    }); 
	    jQuery('#ExtLink').remove(); 
       jQuery.receiveMessage(function (e) { 
           if (e.data === 'close') { 
               jQuery('#reservationWizard258').dialog('close'); 
           } 
       }, 'https://keg.york.sitebenefits.com'); 
	    jQuery(window).resize(function() { 
	        updateIframe(); 
       }); 
} 
//http:'www.nczonline.net/blog/2009/07/28/the-best-way-to-load-external-javascript/ 
function LoadScript258(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'){ 
   LoadScript258('https://keg.york.sitebenefits.com/js/jquery.min.js', function(){
       jQuery('document').ready(function (){ 
           if (typeof jQuery.ui == 'undefined'){ 
               LoadScript258('https://keg.york.sitebenefits.com/js/jquery-ui.min.js', function(){ 
                   if (typeof jQuery.postmessage == 'undefined'){ 
                       LoadScript258('https://keg.york.sitebenefits.com/js/jquery.ba-postmessage.js', function(){ 
                           Events258(); 
                       }); 
                   }else{ 
                       Events258(); 
                   }; 
               }); 
           }; 
       }); 
   }); 
 }else{ 
   if (typeof jQuery.ui == 'undefined'){ 
       if(jQuery.fn.jquery.split('.').map(function(i){return('0'+i).slice(-2)}).join('.') > '01.08.03'){ 
           LoadScript258('https://keg.york.sitebenefits.com/js/jquery-ui.min.js', function(){  
               if (typeof jQuery.postmessage == 'undefined'){  
                   LoadScript258('https://keg.york.sitebenefits.com/js/jquery.ba-postmessage.js', function(){  
                       Events258();  
                   });  
               }else{  
                   Events258();  
               }; 
           });  
       } else { 
           LoadScript258('https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js', function(){ 
               if (typeof jQuery.postmessage == 'undefined'){  
                   LoadScript258('https://keg.york.sitebenefits.com/js/jquery.ba-postmessage.js', function(){  
                       Events258();  
                   });  
               }else{  
                   Events258();  
               }; 
           });  
       }; 
   }else{ 
       if (typeof jQuery.postmessage == 'undefined'){ 
           LoadScript258('https://keg.york.sitebenefits.com/js/jquery.ba-postmessage.js', function(){ 
               Events258(); 
           }); 
       }else{ 
           Events258(); 
       }; 
   }; 
 };
