// Console if (typeof console == 'undefined') { console = new Object; console.trace = function() {}; console.log = function() {}; console.debug = function() {}; console.info = function() {}; console.warn = function() {}; console.error = function() {}; console.time = function() {}; console.timeEnd = function() {}; console.count = function() {}; } else if (typeof console.time === 'undefined') { console.trace = function() {}; console.time = function() {}; console.timeEnd = function() {}; console.count = function() {}; } //////// RICONTESTUALIZZAZIONE DELLE THUMBAR GALLERY METHODE/////// function contestualizzaGallery(){ var curPage = jQuery("#fg_currentpage").val(); if (curPage != null){ // scifto alla pagina corretta! var spostadi = Math.ceil(curPage/5); spostadi--; for (var j=0; j5){ $("#next_gallery_bt").removeClass('hide'); } else{ $("#next_gallery_bt").addClass("hide"); } } else{ if(li_restanti_big>5){ $("#next_gallery_bt").removeClass('hide'); $("#prev_gallery_bt").removeClass('hide'); } else{ $("#next_gallery_bt").addClass("hide"); $("#prev_gallery_bt").removeClass('hide'); } } } /*********************************************************************** ************** DOCUMENT.READY ************** ***********************************************************************/ $(document).ready(function() { // HOMEPAGE --------------------------------------------------------------- if($('#photoHome').length != 0){ $("#photoHome").reflect({height: 1/8}); } $('.marker:eq(0)').addClass('actived'); $('.marker').click(function(){ var btActived = $(this).attr('class'); var btActived = btActived.split(" ",3)[2]; if (btActived == "actived") { window.location=$(this).attr('rel'); return false; } else { var numList = $(this).text(); $('.marker').removeClass('actived'); $(this).addClass('actived'); if(numList == "guardo"){var spostamentoSlide = 0}; if(numList == "ascolto"){var spostamentoSlide = -678}; if(numList == "assaporo"){var spostamentoSlide = -1356}; if(numList == "sfioro"){var spostamentoSlide = -2034}; if(numList == "cambio"){var spostamentoSlide = -2712}; if(numList == "scopro"){var spostamentoSlide = -3390}; if(numList == "scelgo"){var spostamentoSlide = -4068}; $('.sliderList').animate({ left: spostamentoSlide //height: 'toggle' }, 1000, function() { // Animation complete. }); } }); if($('#mycarouselDi').length != 0){ jQuery('#mycarouselDi').jcarousel(); jQuery('#mycarouselBlogger').jcarousel(); jQuery('#mycarouselCarnet').jcarousel(); } }); // CHIUSURA document.ready $(window).load(function(){ var versIe = parseInt(jQuery.browser.version); //if($.browser.safari) { if($('#center .corpo_bio div').length != 0){ }else{ if($('#vaschetta').length != 0){ if($(".dilatua").length !=0){ $('.send_commenti').css('display','none'); //var heightCenter = $('#center').height(); var heightCommenti = $('.list_commenti').height(); var height1 = $('#center h1').height(); var height2 = $('#center h3').height(); var height3 = $('#center .slide').height(); var height4 = $('#center .corpo').height(); if ( $.browser.msie ) { var heightCenter = height1+height2+height3+height4+10; if (versIe<=7) { $('#center').css('height',(heightCenter+280+heightCommenti)+'px'); $(".aggiungi_nota").each( function(){ $(this).click(function(){ $('#center').css('height',(heightCenter+280+heightCommenti+390)+'px'); }); }); } }else{ var heightCenter = height1+height2+height3+height4; } $('#center .dilatua').css('margin-top','170px'); $('#center').css('margin-bottom','10px'); }else{ var heightCenter = $('#center').height(); $('#center').css('margin-bottom','170px'); } var heightSlide = $('#center .slide').height()/2; $('#prev_gallery').css('margin-top',heightSlide+'px'); $('#next_gallery').css('margin-top',heightSlide+'px'); if (jQuery.browser.msie) { if (versIe==6) {$('#vaschetta').css('top',(heightCenter+30)+'px');} }else{ $('#vaschetta').css('top',(heightCenter+120)+'px'); } contestualizzaGallery(); } } //} });