
$(function() {
    $('#slideshow1').cycle();
    });
    
function wakeup(x) {
    $("#centerlogo").delay(x).fadeOut(1000);
    }
    
function wakeupinstant() {
    $("#centerlogo").stop(true, true).fadeOut(1000);
    }

function scramble() {
    var x = 400; var y = 1150;
    $("#slideshow2 div").delay(x).fadeIn(700).cycle({delay:  x});
    x = x  + y;
    $("#slideshow6 div").delay(x).fadeIn(700).cycle({delay:  x});
    x = x  + y;
    $("#slideshow1 div").delay(x).fadeIn(700).cycle({delay:  x});
    x = x  + y;
    $("#slideshow4 div").delay(x).fadeIn(700).cycle({delay:  x});
    x = x  + y;
    $("#slideshow5 div").delay(x).fadeIn(700).cycle({delay:  x});
    x = x  + y;
    $("#slideshow3 div").delay(x).fadeIn(700).cycle({delay:  x});
    x = x  + y;
    $("#slideshow8 div").delay(x).fadeIn(700).cycle({delay:  x});
    x = x  + y;
    $("#slideshow7 div").delay(x).fadeIn(700).cycle({delay:  x});
    }
    
    
 $(document).ready(function(){
      $(".portfolionav a.next").mouseenter(function(){  $('.portfolionav a.next img').attr('src', 'images/button-blue.png')});
      $(".portfolionav a.next").mousedown(function(){  $('.portfolionav a.next img').attr('src', 'images/button-blue-2.png')});
      $(".portfolionav a.next").mouseup(function(){  $('.portfolionav a.next img').attr('src', 'images/button-blue.png')});
      $(".portfolionav a.next").mouseleave(function(){  $('.portfolionav a.next img').attr('src', 'images/button-red.png')});
      $(".portfolionav a.prev").mouseenter(function(){  $('.portfolionav a.prev img').attr('src', 'images/button-prev-blue.png')});
      $(".portfolionav a.prev").mousedown(function(){  $('.portfolionav a.prev img').attr('src', 'images/button-prev-blue-2.png')});
      $(".portfolionav a.prev").mouseup(function(){  $('.portfolionav a.prev img').attr('src', 'images/button-prev-blue.png')});
      $(".portfolionav a.prev").mouseleave(function(){  $('.portfolionav a.prev img').attr('src', 'images/button-prev-red.png')});
      });
