jQuery(document).ready(function() {
    // LOGIN BOX
    jQuery('#wp_sidebarlogin-3 h3.ng-widget-title').css('cursor', 'pointer').click(function() {
        jQuery('#wp_sidebarlogin-3 div.sub').slideToggle();
    });
    jQuery('#content.projectspage .projectswrapper').hover(
        function(){
            jQuery(this).css('border-color', '#97BF0D');
        },
        function(){
            jQuery(this).css('border-color', 'transparent');
    });

    jQuery('#featuredSlider').coinslider({
        hoverPause: true,
        width: 700,
        height: 155,
        effect: 'straight',
        delay: 30000
    });

    jQuery('#newestPosts .newsElementText').hover(
        function(){
            jQuery(this).animate({top:0}, 115);
        },
        function(){ 
            jQuery(this).animate({top:115}, 0);
        }
    );

    jQuery('#content.projectspage .newsElementText').hover(
        function(){
            jQuery(this).animate({top:0}, 'slow');
        },
        function(){
            jQuery(this).animate({top:220}, 'slow');
        }
    );

    jQuery('.lists .toggler .slider').css({
        'display': 'none',
        'position': 'absolute',
        'z-index': 200,
        'top' : 20
    });
    jQuery('.lists .toggler h5.down').css({
        'position': 'absolute',
        'z-index': 150,
        'top' : 0
    });
    jQuery('.lists .toggler h5.down').css('cursor', 'pointer').click(function() {
        jQuery(this).parent().children('h5.down').slideUp('slow', function() {
            jQuery(this).parent().children('div.slider').slideDown(600, function() {
                jQuery(this).addClass('active');
            });
        });
    });
    jQuery('.lists .description h5.up').css('cursor', 'pointer').click(function() {
        // jQuery('.lists .toggler .slider').slideUp(20);
        jQuery('.lists .toggler .slider').slideUp(400, function(){
            jQuery(this).parent().children('h5.down').slideDown('fast');
        }).removeClass('active');
        //jQuery(this).parent().children('div.slider').slideDown(1500);
    });

    // style facebook box
    jQuery('iframe#f116394d37d7b6 div.fbDarkWidget').css('border', '0px important');
});
