
// Keyboard shortcuts to switch background image


	$(document.documentElement).keyup(function (event) {
/*	  if (event.keyCode == 37) {	// Previous 
	    $('a#bgPrevious').click();
	  } else if (event.keyCode == 39) {
	    $('a#bgNext').click();	// Next
	  }
*/	});

//Nav hide
	$(document).ready(function(){

    $('#navPortfolio > a').click(function(){
        $('#nav #navHome').animate({
            'padding-bottom' : 20
        },300);
        $('ul#portfolio').delay(400).slideDown();
        return false
    });
        
		$("#nav").delay(1200).animate({
				left: -230
			  }, 300);

   $("#nav").stop(true, true).hover(function(event){
		$(this).stop(true,true).animate({
				left: 0
			  }, 500);
			  return false
	 });
	 
     $('#nav').stop(true, true).mouseleave(function() {
       $(this).delay(1200).animate({
 				left: -230
 			  }, 800);
 			  return false
     });
     $('#phonenumber').click(function(){
        $(this).toggleClass('callme') 
     });
     
     $('#copy').click(function(){
        $(this).amimate({
            '-webkit-transform':'rotate(120deg)',
            '-moz-transform':'rotate(120deg)'
        })
     });
     


     
   });
	
