/**
* Account-related Javascript routines for 44I
*
* Copyright (c)2008 44 Interactive. All Rights Reserved.
*
* SVN File: $Id: account.js 217 2008-07-28 19:06:27Z Mike Neugebauer $
* @author $Author: Mike Neugebauer $
* @version $Revision: 217 $
* @lastrevision $Date: 2008-07-28 14:06:27 -0500 (Mon, 28 Jul 2008) $
* @modifiedby $LastChangedBy: Mike Neugebauer $
* @lastmodified $LastChangedDate: 2008-07-28 14:06:27 -0500 (Mon, 28 Jul 2008) $
* @filesource $URL: svn+ssh://miken@svnhost.44i-dev.com/svnhome/base/branches/motormarket/js/account.js $
*/

function mycarousel_initCallback(carousel) {


jQuery('.jcarousel-control a').bind('click', function() {
carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
return false;
});



jQuery('#mycarousel-next').bind('click', function() {
carousel.next( );
return false;
});

jQuery('#mycarousel-prev').bind('click', function() {
carousel.prev();
return false;
});
};

jQuery(document).ready(function() {

jQuery("#mycarousel").jcarousel({
scroll: 4,
initCallback: mycarousel_initCallback,
// This tells jCarousel NOT to autobuild prev/next buttons
buttonNextHTML: null,
buttonPrevHTML: null
});

});