
jQuery(function(){
  $foobar({
    "height" : {
      "bar" : 81,
      "button" : 30
    },
    
    "width": {
      "left": "45%",
      "center": "10%",
      "right": "45%",
      "button": "20px"
    },

    "position": {
      "ignoreOffsetMargin": false,
      "bar": "inline",
      "button": "hidden",
      "social": "left"
    },
    
    "display" : {
      "type" : "delayed",
      "delay" : 0,
      "speed": 100,
      "backgroundColor" : "#3d3d3d",
      "border" : "solid 3px #ffffff",
      "theme": {
        "bar": "triangle-arrow"
      },
      "easing" : "swing",
      "shadow" : true,
      "adjustPageHeight" : true,
      "rtl" : false
    },
    "message": {
      "delay": 2000,
      "fadeDelay": 500,
      "random": false,
      "navigation": false,
      "scroll": {
        "enabled": true,
        "speed": 50,
        "delay": 2000,
        "direction": "left"
      },
      "font": {
        "family": "Verdana",
        "size": "10pt",
        "color": "#ffffff",
        "shadow" : "0 1px 0 #888888"
      },
      "aFont": {
        "family": "Verdana",
        "size": "10pt",
        "color": "#ffffaa",
        "decoration": "none",
        "shadow" : "0 1px 0 #888888",
        "hover": {
          "color": "#ffffaa",
          "decoration": "underline",
          "shadow" : "0 1px 0 #888888"
        }
      }
    },
    "leftHtml" : "&lt;a href=\&quot;http:\/\/www.ises2015.org\/\&quot; class=\&quot;tooltip\&quot; title=\&quot;You are now leaving the EHP website. Linking to this external site does not constitute endorsement by EHP or the NIEHS. Visitors to the linked website will be subject to the website\u2019s privacy policies, which may differ from those of EHP.\&quot;&gt;&lt;img src=\&quot;\/img\/2015_1_13_b001_ISES.jpg\&quot; class=\&quot;alignright ehp-advert\&quot; alt=\&quot;Ad Banner\&quot; width=\&quot;468px\&quot; height=\&quot;60px\&quot; target=\&quot;_blank\&quot;&gt;&lt;\/a&gt;",
    "rightHtml" : "&lt;a href=\&quot;http:\/\/www.cehs.hokudai.ac.jp\/ISEE-AC2016\/\&quot; class=\&quot;tooltip\&quot; title=\&quot;You are now leaving the EHP website. Linking to this external site does not constitute endorsement by EHP or the NIEHS. Visitors to the linked website will be subject to the website\u2019s privacy policies, which may differ from those of EHP.\&quot;&gt;&lt;img src=\&quot;\/img\/ISEE-2016-banner.jpg\&quot; class=\&quot;alignleft ehp-advert\&quot; alt=\&quot;Ad Banner\&quot; width=\&quot;468px\&quot; height=\&quot;60px\&quot; target=\&quot;_blank\&quot;&gt;&lt;\/a&gt;"
    
  });
  
  $foobar("option", { 
    "events": {
      "preRender": function(options) {
        if (this.utils.isNotNullOrEmpty(options.leftHtml)) { options.leftHtml = Encoder.htmlDecode(options.leftHtml); };
        if (this.utils.isNotNullOrEmpty(options.rightHtml)) { options.rightHtml = Encoder.htmlDecode(options.rightHtml); };
        for (var mi = 0; mi < options.messages.length; mi++) { options.messages[mi] = Encoder.htmlDecode(options.messages[mi]); };
      }
    }
  });


});