   var cast_item_list=[
'Lorinda Reese Jameson (Etta Place)','casts/ettab.jpg',
'Harry Longbaugh (The Sundance Kid)','casts/harryb.jpg',
'Butch Cassidy','casts/butchb.jpg',
'Eleanor Roosevelt','casts/eleanorb.jpg',
'Harvey Logan (Kid Curry)','casts/harveyb.jpg',
'Laura Bullion (Della Rose)','casts/laurab.jpg',
'Charles A. Siringo','casts/charlesb.jpg',
'Col. William F. Cody (Buffalo Bill)','casts/williamb.jpg',
'Annie Oakley','casts/annieb.jpg',
'Fred Harvey','casts/fredb.jpg'
   ];
   var cast_item_popup=[
'Lorinda Reese Jameson (Etta Place)',
'Harry Longbaugh (The Sundance Kid)',
'Butch Cassidy',
'Eleanor Roosevelt',
'Harvey Logan (Kid Curry)',
'Laura Bullion (Della Rose)',
'Charles A. Siringo',
'Col. William F. Cody (Buffalo Bill)',
'Annie Oakley',
'Fred Harvey'
   ];
   var cast_item_info=[
'Beautiful Philadelphia socialite turned outlaw. <a href="cast.html#lorinda">Read more</a>',
'Bandit and Etta\'s lover. <a href="cast.html#harry">Read more</a>',
'Charismatic leader of the Hole-In-The-Wall Gang. <a href="cast.html#butch">Read more</a>',
'Etta\'s closest friend and confidante. <a href="cast.html#eleanor">Read more</a>',
'Ruthless and sadistic "little man" of the Wild Bunch. <a href="cast.html#harvey">Read more</a>',
'Etta\'s loyal fellow female outlaw. <a href="cast.html#laura">Read more</a>',
'Crack Pinkerton Detective and Etta\'s merciless pursuer. <a href="cast.html#charles">Read more</a>',
'Proprietor of <em>Buffalo Bill\'s Wild West</em> and Etta\'s employer. <a href="cast.html#william">Read more</a>',
'Famous sharpshooter whom Etta impersonates in <em>Buffalo Bill\'s Wild West.</em> <a href="cast.html#annie">Read more</a>',
'Pioneering restaurateur who hires the Pinkerton Detective Agency to find Etta Place. <a href="cast.html#fred">Read more</a>'
   ];
   var first=0;
   var position=0;
   var cast_link=1;
   function carousel_itemFirstInCallback(carousel, item, idx, state) {
first=idx-1;
var cast_popup=cast_item_popup[first+position];
$(".popup").html(
    cast_popup
);
   };
   jQuery(document).ready(function() {
jQuery('#carousel').jcarousel({
    'scroll' : 4,
    'visible': 6,
    'itemFirstInCallback': carousel_itemFirstInCallback
});
$("ul#carousel a").mouseover(function(){
    cast_link=parseInt($(this).attr('class').substr(4),10);
    var leftpos = $(".popup").css("margin-left");
    var newpos=((cast_link-1-first)*64)+40;
    var cast_popup=cast_item_popup[cast_link-1];
    $(".popup").fadeIn(1);
    position=cast_link-first-1;
    $(".popup").html(
	cast_popup
    );
    var cssObj={
	'margin-left' : newpos
    }
    $(".popup").css(cssObj);
});
$("ul#carousel a").mouseout(function(){
    $(".popup").fadeOut(1);
});
$("ul#carousel a").click(function(){
    cast_link=parseInt($(this).attr('class').substr(4),10);
    var cast_title=cast_item_list[cast_link*2-2];
    var cast_img=cast_item_list[cast_link*2-1];
    var cast_info=cast_item_info[cast_link-1];
    var cast_popup=cast_item_popup[cast_link-1];
    $('.active').removeClass('active');
    $(this).addClass('active');
    $(".cast_title").html(
	cast_title
    );
    $(".cast_info").html(
	cast_info
    );
    $("img.preview").attr({
	src:cast_img,
	title:cast_title,
	alt:cast_info
    });
    return false;
});
$(".cast1").click();
   });