'},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050398.jpg', title: 'P1050398', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050371.jpg', title: 'P1050371', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050365.jpg', title: 'P1050365', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050355.jpg', title: 'P1050355', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050336.jpg', title: 'P1050336', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050335.jpg', title: 'P1050335', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050329.jpg', title: 'P1050329', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050317.jpg', title: 'P1050317', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050314.jpg', title: 'P1050314', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050303.jpg', title: 'P1050303', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050292.jpg', title: 'P1050292', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050278.jpg', title: 'P1050278', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050260.jpg', title: 'P1050260', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050258.jpg', title: 'P1050258', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050233.jpg', title: 'P1050233', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050229.jpg', title: 'P1050229', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050207.jpg', title: 'P1050207', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050199.jpg', title: 'P1050199', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050184.jpg', title: 'P1050184', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050172.jpg', title: 'P1050172', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050166.jpg', title: 'P1050166', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050165.jpg', title: 'P1050165', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050162.jpg', title: 'P1050162', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/P1050157.jpg', title: 'P1050157', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/12/hamburg.jpg', title: 'hamburg', caption: '', description: ''}];
function mycarousel_7948_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_7948.length);
// crappy IE6 crappety crap
//var isMSIE = /*@cc_on!@*/false;
//if (isMSIE && idx == mycarousel_itemList_7948.length) {
// idx = 1;
// i = 1;
//}
carousel.add(i, mycarousel_7948_getItemHTML(mycarousel_itemList_7948[idx - 1]));
};
function mycarousel_7948_itemVisibleOutCallback(carousel, item, i, state, evt)
{
carousel.remove(i);
};
/**
* Item html creation helper.
*/
function mycarousel_7948_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_7948_initCallback(carousel) {
jQuery('.jcarousel-control_7948 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_7948-next').bind('click', function() {
carousel.next();
/**/
return false;
});
jQuery('#mycarousel_7948-prev').bind('click', function() {
carousel.prev();
/**/
return false;
});
jQuery('#mycarousel_7948-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_7948_itemFirstInCallback(carousel, item, idx, state) {
nextItem = idx % mycarousel_itemList_7948.length;
nextItem = (nextItem == 0) ? mycarousel_itemList_7948.length : nextItem;
jQuery('.jcarousel-control_7948 a').removeClass('active');
jQuery('.item'+nextItem+'_7948').addClass('active');
// add forward btns on each image in its own right
jQuery('#mycarousel_7948 a').bind('click', function() {
carousel.next();
/**/
return false;
});
};
/**
* Scroll thumbnails
*/
/*function scrollThumbnails(idx) {
if (idx == mycarousel_itemList_7948.length) {
idx = 0;
}
if (idx < 0) {
idx = mycarousel_itemList_7948.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+'_7948').offset().left;
jQuery('.carousel-controls-inner').animate({
marginLeft: -1 * (thumbWidth * idx)
}, 'fast' );
}*/
jQuery(document).ready(function() {
jQuery('#mycarousel_7948').jcarousel({
wrap: 'circular',
itemVisibleInCallback: {onBeforeAnimation: mycarousel_7948_itemVisibleInCallback}
,itemVisibleOutCallback: {onAfterAnimation: mycarousel_7948_itemVisibleOutCallback}
,scroll: 1
,animation: 500
,initCallback: mycarousel_7948_initCallback
,buttonNextHTML: null
,buttonPrevHTML: null
,itemFirstInCallback: mycarousel_7948_itemFirstInCallback
});
});
/* ]]> */