'},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_12.jpg', title: 'wedding_week_12', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_11.jpg', title: 'wedding_week_11', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_10.jpg', title: 'wedding_week_10', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_09.jpg', title: 'wedding_week_09', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_08.jpg', title: 'wedding_week_08', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_07.jpg', title: 'wedding_week_07', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_06.jpg', title: 'wedding_week_06', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_05.jpg', title: 'wedding_week_05', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_04.jpg', title: 'wedding_week_04', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_03.jpg', title: 'wedding_week_03', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_02.jpg', title: 'wedding_week_02', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_01.jpg', title: 'wedding_week_01', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_14.jpg', title: 'wedding_week_14', caption: '', description: ''},
{url: 'http://blog.derestricted.com/wp-content/uploads/2009/05/wedding_week_15.jpg', title: 'wedding_week_15', caption: '', description: ''}];
function mycarousel_4187_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_4187.length);
// crappy IE6 crappety crap
//var isMSIE = /*@cc_on!@*/false;
//if (isMSIE && idx == mycarousel_itemList_4187.length) {
// idx = 1;
// i = 1;
//}
carousel.add(i, mycarousel_4187_getItemHTML(mycarousel_itemList_4187[idx - 1]));
};
function mycarousel_4187_itemVisibleOutCallback(carousel, item, i, state, evt)
{
carousel.remove(i);
};
/**
* Item html creation helper.
*/
function mycarousel_4187_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_4187_initCallback(carousel) {
jQuery('.jcarousel-control_4187 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_4187-next').bind('click', function() {
carousel.next();
/**/
return false;
});
jQuery('#mycarousel_4187-prev').bind('click', function() {
carousel.prev();
/**/
return false;
});
jQuery('#mycarousel_4187-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_4187_itemFirstInCallback(carousel, item, idx, state) {
nextItem = idx % mycarousel_itemList_4187.length;
nextItem = (nextItem == 0) ? mycarousel_itemList_4187.length : nextItem;
jQuery('.jcarousel-control_4187 a').removeClass('active');
jQuery('.item'+nextItem+'_4187').addClass('active');
// add forward btns on each image in its own right
jQuery('#mycarousel_4187 a').bind('click', function() {
carousel.next();
/**/
return false;
});
};
/**
* Scroll thumbnails
*/
/*function scrollThumbnails(idx) {
if (idx == mycarousel_itemList_4187.length) {
idx = 0;
}
if (idx < 0) {
idx = mycarousel_itemList_4187.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+'_4187').offset().left;
jQuery('.carousel-controls-inner').animate({
marginLeft: -1 * (thumbWidth * idx)
}, 'fast' );
}*/
jQuery(document).ready(function() {
jQuery('#mycarousel_4187').jcarousel({
wrap: 'circular',
itemVisibleInCallback: {onBeforeAnimation: mycarousel_4187_itemVisibleInCallback}
,itemVisibleOutCallback: {onAfterAnimation: mycarousel_4187_itemVisibleOutCallback}
,scroll: 1
,animation: 500
,initCallback: mycarousel_4187_initCallback
,buttonNextHTML: null
,buttonPrevHTML: null
,itemFirstInCallback: mycarousel_4187_itemFirstInCallback
});
});
/* ]]> */
Wooooohoooooooooooooooooo…..wedding time!!!!!