$(document).ready(function (){
	$(".dropdown-page-more").click(function (){
		$(this).slideUp("fast");
		
		$(".dropdown-page-ajax-full").slideUp("fast", function(){
			$(this).removeClass("dropdown-page-ajax-full");			
			$(".dropdown-page-image-large").animate({width: "100px"}, 800, 'swing', function(){
				$(this).removeClass("dropdown-page-image-large");			
				$(this).next().animate({width: "540px"}, 800, 'swing', function(){
					$(this).children(".dropdown-page-short").children(".dropdown-page-more").show();
				});
			});	
		});
												      
		$(this).parent().parent().animate({width: "440px"}, 800, 'swing', function(){
			$(this).prev().addClass("dropdown-page-image-large");
			$(this).prev().animate({width: "200px"}, 800, 'swing', function(){
				var url = $(this).next().children(".dropdown-page-short").children(".dropdown-page-more").attr("href");				
				$(this).next().children(".dropdown-page-ajax").addClass("dropdown-page-ajax-full").load(url, function(){
					$(this).slideDown(300);						
				});										
			});
		});						
																
		return false;		
	}); 
	
	var hashArg = window.location.href;
	if(hashArg.lastIndexOf("#") > 0) {
		hashArg = hashArg.substring(hashArg.lastIndexOf("#") + 1, hashArg.length);		
		$("#"+hashArg).trigger('click');
	}	
});