jQuery.noConflict();
jQuery(document).ready(function($){

  $('.logos img:last').css('margin-right', '0');

	$('#addthis').hover(
		function(){ return addthis_open(this, '', '[URL]', '[TITLE]'); },
		function(){ addthis_close();  }
	);	
  $('#addthis').click(function(){ return addthis_sendto(); });


  if( $('.sidebar').length > 0) { 
    $('.sidebar').appendTo('#placeholder-box3'); 
    $('.sidebar').show(); 
    $('.sidebar').children().fadeIn('fast');
    $('.sidebar').parent().css('border-top', 'solid 1px #55441F');
  }

  if( $('#custom-img').length > 0) {
    $('#placeholder-hero').empty();
    $('#custom-img').appendTo('#placeholder-hero').show();
  }
    
  if( $('.cycle').length > 0) { $('.cycle').cycle(); }

  $("a[rel]").overlay();

	$('.opacity50').hover(
		function(){ $(this).fadeTo('fast', 1); },
		function(){ $(this).fadeTo('fast', 0.5);  }
	);	

	$('.opacity75').hover(
		function(){ $(this).fadeTo('fast', 1); },
		function(){ $(this).fadeTo('fast', 0.75);  }
	);	

  $('a[href^="http://"]')
  .attr({
    target: "_blank", 
    title: "Opens in a new window"
  });

}); 
