
$(function() {
	$("#frontend").jMyCarousel({
		speed: 130
	});
	$("#print").jMyCarousel({
		speed: 130
	});
	$("#illustrations").jMyCarousel({
		speed: 130
      });
});








		jQuery(function( $ ){
	//
	 //Demo binding and preparation, no need to read this part
	 //
	//borrowed from jQuery easing plugin
	//http://gsgd.co.uk/sandbox/jquery.easing.php
	$.easing.elasout = function(x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	};
	// back links
	$('a.back').click(function(){
		$(this).parents('div.pane').scrollTo( 0, 800, { queue:true } );
		$(this).parents('div.section').find('span.message').text( this.title );
		return false;
	});
	//just for the example, to stop the click on the links.
	$('ul.links').click(function(e){
		e.preventDefault();
		var link = e.target;
		link.blur();
		if( link.title )
			$(this).parent().find('span.message').text(link.title);
	});
	
	// This one is important, many browsers don't reset scroll on refreshes
	// Reset all scrollable panes to (0,0)
	$('div.pane').scrollTo( 0 );
	// Reset the screen to (0,0)
	$.scrollTo( 0 );
	
	
	// Target examples bindings
	// THIS DEMO IS NOT INTENDED TO SHOW HOW TO CODE IT
	// JUST THE MULTIPLE OPTIONS. THIS CODE IS UGLY.
	var $paneTarget = $('body');
	
	$('.btn_1').click(function(){
		$paneTarget.stop().scrollTo( '1140px', 2500, {axis:'y'});
	});
	$('.btn_2').click(function(){
		$paneTarget.stop().scrollTo( '2150px', 2500, {axis:'y'});
	});
	$('.btn_3').click(function(){
		$paneTarget.stop().scrollTo( '3220px', 2500, {axis:'y'});
	});
	$('.btn_4').click(function(){
		$paneTarget.stop().scrollTo( '4270px', 2500, {axis:'y'});
	});
	$('.btn_5').click(function(){
		$paneTarget.stop().scrollTo( '10px', 2500, {axis:'y'});
	});

	//$(document).keypress(function (e) {
	//			
	//			
	//			if (e.keyCode == 67 || e.charCode == 67 || e.keyCode == 99 || e.charCode == 99){
	//					$paneTarget.stop().scrollTo( '1270px', 2500, {axis:'y'});
	//				};
	//				if (e.keyCode == 77 || e.charCode == 77 || e.keyCode == 109 || e.charCode == 109){
	//					$paneTarget.stop().scrollTo( '2240px', 2500, {axis:'y'});
	//				};
	//				if (e.keyCode == 89 || e.charCode == 89 || e.keyCode == 121 || e.charCode == 121){
	//					$paneTarget.stop().scrollTo( '3270px', 2500, {axis:'y'});
	//				};
	//				if (e.keyCode == 75 || e.charCode == 75 || e.keyCode == 107 || e.charCode == 107){
	//					$paneTarget.stop().scrollTo( '4330px', 2500, {axis:'y'});
	//				};
	//				if (e.keyCode == 72 || e.charCode == 72 || e.keyCode == 104 || e.charCode == 104){
	//					$paneTarget.stop().scrollTo( '170px', 2500, {axis:'y'});
	//				};
	//		
	// });
	
	
});




      		jQuery(document).ready(function($) {
		        $(".tweet").tweet({
		        	join_text: "auto",
            		username: "guilhermembento",
		            avatar_size: 48,
		    	    count: 1,
			        auto_join_text_default: "Disse,", 
		        	auto_join_text_ed: "Eu",
			        auto_join_text_ing: "we were",
			        auto_join_text_reply: "Respondi para",
			        auto_join_text_url: "Estava procurando",
			        loading_text: "Carregando tweets..."
		    	});
	    	 
	      });     





			$(document).ready(function(){
				$('.boxgrid').hover(function(){
					$(".boxcaption", this).stop().animate({top:'0px'},{queue:false,duration:200});
				}, function() {
					$(".boxcaption", this).stop().animate({top:'197px'},{queue:false,duration:200});
				});
			});






  
$(document).ready(function(){
						   $(".premio_1").fadeTo("fast", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".premio_1").hover(function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.3); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $(".deviantart").fadeTo("fast", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".deviantart").hover(function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.3); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $(".twitter").fadeTo("fast", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".twitter").hover(function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.3); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $(".flickr").fadeTo("fast", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".flickr").hover(function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.3); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $(".behance").fadeTo("fast", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".behance").hover(function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.3); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $(".designup").fadeTo("fast", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".designup").hover(function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.3); // This should set the opacity back to 30% on mouseout
						   });
						   });