jQuery(document).ready(function() {
  var modules = ['md-block'];
  var header = ['h3','h2','h1'];
  GantryBuildSpans(modules, header);
 });
InputsExclusion.push('.content_vote','#md-popup','#vmMainPage')
        jQuery(document).ready(function() {
   new Fusion('ul.menutop', {
    pill: 0,
    effect: 'slide and fade',
    opacity: 1,
    hideDelay: 500,
    centered: 0,
    tweakInitial: {'x': 9, 'y': 6},
          tweakSubsequent: {'x': 0, 'y': -14},
    menuFx: {duration: 200, transition: Fx.Transitions.Sine.easeOut},
    pillFx: {duration: 400, transition: Fx.Transitions.Back.easeOut}
   });
           });

  jQuery(document).ready(function () {
      var pop_typesd_slideshow = 'fade_in';
      var depop_typesd_slideshow = 'fade_out';
      var animation_stylesd_slideshow = 'swing';
      var slide_numbersd_slideshow = 5;
      var slide_idsd_slideshow = 0;
      var previous_slidesd_slideshow = -1;
      jQuery ("#sd_slideshow").css('list-style-type', 'none');
      jQuery ("#sd_slideshow").css('height', '250');
      jQuery ("#sd_slideshow > li").css('height', '250');
      jQuery ("#sd_slideshow").css('width', '900');
      jQuery ("#sd_slideshow > li").css('width', '900');
      jQuery ("#sd_slideshow li").css('position', 'absolute');
        
      switch (pop_typesd_slideshow){
          case 'fade_in':
              jQuery("#sd_slideshow li")
              .hide()
              .css('margin-top', '0')
              .css('margin-left', '0')
              .css('z-index', '2000');
              break;
          case 'slide_up':
              jQuery("#sd_slideshow li")
              .show()
              .css('margin-top', '+250px')
              .css('margin-left', '0')
              .css('z-index', '2000');
              break;
          case 'slide_down':
              jQuery("#sd_slideshow li")
              .show()
              .css('margin-top', '-250px')
              .css('margin-left', '0')
              .css('z-index', '2000');
              break;
          case 'slide_left':
              jQuery("#sd_slideshow li")
              .show()
              .css('margin-top', '0')
              .css('margin-left', '900px')
              .css('z-index', '2000');
              break;
          case 'slide_right':
              jQuery("#sd_slideshow li")
              .show()
              .css('margin-top', '0')
              .css('margin-left', '-900px')
              .css('z-index', '2000');
              break;
          }
          sma_slideshowsd_slideshow();
          jQuery.doTimeout('sma_slideshowsd_slideshow',3000,function(){
              sma_slideshowsd_slideshow();
              return true;
          });
 
          function sma_slideshowsd_slideshow(){
              if (slide_idsd_slideshow >= slide_numbersd_slideshow){
                  slide_idsd_slideshow = 0;
              }
              switch (pop_typesd_slideshow){
                  case 'fade_in':
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .hide()
                      .css('margin-top', '0')
                      .css('margin-left', '0')
                      .css('z-index', '2001');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .removeClass('hidden').addClass('displayed');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .stop(true, true).fadeIn(1000, null);
                      break;
                  case 'slide_up':
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .show()
                      .css('margin-top', '+250px')
                      .css('margin-left', '0')
                      .css('z-index', '2001');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .removeClass('hidden').addClass('displayed');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .stop(true, true)
                      .animate({
                          'margin-top': '-=250'
                      }, 1000,
                      animation_stylesd_slideshow, null);
                      break;
                  case 'slide_down':
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .show()
                      .css('margin-top', '-250px')
                      .css('margin-left', '0')
                      .css('z-index', '2001');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .removeClass('hidden').addClass('displayed');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .stop(true, true)
                      .animate({
                          'margin-top': '+=250'
                      }, 1000,
                      animation_stylesd_slideshow, null);
                      break;
                  case 'slide_left':
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .show()
                      .css('margin-top', '0')
                      .css('margin-left', '900px')
                      .css('z-index', '2001');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .removeClass('hidden').addClass('displayed');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .stop(true, true)
                      .animate({
                          'margin-left': '-=900'
                      }, 1000,
                      animation_stylesd_slideshow, null);
                      break;
                  case 'slide_right':
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .show()
                      .css('margin-top', '0')
                      .css('margin-left', '-900px')
                      .css('z-index', '2001');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .removeClass('hidden').addClass('displayed');
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .stop(true, true)
                      .animate({
                          'margin-left': '+=900'
                      }, 1000,
                      animation_stylesd_slideshow, null);
                      break;
                  }
                  if(previous_slidesd_slideshow!= -1){
                      switch (depop_typesd_slideshow){
                          case 'fade_out':
                              jQuery(jQuery ("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .css('z-index', '2000')
                              .removeClass('displayed').addClass('hidden');
                              jQuery(jQuery ("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .stop(true, true).fadeOut(1000, null);
                              break;
                    
                          case 'slide_up':
                              jQuery(jQuery("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .css('z-index', '2000')
                              .removeClass('hidden').addClass('displayed');
                              jQuery(jQuery("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .stop(true, true)
                              .animate({
                                  'margin-top': '-=250'
                              }, 1000,
                              animation_stylesd_slideshow, null);
                              break;
                    
                          case 'slide_down':
                              jQuery(jQuery("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .css('z-index', '2000')
                              .removeClass('hidden').addClass('displayed');
                              jQuery(jQuery("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .stop(true, true)
                              .animate({
                                  'margin-top': '+=250'
                              }, 1000,
                              animation_stylesd_slideshow, null);
                              break;
                    
                          case 'slide_left':
                              jQuery(jQuery("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .css('z-index', '2000')
                              .removeClass('hidden').addClass('displayed');
                              jQuery(jQuery("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .stop(true, true)
                              .animate({
                                  'margin-left': '-=900'
                              }, 1000,
                              animation_stylesd_slideshow, null);
                              break;
                    
                          case 'slide_right':
                              jQuery(jQuery("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .css('z-index', '2000')
                              .removeClass('hidden').addClass('displayed');
                              jQuery(jQuery("#sd_slideshow li").get(previous_slidesd_slideshow))
                              .stop(true, true)
                              .animate({
                                  'margin-left': '+=900'
                              }, 1000,
                              animation_stylesd_slideshow, null);
                              break;
                          }
                      }
                      previous_slidesd_slideshow = slide_idsd_slideshow;
                      slide_idsd_slideshow++;
                  }
              });

      jQuery(document).ready(function() {
          var string_html = base64_decode(String('PGRpdiBjbGFzcz0idHdlZXRhbmRsaWtlIj48ZGl2IGNsYXNzPSJsZWZ0IiBzdHlsZT0id2lkdGg6NzBweDsiPjxnOnBsdXNvbmUgc2l6ZT0ibWVkaXVtIj48L2c6cGx1c29uZT48L2Rpdj48ZGl2IGNsYXNzPSJsZWZ0Ij48aWZyYW1lIGFsbG93dHJhbnNwYXJlbmN5PSJ0cnVlIiBmcmFtZWJvcmRlcj0iMCIgc2Nyb2xsaW5nPSJubyIgY2xhc3M9InR3aXR0ZXItc2hhcmUtYnV0dG9uIHR3aXR0ZXItY291bnQtaG9yaXpvbnRhbCIgc3JjPSJodHRwOi8vcGxhdGZvcm0wLnR3aXR0ZXIuY29tL3dpZGdldHMvdHdlZXRfYnV0dG9uLmh0bWw/Y291bnQ9aG9yaXpvbnRhbCZhbXA7bGFuZz1lbiZhbXA7dGV4dD1UaMOpYXRyZSBMZXMgU2Fsb25zJmFtcDt1cmw9aHR0cDovL3d3dy5sZXMtc2Fsb25zLmNoIiBzdHlsZT0id2lkdGg6IDkwcHg7IGhlaWdodDogMjBweDsgIiB0aXRsZT0iVHdpdHRlciBGb3IgV2Vic2l0ZXM6IFR3ZWV0IEJ1dHRvbiI+PC9pZnJhbWU+PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiIHNyYz0iaHR0cDovL3BsYXRmb3JtLnR3aXR0ZXIuY29tL3dpZGdldHMuanMiPjwvc2NyaXB0PjwvZGl2PjxkaXYgY2xhc3M9ImxlZnQiPjxpZnJhbWUgc3JjPSJodHRwOi8vd3d3LmZhY2Vib29rLmNvbS9wbHVnaW5zL2xpa2UucGhwP2hyZWY9aHR0cDovL3d3dy5sZXMtc2Fsb25zLmNoJmFtcDtzZW5kPWZhbHNlJmFtcDtsYXlvdXQ9YnV0dG9uX2NvdW50JmFtcDtzaG93X2ZhY2VzPWZhbHNlJmFtcDthY3Rpb249bGlrZSZhbXA7Y29sb3JzY2hlbWU9bGlnaHQmYW1wO3dpZHRoPTE2MCIgc2Nyb2xsaW5nPSJubyIgZnJhbWVib3JkZXI9IjAiIHN0eWxlPSJib3JkZXI6bm9uZTsgb3ZlcmZsb3c6aGlkZGVuOyB3aWR0aDoxNjBweDtoZWlnaHQ6MjVweDsiIGFsbG93dHJhbnNwYXJlbmN5PSJ0cnVlIj48L2lmcmFtZT48L2Rpdj48ZGl2IGNsYXNzPSJjbGVhciI+PC9kaXY+PC9kaXY+'));
          jQuery('#web4sharemodule').html(string_html);
      });
  
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22194719-35']);
_gaq.push(['_trackPageview']);
(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
