// SCRIPT SLIDING IPHONE STYLE
$(document).ready(function() {
$('#album').iphoneSlide({
    // Page items handler, default: the first child of the $('album').
    handler: "#paging",
    // Pages handler, default: the children of the handler.
    pageHandler : ".page",
    // Drag area handler, default: full page area.
    slideHandler : "",
    // You can define an element to handle this event(default: click) slide to next page.
    nextPageHandler : '#nextPage',
    // You can define an element to handle this event(default: click) slide to previous page.
    prevPageHandler : '#prevPage',
    // The friction of slide page.
    friction : 0.825,
    // When drag&drop page, the point length must be larger than this value which event will be fire.
    sensitivity : 20,
    // Slow down the page shift speed(ms).
    extrashift : 500,
    // If drag&drop over this time(ms), there will always slide 1 page.
    touchduring : 800,
    // Direction of slide, there are three directions you can choose(horizontal, vertical and matrix).
    direction : 'vertical',
    // Max slide page.
    maxShiftPage : 5,
    // It's only for dynamic page(s).
    pageshowfilter : false,
    // Support jquery easing plugin, via http://gsgd.co.uk/sandbox/jquery/easing/
    easing: "swing",
    // Turn on/off default animate effect "bounce".
    bounce: true,
    // When slide page completed, fire this.
    onShiftComplete : function(elem, page) {
        // this is parent of the handler.
        // elem is nowPage's page item.
        // page is "nowPage".
    }
});
});


$(document).ready(function (){
$('#menu1').click(function() { $('#album').iphoneSlide('jqipslide2page', 1, true); });
$('#menu2').click(function() { $('#album').iphoneSlide('jqipslide2page', 2, true); });
$('#menu3').click(function() { $('#album').iphoneSlide('jqipslide2page', 3, true); });
$('#menu4').click(function() { $('#album').iphoneSlide('jqipslide2page', 4, true); });
$('#menu5').click(function() { $('#album').iphoneSlide('jqipslide2page', 5, true); });
$('#menu6').click(function() { $('#album').iphoneSlide('jqipslide2page', 6, true); });
});
///////////////////////////////////////////

$(document).ready(function() {
	$("#hide").click(function () {
	  $("#navigation").hide("fade", {}, 2000); });
	$("#show").click(function () {
	  $("#navigation").show("fade", {}, 2000);      
	});
});


$(document).ready(function (){
$("#wrapper2").width($(window).height())
$("#wrapper2").height($(window).height()*0.67)

});
$(window).resize(function () {
$("#wrapper2").width($(window).height())
$("#wrapper2").height($(window).height()*0.67)
});

/////////////// FANCYBOX  /////////////////////

// $(document).ready(function (){
// $("a#anteprima").fancybox({
// 				'opacity'		: true,
// 				'overlayShow'	: false,
// 				'transitionIn'	: 'elastic',
// 				'transitionOut'	: 'none'
// 			});
// $("a#branded").fancybox({
// 				'overlayShow'	: false,
// 				'transitionIn'	: 'elastic',
// 				'transitionOut'	: 'elastic'
// 			});
// 
// });

