$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
});



 $(document).ready(function(){
	$('#success').hide();
	$('#error').hide();
 });
 
 
 $(document).ready(function(){
       $('#myReset').click(function(){
             $('#success').fadeOut();
             $('#error').fadeOut();
         });
    });
 

$(document).ready(function() {
    $('#slideshow').cycle({
    	fx:     'fade', 
    	timeout: 10000, 
    	random: 1,
	});
});

$(function() {
    $('#slideshow').cycle({
        fx:     'fade',
        speed:  'slow',
        timeout: 9000,
        after: setWidth,
        before: setWidth,
        random: 1
    });
});

function setWidth() {
    $('.slider-item').css({width : '100%'});
}

