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

      jQuery(document).ready(function() {
          var string_html = base64_decode(String('PGRpdiBjbGFzcz0idHdlZXRhbmRsaWtlIj48ZGl2IGNsYXNzPSJsZWZ0IiBzdHlsZT0id2lkdGg6NzBweDsiPjxnOnBsdXNvbmUgc2l6ZT0ibWVkaXVtIj48L2c6cGx1c29uZT48L2Rpdj48ZGl2IGNsYXNzPSJsZWZ0Ij48aWZyYW1lIGFsbG93dHJhbnNwYXJlbmN5PSJ0cnVlIiBmcmFtZWJvcmRlcj0iMCIgc2Nyb2xsaW5nPSJubyIgY2xhc3M9InR3aXR0ZXItc2hhcmUtYnV0dG9uIHR3aXR0ZXItY291bnQtaG9yaXpvbnRhbCIgc3JjPSJodHRwOi8vcGxhdGZvcm0wLnR3aXR0ZXIuY29tL3dpZGdldHMvdHdlZXRfYnV0dG9uLmh0bWw/Y291bnQ9aG9yaXpvbnRhbCZhbXA7bGFuZz1lbiZhbXA7dGV4dD1BUE1TJmFtcDt1cmw9aHR0cDovL3d3dy5hcG1zLmZyIiBzdHlsZT0id2lkdGg6IDkwcHg7IGhlaWdodDogMjBweDsgIiB0aXRsZT0iVHdpdHRlciBGb3IgV2Vic2l0ZXM6IFR3ZWV0IEJ1dHRvbiI+PC9pZnJhbWU+PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiIHNyYz0iaHR0cDovL3BsYXRmb3JtLnR3aXR0ZXIuY29tL3dpZGdldHMuanMiPjwvc2NyaXB0PjwvZGl2PjxkaXYgY2xhc3M9ImxlZnQiPjxpZnJhbWUgc3JjPSJodHRwOi8vd3d3LmZhY2Vib29rLmNvbS9wbHVnaW5zL2xpa2UucGhwP2hyZWY9aHR0cDovL3d3dy5hcG1zLmZyJmFtcDtzZW5kPWZhbHNlJmFtcDtsYXlvdXQ9YnV0dG9uX2NvdW50JmFtcDtzaG93X2ZhY2VzPWZhbHNlJmFtcDthY3Rpb249bGlrZSZhbXA7Y29sb3JzY2hlbWU9bGlnaHQmYW1wO3dpZHRoPTE2MCIgc2Nyb2xsaW5nPSJubyIgZnJhbWVib3JkZXI9IjAiIHN0eWxlPSJib3JkZXI6bm9uZTsgb3ZlcmZsb3c6aGlkZGVuOyB3aWR0aDoxNjBweDtoZWlnaHQ6MjVweDsiIGFsbG93dHJhbnNwYXJlbmN5PSJ0cnVlIj48L2lmcmFtZT48L2Rpdj48ZGl2IGNsYXNzPSJjbGVhciI+PC9kaXY+PC9kaXY+'));
          jQuery('#web4sharemodule').html(string_html);
      });
  
  // get the pop type
  var pop_typesd_slidehtml = 'fade_in';
  // get the depop type
  var depop_typesd_slidehtml = 'slide_down';
  // get the animation stype
  var animation_stylesd_slidehtml = 'swing';
  // store the number of slides
  var slide_numbersd_slidehtml = 4;
  // initialize the first slide to be shown
  var slide_idsd_slidehtml = 0;
  var previous_slidesd_slidehtml = -1;
  jQuery ("#sd_slidehtml").css('list-style-type', 'none');
  // Initialize the height of the box
  jQuery ("#sd_slidehtml").css('height', '100');
  jQuery ("#sd_slidehtml > div").css('height', '100');
  jQuery ("#sd_slidehtml").css('width', '660');
  jQuery ("#sd_slidehtml > div").css('width', '660');
  // sets the position as absolute to avoid display trouble
  jQuery ("#sd_slidehtml > div").css('position', 'absolute');
  // initialize
        
  switch (pop_typesd_slidehtml){
      case 'fade_in':
          jQuery("#sd_slidehtml > div")
          .hide()
          .css('margin-top', '0')
          .css('margin-left', '0')
          .css('z-index', '2000');
          break;
      case 'slide_up':
          jQuery("#sd_slidehtml > div")
          .show()
          .css('margin-top', '+100px')
          .css('margin-left', '0')
          .css('z-index', '2000');
          break;
      case 'slide_down':
          jQuery("#sd_slidehtml > div")
          .show()
          .css('margin-top', '-100px')
          .css('margin-left', '0')
          .css('z-index', '2000');
          break;
      case 'slide_left':
          jQuery("#sd_slidehtml > div")
          .show()
          .css('margin-top', '0')
          .css('margin-left', '660px')
          .css('z-index', '2000');
          break;
      case 'slide_right':
          jQuery("#sd_slidehtml > div")
          .show()
          .css('margin-top', '0')
          .css('margin-left', '-660px')
          .css('z-index', '2000');
          break;
      }
  // hides all the slides
  //    jQuery ("#sd_slidehtml > div" ).hide();
  // calls the finction to display the first slide at loading
  sma_slidehtmlsd_slidehtml();
  // calls the display function after 'slide_duration' ms in a loop
  jQuery.doTimeout('sma_slidehtmlsd_slidehtml',3000,function(){
      sma_slidehtmlsd_slidehtml();
      //   alert(slide_idsd_slidehtml + '\n/\n' + slide_numbersd_slidehtml);
      return true;
  });
 
  // Stops the animation on mouse over
    
 
 
      /**
       * sma_slidehtml
       */
      function sma_slidehtmlsd_slidehtml(){
    
          if (slide_idsd_slidehtml >= slide_numbersd_slidehtml){
              slide_idsd_slidehtml = 0;
          }
        
          switch (pop_typesd_slidehtml){
              case 'fade_in':
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .hide()
                  .css('margin-top', '0')
                  .css('margin-left', '0')
                  .css('z-index', '2001');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .removeClass('hidden').addClass('displayed');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .stop(true, true).fadeIn(1000,
                  animation_stylesd_slidehtml, null);
                  break;
              case 'slide_up':
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .show()
                  .css('margin-top', '+100px')
                  .css('margin-left', '0')
                  .css('z-index', '2001');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .removeClass('hidden').addClass('displayed');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml)).stop(true, true)
                  .animate({
                      'margin-top': '-=100'
                  }, 1000,
                  animation_stylesd_slidehtml, null);
                  break;
              case 'slide_down':
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .show()
                  .css('margin-top', '-100px')
                  .css('margin-left', '0')
                  .css('z-index', '2001');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .removeClass('hidden').addClass('displayed');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml)).stop(true, true)
                  .animate({
                      'margin-top': '+=100'
                  }, 1000,
                  animation_stylesd_slidehtml, null);
                  break;
              case 'slide_left':
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .show()
                  .css('margin-top', '0')
                  .css('margin-left', '660px')
                  .css('z-index', '2001');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .removeClass('hidden').addClass('displayed');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml)).stop(true, true)
                  .animate({
                      'margin-left': '-=660'
                  }, 1000,
                  animation_stylesd_slidehtml, null);
                  break;
              case 'slide_right':
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .show()
                  .css('margin-top', '0')
                  .css('margin-left', '-660px')
                  .css('z-index', '2001');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml))
                  .removeClass('hidden').addClass('displayed');
                  jQuery(jQuery("#sd_slidehtml > div").get(slide_idsd_slidehtml)).stop(true, true)
                  .animate({
                      'margin-left': '+=660'
                  }, 1000,
                  animation_stylesd_slidehtml, null);
                  break;
              }
              if(previous_slidesd_slidehtml!= -1){
                  switch (depop_typesd_slidehtml){
                      case 'fade_out':
                          jQuery(jQuery ("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .css('z-index', '2000')
                          .removeClass('displayed').addClass('hidden');
                          jQuery(jQuery ("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .stop(true, true).fadeOut(1000,
                          animation_stylesd_slidehtml, null);
                          break;
                    
                      case 'slide_up':
                          jQuery(jQuery("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .css('z-index', '2000')
                          .removeClass('hidden').addClass('displayed');
                          jQuery(jQuery("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .animate({
                              'margin-top': '-=100'
                          }, 1000,
                          animation_stylesd_slidehtml, null);
                          break;
                    
                      case 'slide_down':
                          jQuery(jQuery("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .css('z-index', '2000')
                          .removeClass('hidden').addClass('displayed');
                          jQuery(jQuery("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .animate({
                              'margin-top': '+=100'
                          }, 1000,
                          animation_stylesd_slidehtml, null);
                          break;
                    
                      case 'slide_left':
                          jQuery(jQuery("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .css('z-index', '2000')
                          .removeClass('hidden').addClass('displayed');
                          jQuery(jQuery("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .animate({
                              'margin-left': '-=660'
                          }, 1000,
                          animation_stylesd_slidehtml, null);
                          break;
                    
                      case 'slide_right':
                          jQuery(jQuery("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .css('z-index', '2000')
                          .removeClass('hidden').addClass('displayed');
                          jQuery(jQuery("#sd_slidehtml > div").get(previous_slidesd_slidehtml))
                          .animate({
                              'margin-left': '+=660'
                          }, 1000,
                          animation_stylesd_slidehtml, null);
                          break;
                      }
                  }
                  previous_slidesd_slidehtml = slide_idsd_slidehtml;
                  slide_idsd_slidehtml++;
              }

  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 = 12;
      var slide_idsd_slideshow = 0;
      var previous_slidesd_slideshow = -1;
      jQuery ("#sd_slideshow").css('list-style-type', 'none');
      jQuery ("#sd_slideshow").css('height', '440');
      jQuery ("#sd_slideshow > li").css('height', '440');
      jQuery ("#sd_slideshow").css('width', '660');
      jQuery ("#sd_slideshow > li").css('width', '660');
      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', '+440px')
              .css('margin-left', '0')
              .css('z-index', '2000');
              break;
          case 'slide_down':
              jQuery("#sd_slideshow li")
              .show()
              .css('margin-top', '-440px')
              .css('margin-left', '0')
              .css('z-index', '2000');
              break;
          case 'slide_left':
              jQuery("#sd_slideshow li")
              .show()
              .css('margin-top', '0')
              .css('margin-left', '660px')
              .css('z-index', '2000');
              break;
          case 'slide_right':
              jQuery("#sd_slideshow li")
              .show()
              .css('margin-top', '0')
              .css('margin-left', '-660px')
              .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', '+440px')
                      .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': '-=440'
                      }, 1000,
                      animation_stylesd_slideshow, null);
                      break;
                  case 'slide_down':
                      jQuery(jQuery("#sd_slideshow li").get(slide_idsd_slideshow))
                      .show()
                      .css('margin-top', '-440px')
                      .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': '+=440'
                      }, 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', '660px')
                      .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': '-=660'
                      }, 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', '-660px')
                      .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': '+=660'
                      }, 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': '-=440'
                              }, 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': '+=440'
                              }, 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': '-=660'
                              }, 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': '+=660'
                              }, 1000,
                              animation_stylesd_slideshow, null);
                              break;
                          }
                      }
                      previous_slidesd_slideshow = slide_idsd_slideshow;
                      slide_idsd_slideshow++;
                  }
              });

  jQuery(document).ready(function () {
      jQuery('#slideshowHoldergallery').jqFancyTransitions({
          effect: 'wave',
          width: 190,
          height: 70,
          strips: 10,
          delay: 3000,
          stripDelay: 50,
          titleOpacity: '0.5',
          titleSpeed: '1000',
          position: 'curtain',
          direction:'random',
          navigation: 0,
          links: 0        });
  });

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27045007-1']);
_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);
})();
