// Set this variable to the URL of the DePuy.com website which serves the Hat.
// NOTE: Include trailing slash.
var depuyComURL = "http://www.depuy.com/";

// Set this variable to the URL alias from the DePuy.com website
// which represents the breadcrumb for this site. E.g. if the URL looks like:
//   http://www.depuy.com/patients-and-caregivers/conditions/scoliosis
// use:
//   patients-and-caregivers/conditions/scoliosis
// NOTE: Do not include trailing slash.
var siteBreadcrumb  ="corporate-information/depuy-divisions/depuy-spine";

// ********************************************************************************************
// * DO NOT CHANGE FOLLOWING CODE!!! **********************************************************
var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };

jQuery.extend(Drupal.settings, {
    "navhat_client": {
    	"checkUrl": depuyComURL + "navhat/check",
        "menuUrl": depuyComURL + "navhat/menu",
        "getDescriptionUrl": depuyComURL + "navhat/menu/description",
        "breadcrumbPath": siteBreadcrumb,
        "cssUrl": depuyComURL + "sites/all/modules/jnj_depuy_one_navhat_server/css/navhat.css",
        "jsUrl": depuyComURL + "sites/all/modules/jnj_depuy_one_navhat_server/js/navhat.js",
		"siteName": ""
    }
});

$(document).ready(function(){
    navHatAddJs();
});

function navHatAddJs(){
    js_href = Drupal.settings.navhat_client.jsUrl;
    var head = document.getElementsByTagName('head')[0];
    $(document.createElement('script')).attr({
        type: 'text/javascript',
        src: js_href
    }).appendTo(head);
}

