$(document).ready(function(){
    $('#slider').orbit({
            animation: 'horizontal-push',                  // fade, horizontal-slide, vertical-slide, horizontal-push
            animationSpeed: 800,                // how fast animtions are
            timer: true, 			 // true or false to have the timer
            advanceSpeed: 12000, 		 // if timer is enabled, time between transitions 
            pauseOnHover: false, 		 // if you hover pauses the slider
            startClockOnMouseOut: false, 	 // if clock should start on MouseOut
            startClockOnMouseOutAfter: 1000, 	 // how long after MouseOut should the timer start again
            directionalNav: true, 		 // manual advancing directional navs
            captions: false, 			 // do you want captions?
            captionAnimation: 'fade', 		 // fade, slideOpen, none
            captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
            bullets: false,			 // true or false to activate the bullet navigation
            bulletThumbs: false,		 // thumbnails for the bullets
            bulletThumbLocation: '',		 // location from this file where thumbs will be
            afterSlideChange: function(){} 	 // empty function 
    });
    $('.orbit-wrapper').width(932);
    $('#slider').width(932);
    
    $('.orbit-wrapper').height(437);
    $('#slider').height(437);
    
    jQuery(document).bind('keydown', 'left',function (evt){jQuery('#orbit-left').click(); return false; });
    jQuery(document).bind('keydown', 'up',function (evt){jQuery('.timer').click(); return false; });
    jQuery(document).bind('keydown', 'down',function (evt){jQuery('.timer').click(); return false; });
    jQuery(document).bind('keydown', 'right',function (evt){jQuery('#orbit-right').click(); return false; });
});

$(window).load(function() {
    var l = $('#height-1').height();
    var m = $('#height-2').height();
    var r = $('#height-3').height();
    var h = 0;
    if (r > m) {
        h = r;
    } else {
        h = m
    }
    if(h > l){
        h = h;
    }else{
        h = l;
    }
    $('.big').height(h);
});
