/* Transitions and timings for slideshows
 * November 2011
 *
 * Version: 1.1
 *
 */

$(document).ready(function() {

$(function() {

    // run the code in the markup!

    $('td pre code').each(function() {

        eval($(this).text());

    });

    

    //onAfter.apply($('td a:first')[0]);

});



function onAfter() {

    $('#output').html("Current anchor: " + this.href);

}

    $('.slideshow').cycle({
		fx:'fade',
		speed:1750,
	   	timeout:10000,
		pause:1
	});
    $('#slideshow-lounge').cycle({
		fx:'fade',
		speed:1750,
	   	timeout:10000,
		pause:1,
		after:onAfter 
	});
    $('#slideshow-functionroom').cycle({
    	fx:'fade',
		speed:1750,
	   	timeout:10000,
		pause:1,
	    	delay:3500
	});
    $('#slideshow-nightclub').cycle({
    	fx:'fade',
		speed:1750,
	   	timeout:10000,
		pause:1,
	    	delay:6500
	});
});
