
$(document).ready(function () {


    $('.slideshow').cycle({
        fx:   'shuffle',
        shuffle: {
            top:  -10,
            left:  240
        },
        delay: 0
    });

    $('#slide').cycle({
          fx:    'curtainX',
          timeout: 0,
          speed:   300,
          startingSlide: 0
    });

    $('#slide1').mouseover(function() {
         $('#slide').cycle(1);
    })

    $('#slide2').mouseout(function() {
         $('#slide').cycle(0);
    })

    $('#logo').click(function() {
        location.href='/home';
    })


    $("a.fancy").fancybox({
            'transitionIn'	:	'elastic',
            'transitionOut'	:	'elastic',
            'speedIn'		:	500,
            'speedOut'		:	200,
            'overlayShow'	:	true
    });


});

function setAsHome() {  // ONLY IE
   document.body.style.behavior='url(#default#homepage)';
   document.body.setHomePage(window.location.href);
}

