jQuery(function(){
    
    // Superfish Navigation
    $('ul.sf-menu').superfish({
	animation: {
	    opacity:'show',
	    height:'show'
	}	    
    });
    
    // Corners For Rounding Elements
    $(".sf-menu>li>a").corner("round 10px")
    
    // News Ticker's Animation
    $(".newsticker-jcarousellite").jCarouselLite({  
	vertical: true,  
	visible: 1,  
	auto:3000,  
	speed:750  
    });
    
    // Banner's Animation
    $('.banner-wrap').jshowoff({
	controls: false,
	links: false,
	speed: 5000
    });
    
    // Color and style the titles and other pop ups controlled by qTip.js 
   $('area').each(function()
   {
      $(this).qtip(
      {
         content: $(this).attr('alt'), // Use the ALT attribute of the area map
               style: {
                  border: {
                     width: 4,
                     radius: 2
                  },
                  padding: 4, 
                  textAlign: 'center',
                  tip: true, // Give it a speech bubble tip with automatic corner detection
                  name: 'blue' // Style it according to the preset 'cream' style
               },
	       position: {
		corner: {
		    tooltip: 'leftMiddle',
		    target: 'rightMiddle'
		}
	       }
      });
   });
    
});
