qypeCategories = [
   {
      children : [
         {
            title : "Clubs",
            icon: ["/static/images/menu/qype/grey/nightlife.png", "/static/images/menu/qype/color/nightlife.png"],
            onclick: function(bool, cb) { toggleCategory(23, bool, cb) }
         },
         {
            title : "Music Venues",
            icon: ["/static/images/menu/qype/grey/nightlife.png", "/static/images/menu/qype/color/nightlife.png"],
            onclick: function(bool, cb) { toggleCategory(303, bool, cb) }
         },
         {
            title : "Casinos",
            icon: ["/static/images/menu/qype/grey/nightlife.png", "/static/images/menu/qype/color/nightlife.png"],
            onclick: function(bool, cb) { toggleCategory(178, bool, cb) }
         },
         {
            title : "Adult Entertainment",
            icon: ["/static/images/menu/qype/grey/nightlife.png", "/static/images/menu/qype/color/nightlife.png"],
            onclick: function(bool, cb) { toggleCategory(250, bool, cb) }
         // },
         // {
         //    title : "Others",
         //    icon: ["/static/images/menu/qype/grey/nightlife.png", "/static/images/menu/qype/color/nightlife.png"],
         //    onclick: function(bool, cb) { toggleCategory(2, bool, cb) }
         }
      ],
      title : "Nightlife"
   },
   {
      children : [
         {
            title : "Food & Drink Shops",
            icon: ["/static/images/menu/qype/grey/shopping.png", "/static/images/menu/qype/color/shopping.png"],
            onclick: function(bool, cb) { toggleCategory(350, bool, cb) }
         },
         {
            title : "Home Shopping",
            icon: ["/static/images/menu/qype/grey/shopping.png", "/static/images/menu/qype/color/shopping.png"],
            onclick: function(bool, cb) { toggleCategory(87, bool, cb) }
         },
         {
            title : "Book Shops",
            icon: ["/static/images/menu/qype/grey/shopping.png", "/static/images/menu/qype/color/shopping.png"],
            onclick: function(bool, cb) { toggleCategory(80, bool, cb) }
         },
         {
            title : "Fashion",
            icon: ["/static/images/menu/qype/grey/shopping.png", "/static/images/menu/qype/color/shopping.png"],
            onclick: function(bool, cb) { toggleCategory(28, bool, cb) }
         // },
         // {
         //    title : "Others",
         //    icon: ["/static/images/menu/qype/grey/shopping.png", "/static/images/menu/qype/color/shopping.png"],
         //    onclick: function(bool, cb) { toggleCategory(3, bool, cb) }
         }
      ],
      title : "Shopping"
   },
   {
      children : [
         {
            title : "Museums",
            icon: ["/static/images/menu/qype/grey/culture.png", "/static/images/menu/qype/color/culture.png"],
            onclick: function(bool, cb) { toggleCategory(27, bool, cb) }
         },
         {
            title : "Landmarks",
            icon: ["/static/images/menu/qype/grey/culture.png", "/static/images/menu/qype/color/culture.png"],
            onclick: function(bool, cb) { toggleCategory(30, bool, cb) }
         },
         {
            title : "Theatres",
            icon: ["/static/images/menu/qype/grey/culture.png", "/static/images/menu/qype/color/culture.png"],
            onclick: function(bool, cb) { toggleCategory(102, bool, cb) }
         },
         {
            title : "Cinemas",
            icon: ["/static/images/menu/qype/grey/culture.png", "/static/images/menu/qype/color/culture.png"],
            onclick: function(bool, cb) { toggleCategory(24, bool, cb) }
         // },
         // {
         //    title : "Others",
         //    icon: ["/static/images/menu/qype/grey/culture.png", "/static/images/menu/qype/color/culture.png"],
         //    onclick: function(bool, cb) { toggleCategory(4, bool, cb) }
         }         
      ],
      title : "Arts & Entertainment"
   },
   {
      children : [
         {
            title : "Hotels",
            icon: ["/static/images/menu/qype/grey/hotel.png", "/static/images/menu/qype/color/hotel.png"],
            onclick: function(bool, cb) { toggleCategory(69, bool, cb) }
         },
         {
            title : "Hostels",
            icon: ["/static/images/menu/qype/grey/hotel.png", "/static/images/menu/qype/color/hotel.png"],
            onclick: function(bool, cb) { toggleCategory(352, bool, cb) }
         },
         {
            title : "Camping",
            icon: ["/static/images/menu/qype/grey/hotel.png", "/static/images/menu/qype/color/hotel.png"],
            onclick: function(bool, cb) { toggleCategory(190, bool, cb) }
         },
         {
            title : "Bed & Breakfast",
            icon: ["/static/images/menu/qype/grey/hotel.png", "/static/images/menu/qype/color/hotel.png"],
            onclick: function(bool, cb) { toggleCategory(128, bool, cb) }
         // },
         // {
         //    title : "Others",
         //    icon: ["/static/images/menu/qype/grey/hotel.png", "/static/images/menu/qype/color/hotel.png"],
         //    onclick: function(bool, cb) { toggleCategory(5, bool, cb) }
         }
      ],
      title : "Hotels and Holidays"
   },
   {
      children : [
         {
            title : "Stadiums ",
            icon: ["/static/images/menu/qype/grey/sport.png", "/static/images/menu/qype/color/sport.png"],
            onclick: function(bool, cb) { toggleCategory(275, bool, cb) }
         },
         {
            title : "Dance Schools",
            icon: ["/static/images/menu/qype/grey/sport.png", "/static/images/menu/qype/color/sport.png"],
            onclick: function(bool, cb) { toggleCategory(163, bool, cb) }
         },
         {
            title : "Swimming",
            icon: ["/static/images/menu/qype/grey/sport.png", "/static/images/menu/qype/color/sport.png"],
            onclick: function(bool, cb) { toggleCategory(147, bool, cb) }
         },
         {
            title : "Sports Clubs",
            icon: ["/static/images/menu/qype/grey/sport.png", "/static/images/menu/qype/color/sport.png"],
            onclick: function(bool, cb) { toggleCategory(144, bool, cb) }
         // },
         // {
         //    title : "Others",
         //    icon: ["/static/images/menu/qype/grey/sport.png", "/static/images/menu/qype/color/sport.png"],
         //    onclick: function(bool, cb) { toggleCategory(7, bool, cb) }
         }
      ],
      title : "Sport"
   },
   {
      children : [
         {
            title : "Restaurants",
            icon: ["/static/images/menu/qype/grey/food.png", "/static/images/menu/qype/color/food.png"],
            onclick: function(bool, cb) { toggleCategory(1, bool, cb) }
         },
         {
            icon: ["/static/images/menu/qype/grey/coffee.png", "/static/images/menu/qype/color/coffee.png"],
            title : "Cafes",
            onclick: function(bool, cb) { toggleCategory(332, bool, cb) }
         },
         {
            title : "Pubs & Bars",
            icon: ["/static/images/menu/qype/grey/food.png", "/static/images/menu/qype/color/food.png"],
            onclick: function(bool, cb) { toggleCategory(609, bool, cb) }
         },
         {
            title : "Fastfood ",
            icon: ["/static/images/menu/qype/grey/food.png", "/static/images/menu/qype/color/food.png"],
            onclick: function(bool, cb) { toggleCategory(42, bool, cb) }
         }
      ],
      title : "Eating and Drinking"
   },
   {
      children : [
         {
            title : "Cars & Bikes",
            icon: ["/static/images/menu/qype/grey/transport.png", "/static/images/menu/qype/color/transport.png"],
            onclick: function(bool, cb) { toggleCategory(40, bool, cb) }
         // },
         // {
         //    title : "Others",
         //    icon: ["/static/images/menu/qype/grey/transport.png", "/static/images/menu/qype/color/transport.png"],
         //    onclick: function(bool, cb) { toggleCategory(885, bool, cb) }
         }
      ],
      title : "Transportation"
   }
];

otherCategories = [
   {
      title : "Weather",
      icon: ["/static/images/menu/other/grey/weather.png", "/static/images/menu/other/color/weather.png"],
      onclick: function(bool, cb) { MapToolkit.getMap("map").updateResource("weather", bool, cb) }
   },
   {
      title : "Routes",
      icon: ["/static/images/menu/other/grey/routes.png", "/static/images/menu/other/color/routes.png"],
      onclick: function(bool, cb) { MapToolkit.getMap("map").updateResource("bikemap", bool, cb) }
   },
   {
      title : "Wikipedia",
      showLoading: false,
      icon: ["/static/images/menu/other/grey/wikipedia.png", "/static/images/menu/other/color/wikipedia.png"],
      onclick: function(bool, cb) { MapToolkit.getMap("map").updateLayer("wikipedia", bool, cb) }
   },
   {
      title : "Panoramio",
      showLoading: false,
      icon: ["/static/images/menu/other/grey/panoramio.png", "/static/images/menu/other/color/panoramio.png"],
      onclick: function(bool, cb) { MapToolkit.getMap("map").updateLayer("panoramio", bool, cb) }
   }
];
