$(document).ready(function() {
	  $('#rotator').innerfade({ animationtype: 'fade', speed: 2000, timeout: 9999, type: 'random', containerheight: '250px' }); 
      $('a.qtip').qtip({
        position: { corner: { target: 'topMiddle',  tooltip: 'bottomMiddle'} },
        style: { 
          padding: 3,
          background: '#b8d8ff',
          color: '#2176de',
          textAlign: 'center',
          border: {
            width: 2,
            radius: 3,
            color: '#60a2f4'
          },
          name: 'dark', // Inherit the rest of the attributes from the preset dark style
          tip: 'bottomMiddle'
        }
      });
      
      $('#map a.info').qtip({
        position: { corner: { target: 'bottomMiddle',  tooltip: 'topMiddle'} },
        style: { 
          padding: 3,
          background: '#b8d8ff',
          color: '#2176de',
          textAlign: 'center',
          border: {
            width: 2,
            radius: 3,
            color: '#60a2f4'
          },
          name: 'dark', // Inherit the rest of the attributes from the preset dark style
          tip: 'topMiddle'
        }
      });


$("#pm").fancybox({
 'transitionIn' : 'elastic',
 'transitionOut' : 'elastic',
 'hideOnContentClick' : true,
 centerOnScroll : true
 }); 
 
$("#pma").fancybox({
 'transitionIn' : 'elastic',
 'transitionOut' : 'elastic',
 'hideOnContentClick' : true,
 centerOnScroll : true
 }); 
 
 $("#pmb").fancybox({
 'transitionIn' : 'elastic',
 'transitionOut' : 'elastic',
 'hideOnContentClick' : true,
 centerOnScroll : true
 }); 
 
 $("#pmc").fancybox({
 'transitionIn' : 'elastic',
 'transitionOut' : 'elastic',
 'hideOnContentClick' : true,
 centerOnScroll : true
 }); 
 
 $("#pmd").fancybox({
 'transitionIn' : 'elastic',
 'transitionOut' : 'elastic',
 'hideOnContentClick' : true,
 centerOnScroll : true
 }); 
 
 $("#pme").fancybox({
 'transitionIn' : 'elastic',
 'transitionOut' : 'elastic',
 'hideOnContentClick' : true,
 centerOnScroll : true
 }); 

	$(function() {
		$("ul#menu span").css("opacity","0");
		$("ul#menu span").hover(function () {
			$(this).stop().animate({opacity: 1}, "slow");},
		function () {$(this).stop().animate({opacity: 0}, "slow");
		});
	});


});         
