DD_roundies.addRule('#content' ,'10px 10px 0 0')
DD_roundies.addRule('#sidebar .item' ,'10px')

//jQuery.extend( jQuery.easing,{ easeOutExpo: function (x, t, b, c, d) { return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;	} });
$(function(){
	//$('#corner-logo').fold({directory:'/turn',side:'right',autoCurl:true,maxHeight:270, startingWidth:60, startingHeight:60});
  $(".gallery-slider").scrollable({ circular: true }).navigator();
  $("#stripe-logos").scrollable({ })
	$('#product-images').each(function(){
		if($(this).find('li').size() > 6){
			$(this).scrollable()
		}else{
			$(this).parent().addClass('disabled')
		}
	})

  $(".thumb-images a,#product-images a,.videos a").prettyPhoto({theme:'facebook'});
  //$('.videos a').prettyPhoto({theme:'facebook',width:330,height:250});
  $('#content .years-timeline li a').click(function(){ $.scrollTo($(this).attr('href').match(/(#.*)$/)[1], 'normal'); return false; })
  $('#content .year-details .year-header .go-to-top').click(function(){ $.scrollTo($(document.body), 'normal'); return false; })

	$("#pageflip").hover(function() { //On hover...
		$("#pageflip img , .msg-block").stop()
			.animate({ 
				width: '210px',
				height: '210px'
			}, 500);
		} , function() {
		$("#pageflip img").stop()
			.animate({
				width: '50px',
				height: '52px'
			}, 220);
		$(".msg-block").stop() 
			.animate({
				width: '50px',
				height: '50px'
			}, 200); 
	});

})
