
$(document).ready(function(){

	
	$("ul.tabs").tabs("div.panes > div");
	
	// LINK SLIDE RIGHT
	$("#footer_right ul li a, .dp_links ul li a, .subnav ul li a").hover(function(){
    $(this).stop().animate({paddingLeft: "10px"}, 200);
    }, function() {
    $(this).stop().animate({paddingLeft: 0	}, 200);
    });
	

	//TABS SLIDE UP
	$(".socials ul li a").hover(function(){
    $(this).stop().animate({top: "-5px"}, 100);
    }, function() {
    $(this).stop().animate({top: 0	}, 100);
    });
	
	
	$('.rlrow1, .rlrow2').hover(function(){
	
	$('.tolltipImage_under').stop().hide().fadeTo("normal", 1);
	('.tolltipImage_under').fadeTo("normal", 0).hide();});

	})   



function slideSwitch() {
    var $active = $('#slideshow IMG.active, #premises_slideshow IMG.active');
 
    if ( $active.length == 0 ) $active = $('#slideshow IMG:last, #premises_slideshow IMG:last');
 
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first, #premises_slideshow IMG:first');
 
 
 
    $active.addClass('last-active');
 
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}
 
$(function() {
    setInterval( "slideSwitch()", 4000 );
});



/* SLIDESWITCH PREIMSES 
function slideSwitch_premises() {
    var $active = $('#premises_slideshow IMG.active');
 
    if ( $active.length == 0 ) $active = $('#premises_slideshow IMG:last');
 
    var $next =  $active.next().length ? $active.next()
        : $('#premises_slideshow IMG:first');
 
 
 
    $active.addClass('last-active');
 
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}
 
$(function() {
    setInterval( "slideSwitch_premises()", 4000 );
});
*/

