/* eRO Carousel */

function mycarousel_initCallback(carousel)
{
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#rhs-scroll').jcarousel({
        auto: 2,
        wrap: 'last',
        vertical: false,
        visible: 3,
        initCallback: mycarousel_initCallback
    });
});


/* Q Tips */

$(document).ready(function() 
{
   // By suppling no content attribute, the library uses each elements title attribute by default
   $('#rhs-scroll a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
	   position: {
	      corner: {
	         target: 'topMiddle',
	         tooltip: 'bottomMiddle'
	      }
	   },
       style: {
          border: {
             width: 3,
             radius: 3
          },
		fontSize: 11,
		opacity: 2,      
      padding: 5,
      textAlign: 'center',
      tip: true, // Give it a speech bubble tip with automatic corner detection
      name: 'dark' // Style it according to the preset 'cream' style
       }
   });

});

/* Tabs */


$(document).ready(function() {

    $('#lhs-tabs').tabs();
    
});

/* Form Auto-Complete */

