// JavaScript Document



$(document).ready(function() {

    // run the code in the markup!
    $('table pre code').not('#skip,#skip2').each(function() {
        eval($(this).text());
    
	});
	$('#slide').cycle({
    speed:    1000,
	timeout:  10000,
	easing:  'easeInBack',
	fx: 'growY', 
    before:  onBefore,
    after:   onAfter

});
$('#s2').cycle({
    fx:     'scrollLeft',
    timeout: 1000, 
    timeout: 0,
    next:   '.next',
    prev:   '.prev'
});
});
 
function onBefore() {
    $('#output').html("Scrolling image:<br>" + this.src);
    //window.console.log(  $(this).parent().children().index(this) );
}
function onAfter() {
    $('#output').html("Scroll complete for:<br>" + this.src)
        .append('<h3>' + this.alt + '</h3>');
}

