// render dynamic content
jQuery(document).ready(function () {
  // replace static hours with dynamic hours
  jQuery('.hours_info.partial').replaceWith('<div class=\"teaser\">\n  Open 11:00AM - 10:00PM today.<br />\n  \n    (No delivery today.)<br />\n  \n  <a href=\"#\" id=\"hours_info_show\" class=\"small button\">Show full schedule.<\/a>\n  <a href=\"#\" id=\"hours_info_hide\" class=\"small button hidden\">Hide full schedule.<\/a>\n<\/div>\n<div class=\"hidden\">\n  <div class=\"hours_info partial\">\n  <h3 class=\"restaurant_hours_title\">Pickup Hours<\/h3>\n  <ol class=\"hours_list\">\n    \n      <li>\n        <span class=\"days\">\n          Sun-Thu: \n        <\/span>\n        <span class=\"times\">\n          11:00AM - 10:00PM\n        <\/span>\n      <\/li>\n    \n      <li>\n        <span class=\"days\">\n          Fri-Sat: \n        <\/span>\n        <span class=\"times\">\n          11:00AM - 11:00PM\n        <\/span>\n      <\/li>\n    \n  <\/ol>\n\n\n    <h3 class=\"restaurant_hours_title\">Delivery Hours<\/h3>\n      <ol class=\"hours_list\">\n        \n          <li>\n            <span class=\"days\">\n              Sun: \n            <\/span>\n            <span class=\"times\">\n              Closed\n            <\/span>              \n          <\/li>  \n        \n          <li>\n            <span class=\"days\">\n              Mon-Fri: \n            <\/span>\n            <span class=\"times\">\n              10:30AM -  9:00PM\n            <\/span>              \n          <\/li>  \n        \n          <li>\n            <span class=\"days\">\n              Sat: \n            <\/span>\n            <span class=\"times\">\n              noon -  9:00PM\n            <\/span>              \n          <\/li>  \n        \n      <\/ol>\n\n<\/div>\n\n<\/div>\n');
  // prepend restaurant closed message (if applicable) before restaurant header
  jQuery('.header').before('\n  \n    <div id=\"restaurant_closed\" class=\"error block\">\n      Los Gallos is currently closed for online ordering. \n      \n        The restaurant will open on Sunday \n        at 11:00 AM. \n        If you place an order now, it will not be processed until the restaurant & delivery service opens. \n      \n    <\/div>\n  \n\n\n\n');
  // replace placeholder #account_links with real account links
  jQuery('#account_links').replaceWith('<div id=\"account_links\">\n  \n    \n      <a href=\"https://api.fooala.com/cbsecure/qurble/account/new?origin=order.qurble.com\">Sign Up<\/a> |\n      <a href=\"https://api.fooala.com/cbsecure/qurble/signin?origin=order.qurble.com&amp;return_to=http%3A%2F%2Forder.qurble.com%2Frestaurants%2F11-Los-Gallos\">Sign In<\/a>\n    \n  \n<\/div>\n');
  // replace placeholder .cart with real cart
  jQuery('.cart').replaceWith('\n<div class=\"cart\">\n	<h3>Order Contents<\/h3>\n	<ul id=\"items_list\" class=\"items\">\n	  <!-- placeholder for cart items added by client side JS -->\n	<\/ul>\n	<ul id=\"errors_list\" class=\"errors\">\n	  <li class=\"count message\">There are currently no items. Please add some!<\/li>\n	  <!-- also a placeholder for other error messages added by client side JS -->\n	<\/ul>\n\n  <div id=\"address_prompt\" class=\"hidden\" onclick=\"$j.facebox($j(\'.map\').cleverShow()); return false;\">\n    Good choice! Please <a href=\"#map\" rel=\"facebox\">tell us your address<\/a> \n    so we can make sure this restaurant delivers to you.\n  <\/div>\n  \n  \n  <div class=\"order_types\">\n    <p>Is this order for delivery or pickup?<\/p>\n    \n    \n      <div>\n        <label for=\"order_type_delivery\">\n          <input checked=\"checked\" id=\"order_type_delivery\" name=\"order_type\" type=\"radio\" value=\"delivery\" />\n          Delivery\n          \n            <span style=\"color: red;\">\n            \n                resumes \n                \n                  Monday \n                \n                at 10:30 AM.\n            \n            <\/span>\n          \n        <\/label>\n      <\/div>    \n    \n\n    \n      <div>\n        <label for=\"order_type_takeout\">\n          <input disabled=\"disabled\" id=\"order_type_takeout\" name=\"order_type\" type=\"radio\" value=\"takeout\" />\n          <span style=\"color: gray; font-size: 11px;\">Pickup <span style=\"font-size: 10px;\">(not supported by restaurant)<\/span><\/span>\n        <\/label>\n      <\/div>\n    \n  <\/div>\n  \n	<div class=\"buttons\">\n    <a href=\"https://api.fooala.com/cbsecure/qurble/orders/new?cart_uuid=879a5334-a182-4b01-85fd-3131495bd78a&amp;coupon_code=&amp;order_type=delivery&amp;origin=order.qurble.com\" class=\"check_out disabled\" onclick=\"return fc_check_minimum();\">Check Out<\/a>\n		<span class=\"cancel\">\n		  <span class=\"separator\">or<\/span>\n		  <a href=\"/restaurants/11-Los-Gallos?cart_uuid=879a5334-a182-4b01-85fd-3131495bd78a&amp;empty_cart=1\" class=\"cancel\">start over<\/a>\n		<\/span>\n	<\/div>\n	<br>\n<\/div>\n');
});

fooala_restaurant = {"next_opening_time":"2010-09-05T11:00:00-04:00","network_url":"http://fooala.net/11-Los-Gallos","name":"Los Gallos","fax_number":"330-965-1308","city":"Boardman","address1":"685 Boardman-Canfield Rd.","force_closed":false,"canonical_url":"http://cb.fooala.com/restaurants/11-Los-Gallos","postal_code":"44512","address2":null,"next_closing_time_string":"closes next at 2:50 AM on Sunday","seo_title":"Los Gallos Menu (Boardman, OH)","to_param":"11-Los-Gallos","open_for_delivery":false,"timezone":"Eastern Time (US & Canada)","next_opening_time_string":"opens next at 11:00 AM on Sunday","seo_description":"View the menu and order food online from Los Gallos in Boardman, OH","phone_number":"3309651307","country":"US","open_today_string":"Open 11:00AM - 10:00PM today.","uuid":"e7fb6ab5-0beb-4dac-84da-613a3f61605b","lng":"-80.681137","id":11,"availability_string":"Closed. Opens next at 11:00 am on sunday.","seo_meta_tags":"      <meta name=\"keywords\" content=\"Los Gallos,Boardman,OH,restaurants,menus,delivery,takeout,pickup,order online\"/>\n      <meta name=\"description\" content=\"View the menu and order food online from Los Gallos in Boardman, OH\"/>\n","description":null,"delivery_today_string":"(No delivery today.)","open":false,"capabilities":{"order_online":true,"visual_menu":false},"open_graph_meta_tags":"      <meta property=\"fb:app_id\" content=\"150648304963882\"/>\n      <meta property=\"og:title\" content=\"Los Gallos\"/>\n      <meta property=\"og:type\" content=\"restaurant\"/>\n      <meta property=\"og:url\" content=\"http://fooala.net/11-Los-Gallos\"/>\n      <meta property=\"og:image\" content=\"http://e1h22.simplecdn.net/fooalacobrands/collegebite/images/logo-beta-390x390.png\"/>\n      <meta property=\"og:site_name\" content=\"CollegeBite\"/>\n      <meta property=\"og:description\" content=\"View the menu and order food online from Los Gallos in Boardman, OH\"/>\n      <meta property=\"og:phone_number\" content=\"330-965-1307\"/>\n      <meta property=\"og:fax_number\" content=\"330-965-1308\"/>\n      <meta property=\"og:latitude\" content=\"41.023842\"/>\n      <meta property=\"og:longitude\" content=\"-80.681137\"/>\n      <meta property=\"og:street-address\" content=\"685 Boardman-Canfield Rd.\"/>\n      <meta property=\"og:locality\" content=\"Boardman\"/>\n      <meta property=\"og:region\" content=\"OH\"/>\n      <meta property=\"og:postal-code\" content=\"44512\"/>\n      <meta property=\"og:country-name\" content=\"US\"/>\n","aliases":null,"next_closing_time":"2010-09-05T02:50:40-04:00","stringed_address":"685 Boardman-Canfield Rd., Boardman, OH, 44512","lat":"41.023842","street_address":"685 Boardman-Canfield Rd.","state":"OH","email":"serafinallc@hotmail.com"};

// dynamic hours show/hide stuff
$j(document).ready(function() {
  $j('#hours_info_show').click(function() {
    $j('#hours_info_hide').show();
    $j('#hours_info_show').hide();
    $j('.hours_info.partial').parent().slideDown();
    return false;
  });
  $j('#hours_info_hide').click(function() {
    $j('#hours_info_hide').hide();
    $j('#hours_info_show').show();
    $j('.hours_info.partial').parent().slideUp();
    return false;
  });
});


restaurant_id = '11';
var restaurant_force_closed = 'false';

$j(document).ready(function() {
  $j('.in_cart').html('<img src="/images/icons/16-circle-green-check.png" title="Item appears in your order">');
    
});
