
 
 function initMenu() {
  $('#menu ul').hide();
  $('#menu ul:first').show();
  $('#menu li a').click(
    function() {
		
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
         $(this).next().slideToggle('normal');	
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
  
$(document).ready(function() {initMenu();});

$(function() {
      $('#coda-slider-1').codaSlider({
				autoHeight: false,
				dynamicArrows: false,
				dynamicTabs: false,
				autoSlide: true,
				autoSlideInterval: 10500,
				autoSlideStopWhenClicked: true,
				slideEaseDuration: 1200,
				slideEaseFunction: "easeOutCubic"

       });
   });




 
 $(function() {
	
	// Hiding all the testimonials, except for the first one.
	$('#testimonials li').hide().eq(0).show();
	
	// A self executing function that loops through the testimonials:
	(function showNextTestimonial(){
		
		// Wait for 7.5 seconds and hide the currently visible testimonial:
		$('#testimonials li:visible').delay(7500).fadeOut('slow',function(){
			
			// Move it to the back:
			$(this).appendTo('#testimonials ul');
			
			// Show the next testimonial:
			$('#testimonials li:first').fadeIn('slow',function(){
				
				// Call the function again:
				showNextTestimonial();
			});
		});
	})();
	
}); 




$(document).ready(function() {

$("#psd-to-xhtml, #xhtml-to-wordpress, #xhtml-to-joomla, #xhtml-to-drupal, #xhtml-to-megento, #psd-to-mailer").tooltip({ effect: 'slide'});
});



