
jQuery(document).ready(function(){
/*	
jQuery(".menu li").hover(function() {   
    jQuery(this).find(".dropdown").delay(300).animate({height: "show"},300);
	},function(){
    	jQuery(this).find(".dropdown").delay(300).stop(true, true).animate({height: "hide"},300);
});

jQuery(".menu > li > a" ).click(function() { 
	jQuery(".menu > li > a").removeClass("selected");
	jQuery(".dropdown > li > a").removeClass("selected-sub");
	jQuery(this).addClass("selected");
});

jQuery(".dropdown > li > a").click(function() { 
	jQuery(this).parent().parent().parent().parent().find("li > a").removeClass("selected");
	jQuery(this).parent().parent().parent().find("> a").addClass("selected");
	
	jQuery(".dropdown > li > a").removeClass("selected-sub");
	jQuery(this).addClass("selected-sub");

});
*/

	jQuery(function() {jQuery(".screen img").autoMouseOver();});    
	jQuery(function() {jQuery(".coffee img").autoMouseOver();}); 
	jQuery(function() {jQuery(".iphone img").autoMouseOver();}); 
	jQuery(function() {jQuery(".ipad img").autoMouseOver();}); 
	jQuery(function() {jQuery(".mouse img").autoMouseOver();}); 

	jQuery(".mouse").stop(true,true).mouseover(function(){
		  jQuery(this).animate({'rotate': 40});
		  jQuery(this).animate({
			  marginTop: "350px",
			  marginLeft: "650px"
		  }, 1500 );
	});
	
	jQuery(".mouse").stop(true,true).mouseover(function(){
		  jQuery(this).animate({'rotate':0});
		  jQuery(this).animate({
			  marginTop: "330px",
			  marginLeft: "630px;"
		  },1500);
	});
	
	jQuery(".ipad").stop(true,true).mouseover(function(){
		  jQuery(this).animate({'rotate': -42}, 500);
	});
	
	jQuery(".ipad").stop(true,true).mouseover(function(){
		  jQuery(this).delay(1000).animate({'rotate':0} ,1500);
	});
	
	jQuery(".iphone").stop(true,true).mouseover(function(){
		  jQuery(this).animate({
			  marginTop: "370px",
			  marginLeft: "78px",
		  }, 1500 );
		  jQuery(this).animate({'rotate':-38});
	});
	
	jQuery(".iphone").stop(true,true).mouseover(function(){
		  jQuery(this).delay(1000).animate({'rotate':0});
		  jQuery(this).animate({
			  marginTop: "350px",
			  marginLeft: "90px",
		  }, 1500 );
	});
	/*
	jQuery("img.hover").hover(function(){
	  jQuery(this).animate({"opacity": "0.8"}, "medium");
	},
	function(){
	  jQuery(this).animate({"opacity": "1"}, "medium");
	});
	*/
/*
	jQuery(".navigation-item").hover(function(){  jQuery(this).stop().animate({"padding-top": "15"}, "fast");},
								function(){  jQuery(this).stop().animate({"padding-top": "7"}, "medium");
	});
	*/
	/*
	jQuery(".category").hover(function(){
		jQuery(this).find('.filtrable-text').stop(true,true).fadeIn("slow");
	  	jQuery(this).find('.zoom-project').stop(true,true).fadeIn("slow");
	  	jQuery(this).find('.href-project').stop(true,true).fadeIn("slow");
	},
	function(){
	  	jQuery(this).find('.filtrable-text').stop(true,true).fadeOut("slow");
	  	jQuery(this).find('.zoom-project').stop(true,true).fadeOut("slow");
	  	jQuery(this).find('.href-project').stop(true,true).fadeOut("slow");
	});
	
	jQuery(".portfolio-one-item").hover(function(){
		jQuery(this).find('.picture-one-text').stop(true,true).fadeIn("slow");
	  	jQuery(this).find('.zoom-project-one').stop(true,true).fadeIn("slow");
	  	jQuery(this).find('.href-project-one').stop(true,true).fadeIn("slow");
	},
	function(){
		jQuery(this).find('.picture-one-text').stop(true,true).fadeOut("slow");
	  	jQuery(this).find('.zoom-project-one').stop(true,true).fadeOut("slow");
	  	jQuery(this).find('.href-project-one').stop(true,true).fadeOut("slow");
	});
	*/
	
	
	
/*
	jQuery(".scrollto").click(function() {
		jQuery.scrollTo(jQuery(jQuery(this).attr("href")), {
			duration: 1000,
			axis:'y',
			easing: 'easeOutCubic'
		});
		window.location.hash = jQuery(this).attr("href");
		return false;
	});
	*/
	
	//Scroll to #header on click on the arrow - simple
	/*	jQuery('.inter-section .simple-bottom').click(function(){
		jQuery.scrollTo('#header', {
			duration: 1000,
			axis:'y',
			easing: 'easeOutCubic'
		});
	});*/
	
	//Hide CSS3 Intro and scroll up
	/*
	jQuery('.inter-section .simple-bottom').click(function(){
  jQuery('#content').fadeOut(1000,function(){

    	jQuery.scrollTo('#header', {
			duration: 1000,
			axis:'y',
			easing: 'easeOutCubic'
		});

});
});
	*/
	
	//Tumbl like effect for the intro
jQuery('#header-wrap').hide(0);
jQuery('#content-wrap').hide(0);
jQuery('#footer-wrap').hide(0);
var windowHeight = jQuery(window).height();
windowHeight -= 50;
jQuery('#content').height(windowHeight);

jQuery('#go-button, .tooltip').mousedown(function(){
                    jQuery('#header-wrap').show(0);
                    jQuery('#content-wrap').show(0);
                    jQuery('#footer-wrap').show(0);
                     scrollDist=jQuery('#content').height();
                     scrollDist+=49;
                    jQuery('#content').animate({
                        marginTop: "-=" + scrollDist
                    }, 600);
});

});


	/*
	jQuery('a.top').click(function(){
			jQuery.scrollTo('#header', {
			duration: 1000,
			axis:'y',
			easing: 'easeOutCubic'
		});
	});
	*/

/*
jQuery(window).load(function() {
	
		jQuery('.filtrable-titles li a').click(function() {
				
					jQuery('.filtrable-titles li').removeClass('selected-filtrable');
					jQuery(this).parent('li').addClass('selected-filtrable');
					
					thisItem 			= jQuery(this).attr('id');
					
					if(thisItem != "all") {
					
						jQuery('.filtrable-items li[class='+thisItem+']').stop(true, true).show('slow')																	
						jQuery('.filtrable-items li[class!='+thisItem+']').stop(true, true).hide('medium')
					} else {
						jQuery('.filtrable-items li').stop().show('slow');
					}
				});
				
				jQuery('img.filtrable-image').animate({'opacity' : 0.95}).hover(function() {
					jQuery(this).animate({'opacity' : 1});
				}, function() {
					jQuery(this).animate({'opacity' : 0.95});
				});	
});
*/
/*
jQuery(document).ready(function(){
	jQuery(".group1").colorbox();
});
*/

