$(function() {
$('.photo .tip img').tooltip({
	delay: 0,
	opacity: 2,
	showURL: false,
	bodyHandler: function() {
		return $("<img/>").attr("src", this.src);
	},
	showBody:true
});

});

$(document).ready(function() {

	$("li:first-child").addClass("first");

	$(".displayControl").toggle(
      function () {
        $(this).attr("src","common/images/butt-displayList.gif");
		$("#assetContainer").addClass("list");
      },
      function () {
       $(this).attr("src","common/images/butt-displayThumbs.gif");
	   $("#assetContainer").removeClass("list");
      }
    );
	
	$(".reorder").toggle(function(){
	$(this).attr("src","common/images/butt-orderDown.gif");
	},
	function(){
	$(this).attr("src","common/images/butt-orderUp.gif");
	}
	);
	
	
	$(".reorder").click(function(){
			$(".days .dayContainer").reverseOrder();
			$(".assetList li:first-child").removeClass("first");
			$(".assetList li").reverseOrder();
			$(".assetList li:first-child").addClass("first");
			
		});	
});

