'},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3338.jpg', title: 'IMG_3338', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3388.jpg', title: 'IMG_3388', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3392.jpg', title: 'IMG_3392', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3387.jpg', title: 'IMG_3387', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/00_lambo.jpg', title: '00_lambo', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3379.jpg', title: 'IMG_3379', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3374.jpg', title: 'IMG_3374', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3394.jpg', title: 'IMG_3394', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3383.jpg', title: 'IMG_3383', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3367.jpg', title: 'IMG_3367', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/11/IMG_3390.jpg', title: 'IMG_3390', caption: '', description: ''}];
function mycarousel_7360_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_7360.length);
// crappy IE6 crappety crap
//var isMSIE = /*@cc_on!@*/false;
//if (isMSIE && idx == mycarousel_itemList_7360.length) {
// idx = 1;
// i = 1;
//}
carousel.add(i, mycarousel_7360_getItemHTML(mycarousel_itemList_7360[idx - 1]));
};
function mycarousel_7360_itemVisibleOutCallback(carousel, item, i, state, evt)
{
carousel.remove(i);
};
/**
* Item html creation helper.
*/
function mycarousel_7360_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_7360_initCallback(carousel) {
jQuery('.jcarousel-control_7360 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_7360-next').bind('click', function() {
carousel.next();
/**/
return false;
});
jQuery('#mycarousel_7360-prev').bind('click', function() {
carousel.prev();
/**/
return false;
});
jQuery('#mycarousel_7360-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_7360_itemFirstInCallback(carousel, item, idx, state) {
nextItem = idx % mycarousel_itemList_7360.length;
nextItem = (nextItem == 0) ? mycarousel_itemList_7360.length : nextItem;
jQuery('.jcarousel-control_7360 a').removeClass('active');
jQuery('.item'+nextItem+'_7360').addClass('active');
// add forward btns on each image in its own right
jQuery('#mycarousel_7360 a').bind('click', function() {
carousel.next();
/**/
return false;
});
};
/**
* Scroll thumbnails
*/
/*function scrollThumbnails(idx) {
if (idx == mycarousel_itemList_7360.length) {
idx = 0;
}
if (idx < 0) {
idx = mycarousel_itemList_7360.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+'_7360').offset().left;
jQuery('.carousel-controls-inner').animate({
marginLeft: -1 * (thumbWidth * idx)
}, 'fast' );
}*/
jQuery(document).ready(function() {
jQuery('#mycarousel_7360').jcarousel({
wrap: 'circular',
itemVisibleInCallback: {onBeforeAnimation: mycarousel_7360_itemVisibleInCallback}
,itemVisibleOutCallback: {onAfterAnimation: mycarousel_7360_itemVisibleOutCallback}
,scroll: 1
,animation: 500
,initCallback: mycarousel_7360_initCallback
,buttonNextHTML: null
,buttonPrevHTML: null
,itemFirstInCallback: mycarousel_7360_itemFirstInCallback
});
});
/* ]]> */