jQuery.noConflict();
(function($, window, document, undefined){


$(function() { 



	// change thumbnails image
	$("ul.thumbs li a").click(function() {
		var mainImage = $(this).attr("href"); //Find Image Name
		$(".photo img").attr({ src: mainImage });
		return false;       
	});
	
	// dropdown submenu
	$(".sh").bind('mouseover', function(e) { 
        var title = $(this).attr('title');
        $('.'+title).show();
		$(this).addClass('hover');
	});
    
	$(".sh").bind('mouseout', function(e) { 
        var title = $(this).attr('title');
		$('.'+title).hide();
		$(this).removeClass('hover');
    });

	if ($.fn.datePicker)
	{
		$('.date-pick').datePicker({
			horizontalPosition: $.dpConst.POS_RIGHT
		}).val(new Date().asString()).trigger('change');
	}

	if (window['DD_belatedPNG'] !== undefined)
	{
		DD_belatedPNG.fix('#statue,h1 a,h1 a:visited');
	}

 $(".photocontainer").cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});

});


})(jQuery, window, document);
