CARTOON OF THE DAYBY MICHAEL RAMIREZ 04/18
What Albatross?
$(function() {
scrollable_cartoon_images = [
‘http://global.nationalreview.com/images/cartoon_041811_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_041711_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_041611_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_041511_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_041411_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_041311_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_041311_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_041211_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_041111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_040811_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_040811_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_040711_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_040611_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_040611_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_040511_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_040511_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_040311_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_040211_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_040111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_040111_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_033111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_033011_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_033011_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_032911_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_032811_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_032811_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_032611_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_032511_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_032411_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_032411_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_032311_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_032211_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_032111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_031611_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_031111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_031011_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_031011_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_030911_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_030911_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_030811_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_030711_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_030611_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_030511_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_030511_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_030411_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_030311_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_030311_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_030211_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_030111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_030111_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_022811_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_022611_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_022511_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_022411_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_022411_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_022311_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_022311_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_022211_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_022111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021911_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021811_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021711_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021711_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_021611_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021611_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_021511_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021511_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_021411_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021411_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_021411_C.jpg’,
‘http://global.nationalreview.com/images/cartoon_021311_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021211_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021211_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_021111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_021011_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_020911_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_020811_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_020811_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_020711_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_020711_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_020611_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_020511_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_020511_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_020411_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_020311_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_020311_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_020211_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_020211_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_020111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_013111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_012911_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_012811_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_012711_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_012711_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_012611_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_012611_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_012511_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_012411_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_012211_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_012111_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_012111_B.jpg’,
‘http://global.nationalreview.com/images/cartoon_012011_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_011911_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_011811_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_011711_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_011511_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_011411_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_011310_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_011210_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_011110_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_011010_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_010810_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_010710_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_010610_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_010510_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_010410_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_010310_A.jpg’,
‘http://global.nationalreview.com/images/cartoon_010110_A.jpg’,
];
// initialize scrollable
$(“.scrollable_cartoon”).scrollable({
onSeek: function() {
var elms = this.getItems();
for (j = -1; j <= 1; j++) {
var kids = $(elms[this.getIndex()+j]).children();
for (var i = 0; i < kids.length; i++) {
var kid = kids[i];
var grandkids = $(kid).children();
for (var ii = 0; ii < grandkids.length; ii++) {
var grandkid = grandkids[ii];
if ($(grandkid).hasClass(‘scroll_image’) && !$(grandkid).attr(‘src’)) {
$(grandkid).attr(‘src’, scrollable_cartoon_images[this.getIndex()+j]);
}
}
if ($(kid).hasClass(‘scroll_image’) && !$(kid).attr(‘src’)) {
$(kid).attr(‘src’, scrollable_cartoon_images[this.getIndex()+j]);
}
}
}
track_event_click(‘Cartoon of the Day’, this.getIndex());
}
});
$(“#cartoon img[rel]”).overlay({effect: ‘apple’});
});