
jQuery.ajaxSetup({ type:"POST", dataType:'json' });

var heap = {
  SUCCESS: 1,
  FAILURE: 0
};

heap.form = {};
heap.submit = {};
heap.media = {};
heap.media.sizes = {};

heap.api = {};
heap.config = { language:'en' };
heap.labels = {};
heap.urlmap = {};


heap.config['deploymode'] = 'prod';
heap.config['heap_location'] = '/heap';
heap.config['http_root'] = 'http://pyxis-tech.com';
heap.config['request_uri'] = '/cache/heap.en.js';
heap.config['script_url'] = '';
heap.config['upload_maxfiles'] = 50;
heap.config['upload_maxsize'] = '300MB';
heap.config['default_media_source'] = 'heap';
heap.config['default_media_store'] = 'LOCAL_DOCUMENTS';
heap.config['version'] = '1.5.44040';
heap.config['last_build'] = '2009-06-26';
heap.config['thread_max_depth'] = 3;
heap.config['atom_types'] = {'produit':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'url_produit':{'type':'text','label':{'fr':'URL produit','en':'Product URL'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'client':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'page':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'bureau':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'quebec':{'type':'toggle','label':{'fr':'Québec','en':'Quebec'}},'carte':{'type':'text','label':{'fr':'Carte','en':'Map'}},'itineraire':{'type':'text','label':{'fr':'Itinéraire','en':'Directions'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'formation':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'presse':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'type_article':{'type':'select','label':{'fr':"Type d\'article",'en':'Article type'},'options':[{'label':{'fr':'Communiqués','en':'Press releases'},'value':'communique'},{'label':{'fr':'Coupure de presse','en':'Press clips'},'value':'coupure'}]},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'poste':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'type_poste':{'type':'select','label':{'fr':'Type de poste','en':'Job type'},'options':[{'label':{'fr':'Courant','en':'Current'},'value':'courant'},{'label':{'fr':'Permanent','en':'Permanent'},'value':'permanent'}]},'id_taleo':{'type':'text','label':{'fr':'ID Taleo','en':'Taleo ID'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'cours':{'meta_fields':{'id_cours':{'type':'slug_selector','required':'1','classes':['HEAPM_Atom'],'slug_selector_params':{'HEAPM_Atom':{'type':'formation','status':200}},'label':{'fr':'Formation','en':'Training'}},'id_instructeur':{'type':'slug_selector','required':'1','classes':['HEAPM_User'],'slug_selector_params':{'HEAPM_User':{'role':['membre','invite'],'status':100}},'label':{'fr':'Instructeur','en':'Instructor'}},'prix':{'type':'text','label':{'fr':'Prix','en':'Price'}},'complet':{'type':'toggle','label':{'fr':'Complet','en':'Full'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'media':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'type_media':{'type':'select','label':{'fr':'Type de média','en':'Media type'},'options':[{'label':'Podcast','value':'podcast'},{'label':{'fr':'Galerie','en':'Gallery'},'value':'galerie'},{'label':{'fr':'Vidéo','en':'Video'},'value':'video'}]},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}}};
heap.config['channel_types'] = {'normal':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'offre':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'entreprise':{'meta_fields':{'url_token_fr':{'type':'text','label':{'fr':'URL key FR','en':'URL key FR'}},'url_token_en':{'type':'text','label':{'fr':'URL key EN','en':'URL key EN'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}},'partenaire':{'meta_fields':{'username':{'type':'text','label':{'fr':"Nom d\'usager",'en':'Username'}},'password':{'type':'text','label':{'fr':'Mot de passe','en':'Password'}},'layout':{'label':'Grid','type':'custom','template':'ui/meta_layoutselector.html'}}}};
heap.config['reaction_types'] = ['comment','vote','answer_image','answer_text','answer_video'];
heap.config['user_meta'] = {'url_token':{'type':'text','label':{'fr':'URL key','en':'URL key'}},'margin_top':{'break':'1','type':'text','label':'CSS margin-top'},'margin_left':{'type':'text','label':'CSS margin-left'},'horizontal_align':{'type':'select','label':'CSS horizontal-align','options':[{'label':'left','value':'left'},{'label':'center','value':'center'},{'label':'right','value':'right'}]},'vertical_align':{'type':'select','label':'CSS vertical-align','options':[{'label':'top','value':'top'},{'label':'center','value':'center'},{'label':'bottom','value':'bottom'}]},'quote_fr':{'type':'textarea','mce':'','label':{'fr':'Citation FR','en':'Quote FR'}},'quote_en':{'type':'textarea','mce':'','label':{'fr':'Citation EN','en':'Quote EN'}},'twitter':{'type':'text','label':'Twitter'},'facebook':{'type':'text','label':'Facebook'},'linkedin':{'type':'text','label':'LinkedIn'},'youtube':{'type':'text','label':'Youtube'},'picasa':{'type':'text','label':'Picasa'},'flickr':{'type':'text','label':'Flick'},'digg':{'type':'text','label':'digg'},'delicious':{'type':'text','label':'delicio.us'},'github':{'type':'text','label':'GitHub'},'mandat_1':{'type':'text','label':'Mandat 1 (cie|fr|en)'},'mandat_2':{'type':'text','label':'Mandat 2 (cie|fr|en)'},'mandat_3':{'type':'text','label':'Mandat 3 (cie|fr|en)'},'mandat_4':{'type':'text','label':'Mandat 4 (cie|fr|en)'},'RSS':{'type':'text','label':'Blogue'}};
heap.config['reaction_meta'] = [];
heap.config['media_meta'] = [];
heap.config['static_tag_prefixes'] = ['category','client','cours','equipe','expertise','langage','langue','localisation','partenaire','produit','related','service','tag','urlmap'];
heap.config['heap_logo'] = '/heap/static/heap/images/heap.png';
heap.config['heap_logo_mini'] = '/heap/static/heap/images/heap-mini.png';
heap.config['heap_module_location'] = '';
heap.config['current_language'] = 'en';
heap.config['plugins_location'] = '/heap_plugins';
heap.config['languages'] = ['fr','en'];
heap.config['now_datetime'] = '2012-02-20 16:00:07';
heap.config['now_timestamp'] = 1329753607;
heap.config['now_date'] = '2012-02-20';
heap.config['now_time'] = '16:00:07';
heap.config['mce'] = '';
heap.config['panels_visibility'] = {'HEAPM_Atom':{'edit':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'},'add':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'}},'HEAPM_Channel':{'edit':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'},'add':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'}},'HEAPM_Reaction':{'edit':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'},'add':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'}},'HEAPM_Media':{'edit':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'},'add':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'}},'HEAPM_User':{'edit':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'},'add':{'basics':'1','custom':'1','meta':'1','text':'1','tags':'1','others':'1','seo':'','documents':'1'}}};
heap.config['slug_selector_classes'] = {'HEAPM_Atom':{'api_class':'atoms','token':'atom'},'HEAPM_Channel':{'api_class':'channels','token':'channel'},'HEAPM_Reaction':{'api_class':'reactions','token':'reaction'},'HEAPM_User':{'api_class':'users','token':'user','show_field':'username'}};
heap.config['js_libs'] = [];
heap.config['cookie_domain'] = '';
heap.config['google_map_api_key'] = 'ABQIAAAAcB8Omhjci6D6ihbvrDd3hRQhpMglqdJiSKv6LiYTvx9dZcZ8DBSRHdwhwIYWqHKvHCm371WgJQBAjg';
heap.config['heap_title'] = 'PYXIS';

heap.urlmap['root'] = "";
heap.urlmap['app_admin'] = "/heap";
heap.urlmap['app_docs'] = "/docs";
heap.urlmap['app_reactions'] = "/reactions";
heap.urlmap['tools_jsconfig'] = "/tools/jslib.js";
heap.urlmap['api_amf'] = "/heap/amf";
heap.urlmap['api_json'] = "/heap/json";
heap.urlmap['app_admin_static'] = "/heap/static/heap";
heap.urlmap['app_lang'] = "/heap/language";
heap.urlmap['app_lang_fr'] = "/heap/language/fr";
heap.urlmap['app_lang_en'] = "/heap/language/en";
heap.urlmap['app_doc_api'] = "/heap/apidoc";
heap.urlmap['app_doc_env'] = "/heap/environment";
heap.urlmap['app_admin_tagger'] = "/heap/batchTagger";
heap.urlmap['app_admin_login'] = "/heap/login";
heap.urlmap['app_admin_logout'] = "/heap/logout";
heap.urlmap['app_admin_atoms'] = "/heap/atoms";
heap.urlmap['app_admin_channels'] = "/heap/channels";
heap.urlmap['app_admin_reactions'] = "/heap/reactions";
heap.urlmap['app_admin_docs'] = "/heap/docs";
heap.urlmap['app_admin_users'] = "/heap/users";
heap.urlmap['app_admin_redirects'] = "/heap/redirects";
heap.urlmap['app_admin_tags'] = "/heap/tags";
heap.urlmap['app_admin_queue'] = "/heap/queue";
heap.urlmap['app_admin_atoms_drafts'] = "/heap/atoms/drafts";
heap.urlmap['app_admin_atoms_edit'] = "/heap/atoms/edit";
heap.urlmap['app_admin_channels_assign'] = "/heap/channels/assign";
heap.urlmap['app_admin_channels_edit'] = "/heap/channels/edit";
heap.urlmap['app_admin_docs_edit'] = "/heap/docs/edit";
heap.urlmap['app_admin_docs_list'] = "/heap/docs";
heap.urlmap['app_admin_docs_sizes'] = "/heap/docs/sizes";
heap.urlmap['app_admin_docs_modify'] = "/heap/docs/modify";
heap.urlmap['app_admin_docs_subtitles'] = "/heap/docs/subtitles";
heap.urlmap['app_admin_docs_upload'] = "/heap/docs/upload";
heap.urlmap['app_admin_docs_upload_meta'] = "/heap/docs/uploadMeta";
heap.urlmap['app_admin_docs_upload_tags'] = "/heap/docs/uploadTags";
heap.urlmap['app_admin_redirects_edit'] = "/heap/redirects/edit";
heap.urlmap['app_admin_reactions_edit'] = "/heap/reactions/edit";
heap.urlmap['app_admin_users_edit'] = "/heap/users/edit";
heap.urlmap['app_admin_queue_activejobs'] = "/heap/queue/active_jobs";
heap.urlmap['app_admin_tags_list'] = "/heap/tags/list_all";
heap.urlmap['app_admin_lm'] = "/heap/layoutmanager";
heap.urlmap['app_admin_lm_layouts'] = "/heap/layoutmanager/layouts";
heap.urlmap['app_admin_lm_layouts_edit'] = "/heap/layoutmanager/layouts/edit";
heap.urlmap['app_admin_lm_blocks'] = "/heap/layoutmanager/blocks";
heap.urlmap['app_admin_lm_blocks_edit'] = "/heap/layoutmanager/blocks/edit";
heap.urlmap['app_admin_menus'] = "/heap/menus";
heap.urlmap['app_admin_menus_edit'] = "/heap/menus/edit";
heap.urlmap['static'] = "/pyxis/static";
heap.urlmap['heap_static'] = "/heap/static";
heap.urlmap['fr'] = "/fr";
heap.urlmap['en'] = "/en";
heap.urlmap['blog'] = "http://pyxis-tech.com/blog/";
heap.urlmap['blog_nouvelles'] = "http://pyxis-tech.com/blog/category/nouvelles/";
heap.urlmap['clients'] = "http://pyxis-tech.com/en/our-clients";
heap.urlmap['equipe'] = "http://pyxis-tech.com/en/our-team";
heap.urlmap['offre'] = "http://pyxis-tech.com/en/our-offer";
heap.urlmap['contact'] = "http://pyxis-tech.com/en/contact";
heap.urlmap['presse'] = "http://pyxis-tech.com/en/press";
heap.urlmap['médias'] = "http://pyxis-tech.com/en/media";
heap.urlmap['formation'] = "http://pyxis-tech.com/en/our-offer/agile-training";
heap.urlmap['recherche'] = "http://pyxis-tech.com/en/search";
heap.urlmap['index'] = "/en/home";
heap.urlmap['que_fait_pyxis'] = "/en/our-offer";
heap.urlmap['calendrier'] = "/en/calendar";
heap.urlmap['pyxis_developpe_agile'] = "/en/entreprise/pyxis-develops-_agilely";
heap.urlmap['js_heap'] = "/cache/heap.en.js";

heap.labels['default'] = [];
heap.labels['default']['menus_menu'] = "Navigation";
heap.labels['default']['manage_menus'] = "Manage navigation";
heap.labels['default']['m_structure'] = "Structure";
heap.labels['default']['add_menu'] = "Add navigation";
heap.labels['default']['edit_menu'] = "Edit navigation";
heap.labels['default']['layoutmanager'] = "Grid";
heap.labels['default']['menu_lm'] = "Grid";
heap.labels['default']['menu_lm_layouts'] = "Grids";
heap.labels['default']['menu_lm_blocks'] = "Blocks";
heap.labels['default']['html_body'] = "HTML Body";
heap.labels['default']['html_body_file'] = "HTML File";
heap.labels['default']['layout'] = "grid";
heap.labels['default']['manage_layouts'] = "Manage grids";
heap.labels['default']['add_layout'] = "Add grid";
heap.labels['default']['edit_layout'] = "Edit grid";
heap.labels['default']['block'] = "block";
heap.labels['default']['manage_blocks'] = "Manage blocks";
heap.labels['default']['add_block'] = "Add block";
heap.labels['default']['edit_block'] = "Edit block";
heap.labels['default']['date_F01'] = "January";
heap.labels['default']['date_F02'] = "February";
heap.labels['default']['date_F03'] = "March";
heap.labels['default']['date_F04'] = "April";
heap.labels['default']['date_F05'] = "May";
heap.labels['default']['date_F06'] = "June";
heap.labels['default']['date_F07'] = "July";
heap.labels['default']['date_F08'] = "August";
heap.labels['default']['date_F09'] = "September";
heap.labels['default']['date_F10'] = "October";
heap.labels['default']['date_F11'] = "November";
heap.labels['default']['date_F12'] = "December";
heap.labels['default']['date_M01'] = "Jan";
heap.labels['default']['date_M02'] = "Feb";
heap.labels['default']['date_M03'] = "Mar";
heap.labels['default']['date_M04'] = "Apr";
heap.labels['default']['date_M05'] = "May";
heap.labels['default']['date_M06'] = "Jun";
heap.labels['default']['date_M07'] = "Jul";
heap.labels['default']['date_M08'] = "Aug";
heap.labels['default']['date_M09'] = "Sep";
heap.labels['default']['date_M10'] = "Oct";
heap.labels['default']['date_M11'] = "Nov";
heap.labels['default']['date_M12'] = "Dec";
heap.labels['default']['date_l0'] = "Sunday";
heap.labels['default']['date_l1'] = "Monday";
heap.labels['default']['date_l2'] = "Tuesday";
heap.labels['default']['date_l3'] = "Wednesday";
heap.labels['default']['date_l4'] = "Thursday";
heap.labels['default']['date_l5'] = "Friday";
heap.labels['default']['date_l6'] = "Saturday";
heap.labels['default']['date_S01'] = "st";
heap.labels['default']['date_S02'] = "nd";
heap.labels['default']['date_S03'] = "rd";
heap.labels['default']['date_S04'] = "th";
heap.labels['default']['date_S05'] = "th";
heap.labels['default']['date_S06'] = "th";
heap.labels['default']['date_S07'] = "th";
heap.labels['default']['date_S08'] = "th";
heap.labels['default']['date_S09'] = "th";
heap.labels['default']['date_S10'] = "th";
heap.labels['default']['date_S11'] = "th";
heap.labels['default']['date_S12'] = "th";
heap.labels['default']['date_S13'] = "th";
heap.labels['default']['date_S14'] = "th";
heap.labels['default']['date_S15'] = "th";
heap.labels['default']['date_S16'] = "th";
heap.labels['default']['date_S17'] = "th";
heap.labels['default']['date_S18'] = "th";
heap.labels['default']['date_S19'] = "th";
heap.labels['default']['date_S20'] = "th";
heap.labels['default']['date_S21'] = "st";
heap.labels['default']['date_S22'] = "nd";
heap.labels['default']['date_S23'] = "rd";
heap.labels['default']['date_S24'] = "th";
heap.labels['default']['date_S25'] = "th";
heap.labels['default']['date_S26'] = "th";
heap.labels['default']['date_S27'] = "th";
heap.labels['default']['date_S28'] = "th";
heap.labels['default']['date_S29'] = "th";
heap.labels['default']['date_S30'] = "th";
heap.labels['default']['date_S31'] = "st";
heap.labels['default']['other_language'] = "Français";
heap.labels['default']['index'] = "Home";
heap.labels['default']['search'] = "Search";
heap.labels['default']['news'] = "News";
heap.labels['default']['dernier-blogs'] = "Latest Blogs";
heap.labels['default']['2points'] = ": ";
heap.labels['default']['more-filters'] = "view all";
heap.labels['default']['less-filters'] = "view less";
heap.labels['default']['index_notre_equipe'] = "Our Team";
heap.labels['default']['index_notre_offre'] = "Our Services";
heap.labels['default']['index_entreprise'] = "The Company";
heap.labels['default']['index_nos_clients'] = "Our Clients";
heap.labels['default']['no-results'] = "There are no results for the search parameters entered";
heap.labels['default']['ie6-msg'] = "For a complete experience of this Website, you should update your browser.";
heap.labels['default']['home-seo-desc'] = "Pyxis Technologies offers Agile training, coaching, and software development services in Quebec (Montréal and Québec) and in Switzerland (Geneva).";
heap.labels['default']['equipe_tag_localisation'] = "Locations";
heap.labels['default']['equipe_tag_service'] = "Services";
heap.labels['default']['equipe_tag_expertise'] = "Fields of Expertise";
heap.labels['default']['equipe_tag_langage'] = "Programming Languages";
heap.labels['default']['equipe_tag_produit'] = "Products";
heap.labels['default']['equipe_tag_equipe'] = "Teams";
heap.labels['default']['equipe_biographie'] = "Biography";
heap.labels['default']['equipe_of_1'] = "";
heap.labels['default']['equipe_of_2'] = "'s team";
heap.labels['default']['equipe_relie'] = "Pyxissians related to ";
heap.labels['default']['equipe_coaches'] = "Team of Coaches";
heap.labels['default']['equipe_formateurs'] = "Team of Trainers";
heap.labels['default']['equipe_developpeurs'] = "Team of Developers";
heap.labels['default']['equipe_produits'] = "Product Team";
heap.labels['default']['equipe_special'] = "Team members";
heap.labels['default']['pyxissiens_all'] = "Team of Pyxis";
heap.labels['default']['mandates'] = "Projects";
heap.labels['default']['all-pyxissians'] = "All Pyxissians";
heap.labels['default']['discover-the-pyxissians'] = "Discover the Pyxissians";
heap.labels['default']['profil_tag_service'] = "Functions";
heap.labels['default']['profil_tag_expertise'] = "Fields of Expertise";
heap.labels['default']['profil_tag_langage'] = "Programming Languages";
heap.labels['default']['profil_tag_produit'] = "Products";
heap.labels['default']['profil_tag_equipe'] = "Teams";
heap.labels['default']['profil_tag_blog'] = "Blog";
heap.labels['default']['interets_title'] = "Interests";
heap.labels['default']['currently-looking-for'] = "Pyxis is currently looking to fill the following positions:";
heap.labels['default']['always-looking-for'] = "Pyxis is always looking for talented IT specialists:";
heap.labels['default']['carriere-note-titre'] = "Note";
heap.labels['default']['carriere-note-texte'] = "We are only contacting candidates invited to sit for selection tests";
heap.labels['default']['modify-profile'] = "already applied? modify your profile.";
heap.labels['default']['carriere_futurs_collegues'] = "Your future colleagues";
heap.labels['default']['clients_view_all'] = "View our client list";
heap.labels['default']['clients_all'] = "All of our clients";
heap.labels['default']['some-clients'] = "Here are a few of our clients";
heap.labels['default']['contact-subtitle'] = "Follow Us in the World of the Internet";
heap.labels['default']['contact-us'] = "Contact Us";
heap.labels['default']['map'] = "map";
heap.labels['default']['itinerary'] = "itinerary";
heap.labels['default']['medias'] = "Media";
heap.labels['default']['media-length'] = "length";
heap.labels['default']['photos'] = "[en] photos";
heap.labels['default']['media_posted_podcast'] = "podcast added on";
heap.labels['default']['media_posted_galerie'] = "gallery added on";
heap.labels['default']['media_posted_video'] = "video added on";
heap.labels['default']['medias-right-column-title'] = "Filter Media";
heap.labels['default']['media_type_media_podcast'] = "Podcasts";
heap.labels['default']['media_type_media_galerie'] = "Galleries";
heap.labels['default']['media_type_media_video'] = "Videos";
heap.labels['default']['media_type_media'] = "media types";
heap.labels['default']['media-all'] = "All Media";
heap.labels['default']['media_date_format'] = "%F %j%S %Y";
heap.labels['default']['cours_offerts'] = "Course Curriculum";
heap.labels['default']['cours_plan_cours'] = "Download the syllabus";
heap.labels['default']['formation_calendrier'] = "Course Calendar";
heap.labels['default']['next-trainings'] = "Upcoming Courses";
heap.labels['default']['formation_inscription'] = "Registration";
heap.labels['default']['cours_selectionne'] = "Selected Course";
heap.labels['default']['formation_inscription_afi'] = "Registration is made via AFI Expertise’s Website.";
heap.labels['default']['besoin_information'] = "Need more information? Contact us to learn more.";
heap.labels['default']['sign_up_online'] = "Register<br />online";
heap.labels['default']['filters'] = "Filters:";
heap.labels['default']['course_type'] = "Course Type";
heap.labels['default']['course_location'] = "Course Location";
heap.labels['default']['course_full'] = "Full";
heap.labels['default']['target_audience'] = "Target Audience";
heap.labels['default']['erase'] = "Clear";
heap.labels['default']['sujet_formation_prive'] = "Ask for a private training course";
heap.labels['default']['presse-right-column-title'] = "Filter the articles";
heap.labels['default']['presse-all'] = "All articles";
heap.labels['default']['presse_telecharger_coupure'] = "Download this article";
heap.labels['default']['presse_telecharger_communique'] = "Download this news release";
heap.labels['default']['presse_paru_le'] = "published on ";
heap.labels['default']['presse_date_format'] = "%F %j%S %Y";
heap.labels['default']['presse_type_article'] = "article type";
heap.labels['default']['presse_type_article_coupure'] = "Article";
heap.labels['default']['presse_type_article_communique'] = "News Release";
heap.labels['default']['presse_posted_coupure'] = "Article published on";
heap.labels['default']['presse_posted_communique'] = "News release published on";
heap.labels['default']['presse_filesize_ko'] = "K";
heap.labels['default']['previous'] = "previous";
heap.labels['default']['next'] = "next";
heap.labels['default']['recherche_intro'] = "Search results";
heap.labels['default']['recherche_intro2'] = "for";
heap.labels['default']['recherche_aucun_resultat'] = "No results found";
heap.labels['default']['recherche_pyxissiens'] = "Pyxissians";
heap.labels['default']['recherche_pyxissiens_plus'] = "more results for Pyxissians";
heap.labels['default']['recherche_contenu'] = "Site Content";
heap.labels['default']['recherche_contenu-du-site'] = "Site Content";
heap.labels['default']['recherche_contenu_plus'] = "more results for site content";
heap.labels['default']['recherche_carriere'] = "Career";
heap.labels['default']['recherche_carriere_plus'] = "more results for careers";
heap.labels['default']['recherche_formation'] = "Training Sessions";
heap.labels['default']['recherche_formation_plus'] = "more results for training sessions";
heap.labels['default']['recherche_presse'] = "Press";
heap.labels['default']['recherche_presse_plus'] = "more results for press";
heap.labels['default']['recherche_media'] = "Media";
heap.labels['default']['recherche_media_plus'] = "more results for media";
heap.labels['default']['recherche_retour_resultats'] = "Back to search results";
heap.labels['default']['error404_title'] = "Four-Oh-Four";
heap.labels['default']['error500_title'] = "Five-Oh-Oh";
heap.labels['default']['error_body-bold'] = "Not the page you were looking for?";
heap.labels['default']['error-1'] = "We're as bumfuzzled as you are!";
heap.labels['default']['error-2'] = "Try starting from our";
heap.labels['default']['error-link'] = "home page";
heap.labels['default']['error-3'] = "you might have better luck finding what you want!";
heap.labels['default']['heap_url_map_equipe'] = "/en/our-team";

heap.media.sizes['square'] = new Object();
heap.media.sizes['square']['width'] = 100;
heap.media.sizes['square']['height'] = 100;
heap.media.sizes['square']['mode'] = 'crop';
heap.media.sizes['square']['crop'] = 'center';
heap.media.sizes['large'] = new Object();
heap.media.sizes['large']['width'] = 612;
heap.media.sizes['large']['height'] = 395;
heap.media.sizes['large']['mode'] = 'resize-crop';
heap.media.sizes['large']['dimension'] = 'min';
heap.media.sizes['ref'] = new Object();
heap.media.sizes['ref']['width'] = 400;
heap.media.sizes['ref']['height'] = 400;
heap.media.sizes['ref']['mode'] = 'resize';
heap.media.sizes['ref']['dimension'] = 'max';
heap.media.sizes['member'] = new Object();
heap.media.sizes['member']['width'] = 140;
heap.media.sizes['member']['height'] = 94;
heap.media.sizes['member']['mode'] = 'resize-crop';
heap.media.sizes['member']['crop'] = 'center';
heap.media.sizes['member']['dimension'] = 'min';
heap.media.sizes['client'] = new Object();
heap.media.sizes['client']['width'] = 120;
heap.media.sizes['client']['height'] = 100;
heap.media.sizes['client']['mode'] = 'resize-crop';
heap.media.sizes['client']['crop'] = 'center';
heap.media.sizes['client']['dimension'] = 'min';
heap.media.sizes['small'] = new Object();
heap.media.sizes['small']['width'] = 300;
heap.media.sizes['small']['height'] = 300;
heap.media.sizes['small']['mode'] = 'resize';
heap.media.sizes['small']['dimension'] = 'max';
heap.media.sizes['medium'] = new Object();
heap.media.sizes['medium']['width'] = 299;
heap.media.sizes['medium']['height'] = 226;
heap.media.sizes['medium']['mode'] = 'resize-crop';
heap.media.sizes['medium']['dimension'] = 'min';
 



heap.translate = function (token, replacements, dict)
{
  if (!dict) dict = 'default';
  if (heap.labels[dict] && heap.labels[dict][token]) {
    var out = heap.labels[dict][token];
    if (replacements) {
      if (typeof(replacements) == 'string') replacements = [ replacements ];
      var type = typeof(replacements);
      
      if (type == 'object' || type == 'array') {
        for (var key in replacements) {
          var text = replacements[key];
          out = out.replace("{"+key+"}", text);
        }
      }
    }
    return out;
  } else
    return token + '-' + heap.config['current_language'];
};

heap.api.setup = function(setupParams)
{
  var target = setupParams['object'];
  var api_url = setupParams['url'];
  var api_class = setupParams['api_class'];
  var methods = setupParams['methods'];
  
  if(!target) throw new Error("Missing target for heap.api.setup");
  if(!api_url) throw new Error("Missing api_url for heap.api.setup");
  if(!api_class) throw new Error("Missing api_class for heap.api.setup");
  if(!methods) methods = new Array();
  
  for(var m = 0; m < methods.length; m++) (function(api_method)
  {
    target[api_method] = function(callback, params)
    {
      jQuery.ajax({
        url: api_url+'/'+api_class+'/'+api_method,
        data: { parameters: JSON.stringify(params) }, 
        success: callback
      }); 
    }
  })(methods[m]);
  
  
};

/** User API **/

heap.api.users = {};
heap.api.setup({
  object: heap.api.users,
  api_class:'users',
  url: heap.urlmap.api_json,
  methods: ['load','create','erase','edit','search','isloggedin','login','logout','usernameAvailability','checkEmailAvailability']
});


heap.api.users.login = function(callback, params)
{
  params['password'] = hex_md5(params['password']);
  
  jQuery.ajax({
    url: heap.urlmap.api_json+'/'+'users'+'/'+'login',
    data: { parameters: JSON.stringify(params) }, 
    success: callback
  }); 
}

/** Atoms API **/
heap.api.atoms = {};
heap.api.setup({
  object: heap.api.atoms,
  api_class:'atoms',
  url: heap.urlmap.api_json,
  methods: ['load','create','erase','edit','search','setRating','getMetaBlock','addTags','removeTags','setFavorite']
});


/** Channels API **/
heap.api.channels = {};
heap.api.setup({
  object: heap.api.channels,
  api_class:'channels',
  url: heap.urlmap.api_json,
  methods: ['load','create','erase','edit','search','getMetaBlock','addTags','removeTags','getFeaturesParams']
});


/** Documents API **/
heap.api.media = {};
heap.api.setup({
  object: heap.api.media,
  api_class:'media',
  url: heap.urlmap.api_json,
  methods: ['load','create','erase','edit','search','addTags','removeTags', 'crop', 'setFrame', 'rotate', 'searchAndRender']
});

/** Reactions API **/
heap.api.reactions = {};
heap.api.setup({
  object: heap.api.reactions,
  api_class:'reactions',
  url: heap.urlmap.api_json,
  methods: ['load','create','erase','edit','search','moderate']
});

/** Redirects API **/
heap.api.redirects = {};
heap.api.setup({
  object: heap.api.redirects,
  api_class:'redirects',
  url: heap.urlmap.api_json,
  methods: ['load','create','erase','edit','search', 'setRating']
});


/** Tags API **/
heap.api.tags = {};
heap.api.setup({
  object: heap.api.tags,
  api_class:'tags',
  url: heap.urlmap.api_json,
  methods: ['load', 'create', 'erase', 'rename', 'merge', 'renameDictionary', 'eraseDictionary', 'search', 'searchAndRender']
});


/** Queue API **/
heap.api.queues = {};
heap.api.setup({
  object: heap.api.queues,
  api_class:'queues',
  url: heap.urlmap.api_json,
  methods: ['read', 'ls', 'count']
});




