'},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_01.jpg', title: 'scrub_01', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_02.jpg', title: 'scrub_02', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_03.jpg', title: 'scrub_03', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_04.jpg', title: 'scrub_04', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_05.jpg', title: 'scrub_05', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_06.jpg', title: 'scrub_06', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_07.jpg', title: 'scrub_07', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_08.jpg', title: 'scrub_08', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_09.jpg', title: 'scrub_09', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_10.jpg', title: 'scrub_10', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_11.jpg', title: 'scrub_11', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_12.jpg', title: 'scrub_12', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_13.jpg', title: 'scrub_13', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_14.jpg', title: 'scrub_14', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_15.jpg', title: 'scrub_15', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/10/scrub_16.jpg', title: 'scrub_16', caption: '', description: ''}];
function mycarousel_6993_itemVisibleInCallback(carousel, item, i, state, evt)
{
// The index() method calculates the index from a
// given index who is out of the actual item range.
var idx = carousel.index(i, mycarousel_itemList_6993.length);
// crappy IE6 crappety crap
//var isMSIE = /*@cc_on!@*/false;
//if (isMSIE && idx == mycarousel_itemList_6993.length) {
// idx = 1;
// i = 1;
//}
carousel.add(i, mycarousel_6993_getItemHTML(mycarousel_itemList_6993[idx - 1]));
};
function mycarousel_6993_itemVisibleOutCallback(carousel, item, i, state, evt)
{
carousel.remove(i);
};
/**
* Item html creation helper.
*/
function mycarousel_6993_getItemHTML(item)
{
return "
" + item.title + "
" + item.caption.replace(/{br}/g, '
') + "
" + item.description.replace(/{br}/g, '
') + "
";
};
/**
* We use the initCallback callback
* to assign functionality to the controls
*/
function mycarousel_6993_initCallback(carousel) {
jQuery('.jcarousel-control_6993 a').bind('click', function() {
carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
return false;
});
jQuery('.jcarousel-scroll select').bind('change', function() {
carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);
return false;
});
jQuery('#mycarousel_6993-next').bind('click', function() {
carousel.next();
/**/
return false;
});
jQuery('#mycarousel_6993-prev').bind('click', function() {
carousel.prev();
/**/
return false;
});
jQuery('#mycarousel_6993-forward').bind('click', function() {
carousel.next();
return false;
});
};
/**
* This is the callback function which receives notification
* when an item becomes the first one in the visible range.
*/
function mycarousel_6993_itemFirstInCallback(carousel, item, idx, state) {
nextItem = idx % mycarousel_itemList_6993.length;
nextItem = (nextItem == 0) ? mycarousel_itemList_6993.length : nextItem;
jQuery('.jcarousel-control_6993 a').removeClass('active');
jQuery('.item'+nextItem+'_6993').addClass('active');
// add forward btns on each image in its own right
jQuery('#mycarousel_6993 a').bind('click', function() {
carousel.next();
/**/
return false;
});
};
/**
* Scroll thumbnails
*/
/*function scrollThumbnails(idx) {
if (idx == mycarousel_itemList_6993.length) {
idx = 0;
}
if (idx < 0) {
idx = mycarousel_itemList_6993.length + idx;
}
jQuery('#header').html(idx);
// scroll to active thumb
var thumbWidth = jQuery('.carousel-controls-inner a').outerWidth() + parseInt(jQuery('.carousel-controls-inner a').css('margin-right')); //jQuery('.item'+nextItem+'_6993').offset().left;
jQuery('.carousel-controls-inner').animate({
marginLeft: -1 * (thumbWidth * idx)
}, 'fast' );
}*/
jQuery(document).ready(function() {
jQuery('#mycarousel_6993').jcarousel({
wrap: 'circular',
itemVisibleInCallback: {onBeforeAnimation: mycarousel_6993_itemVisibleInCallback}
,itemVisibleOutCallback: {onAfterAnimation: mycarousel_6993_itemVisibleOutCallback}
,scroll: 1
,animation: 500
,initCallback: mycarousel_6993_initCallback
,buttonNextHTML: null
,buttonPrevHTML: null
,itemFirstInCallback: mycarousel_6993_itemFirstInCallback
});
});
/* ]]> */