jQuery(function() {

jQuery(".gallery-icon a").prettyPhoto({animationSpeed:'normal',theme:'light_square', show_title : false});
jQuery("a[rel^='prettyPhoto'], .gallery-icon a").prettyPhoto({animationSpeed:'normal',theme:'light_square', show_title : false});

jQuery('.fast-post-widget li:last').css({ 'border-bottom': 0 });
jQuery('.category-item:last').css({ 'border-bottom': 0 });
jQuery('.search-item:last').css({ 'border-bottom': 0 });
jQuery('.search-item:last').css({ 'margin-bottom': '20px' });

jQuery('.post-widget li:last').css({ 'margin-bottom': 0 });
jQuery('.post-widget li:last').css({ 'padding-bottom': 0 });
jQuery('.post-widget li:last').css({ border: 'none'});

jQuery('#tabs-1 ul li:last').css({ border: 'none'});
jQuery('#tabs-2 ul li:last').css({ border: 'none'});
jQuery('#tabs-3 ul li:last').css({ border: 'none'});

jQuery('#tabs-1 ul li:last').css({ 'margin-bottom': 0 });
jQuery('#tabs-2 ul li:last').css({ 'margin-bottom': 0 });
jQuery('#tabs-3 ul li:last').css({ 'margin-bottom': 0 });

jQuery('#tabs-1 ul li:first').css({ 'padding-top': 0 });
jQuery('#tabs-2 ul li:first').css({ 'padding-top': 0 });
jQuery('#tabs-3 ul li:first').css({ 'padding-top': 0 });

jQuery('#footer-content .one-third:last').addClass('last');
jQuery('#flickr_badge_image3').css({ 'margin-right': 0 });
jQuery('#flickr_badge_image6').css({ 'margin-right': 0 });
jQuery('#flickr_badge_image9').css({ 'margin-right': 0 });
jQuery('#flickr_badge_image12').css({ 'margin-right': 0 });


jQuery('.post-thumb').hover(function(){

        jQuery(this).stop().animate({ opacity: 0.8 }, 250);

}, function(){

        jQuery(this).stop().animate({ opacity: 1 }, 350);

    });

    jQuery('.post-thumb-category').hover(function(){

        jQuery(this).stop().animate({ opacity: 0.8 }, 250);

}, function(){

        jQuery(this).stop().animate({ opacity: 1 }, 350);

    });

    


    jQuery('.active').stop().css({ opacity: .1 });

    jQuery('#topbar-social li').stop().css({ opacity: 1 });

    jQuery('#topbar-social li').hover(function(){

    jQuery(this).stop().animate({ opacity: .5 }, 100);

    }, function(){

        jQuery(this).stop().animate({ opacity: 1 }, 150);

    });

});

function dropDown() {

	 jQuery("#topbar-nav li, #topbar-nav li ul li, #main-nav li, #main-nav ul li").hover(function() {

		jQuery(this).find('ul:first').stop(true, true).slideDown(300) //Slides down when hover the UL

	}, function() {

		jQuery(this).find('ul:first').stop(true, true).slideUp(200); //Slides up on mouseleave

	});

}
