/*!
 * Title: demo.js
 * Date: 16:31 7 January 2012
 * Version: 3
 * Copyright: Copyright (c) 1994-2012 Global Web Limited 
 * Telephone: +44 1224 454000
 * Web: http://www.globalweb.co.uk/
 */
var j=null;function mycarousel_initCallback(a){jQuery(".jcarousel-control button").bind("click",function(){a.scroll(jQuery.jcarousel.intval(this.value));return false});jQuery(".jcarousel-scroll select").bind("change",function(){a.options.scroll=jQuery.jcarousel.intval(this.options[this.selectedIndex].value);return false});jQuery("#mycarousel-next").bind("click",function(){a.next();return false});jQuery("#mycarousel-prev").bind("click",function(){a.prev();return false})}function mycarousel_itemFirstInCallback(d,b,a,c){display("Item #"+a+" is now the first item")}function mycarousel_itemVisibleOutCallbackBeforeAnimation(d,b,a,c){display("Hide text..."+a);jQuery("#message").fadeOut("fast")}function mycarousel_itemVisibleInCallbackAfterAnimation(d,b,a,c){j=d;display("Start timer..."+a);jQuery("#message").html(jQuery("#text"+a).html());jQuery("#message").fadeIn("slow")}jQuery(document).ready(function(){jQuery("#mycarousel").jcarousel({auto:4,wrap:"last",scroll:1,initCallback:mycarousel_initCallback,itemFirstInCallback:mycarousel_itemFirstInCallback,itemVisibleOutCallback:{onBeforeAnimation:mycarousel_itemVisibleOutCallbackBeforeAnimation},itemVisibleInCallback:{onAfterAnimation:mycarousel_itemVisibleInCallbackAfterAnimation}})});function display(a){jQuery("#display").html(a)}function jump(a){j.scroll(a)};
