// JavaScript Document
$(document).ready(function() {
	
	$('#no-script').remove();
	
	$('#address').hide();
		
	$('div#wrapper')
	.hide()
	.fadeIn({duration: 1500, queue: false });
	
	$('#folio').hide().fadeIn(3500);
		
	$('#addressToggle')
	.css({ borderRight : '200px solid #eee' , padding : '0 5px 0 0' , left : '0px'})
	.animate({ borderRight : '0px solid #eee' , padding : '0 0 0 0' , left : '44px'},
	{duration: 'slow', easing: 'easeOutElastic', queue: false }
	);
	
	
	/*$('#addressToggle').click(function() { $('#address').toggle('fast');}); */
	
	//$('#logo').hover(function() { $(this).addClass('transparent');   // Logo Hover
	//}, function() { $(this).removeClass('transparent');
	//});
	
	$('#addressToggle').toggle(function() { 
		$(this).animate({'top':'246px'}, 800, 'easeOutElastic');
			$('#address').toggle(300 , 'easeOutBack');
				}, 
					function() { $(this).animate(
						{'top':'55px'}, 600, 'easeOutElastic');
						$('#address').fadeOut(1000);  }
				);

	//curvycorners config
	$('#address').corner();
	$('#folio').corner();
	$('img.pf').corner({
			  tl: { radius: 2 },
			  tr: { radius: 2 },
			  bl: { radius: 2 },
			  br: { radius: 2 }
			  });
		
		
			  
	/* Apply fancybox to multiple items */
		$('a.folio').fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	50, 
		'overlayShow'	:	true,
		'autoScale'		: 	true,
		'hideOnContentClick': true
	});	
	
});