jQuery.noConflict();
                jQuery(document).ready(function(jQuery) {
				
        var thumbnails = 'a:has(img)[href$=".bmp"],a:has(img)[href$=".gif"],a:has(img)[href$=".jpg"],a:has(img)[href$=".jpeg"],a:has(img)[href$=".png"],a:has(img)[href$=".BMP"],a:has(img)[href$=".GIF"],a:has(img)[href$=".JPG"],a:has(img)[href$=".JPEG"],a:has(img)[href$=".PNG"]';
                    jQuery(thumbnails).attr({
                        rel: function() {
                            aParent = jQuery(this).parent().parent().attr('id');
                            if(aParent=='gallery') {
                                return 'prettyPhoto[gallery]'
                            } else {
                                return 'prettyPhoto[mixed]'
                            }
                        },
                        title: function() {
                            aTitle = jQuery(this).attr('title');
                            if(aTitle=='') {
                                return jQuery(this).find('img').attr('alt')
                            }
                        }
                    });

                    jQuery("a[rel^='prettyPhoto']").prettyPhoto({
                        animationSpeed: 'normal',
                        padding: 40,
                        opacity: 0.5,
                        showTitle: false,
                        allowresize: true,
                        counter_separator_label: ' of ',
                        theme: 'dark_square'
                    });
                });

jQuery(document).ready(function(){
    jQuery("#sidebar img, #footer img, #gallery img, .social_icons li img").hover(function() {
      jQuery(this).stop().animate({opacity: "0.4"}, 'slow');
    },
    function() {
      jQuery(this).stop().animate({opacity: "1"}, 'slow');
    });
  });

