//SIFR - Cufòn Cufon.replace('#menu', { color: '#fff', hover: { color: '#edea88' } }); Cufon.replace(['h1','h2','h3','h4', 'h5', 'h6']); //toggle visibility function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //jQuery $(document).ready(function(){ //Newsletter $('#myForm').ajaxForm({ target : '#log', success: function() { $('#log').fadeIn('slow'); } }); //fancybox //$(".fancybox").fancybox({ 'titleShow': false }); //$(".fbox").fancybox({ 'titleShow': false, 'width': 900, 'height': 600, 'autoDimensions': false }); //toggle input value swapValue = []; $(".itxt").each(function(i){ swapValue[i] = $(this).val(); $(this).focus(function(){ if ($(this).val() == swapValue[i]) { $(this).val(""); } $(this).addClass("focus"); }).blur(function(){ if ($.trim($(this).val()) == "") { $(this).val(swapValue[i]); $(this).removeClass("focus"); } }); }); //Fadeimg $(".pimg").fadeTo("slow", 1.0); //Opacity on load $(".pimg").hover( function(){ $(this).fadeTo("fast", 0.7); }, //Opacity on hover function(){ $(this).fadeTo("fast", 1.0); //Opacity on mouseout }); //Toggle $(".toggle_container").hide(); $(".trigger").click(function(){ $(this).toggleClass("active").next().slideToggle("slow"); }); }); //toggle visibility function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //ShadowBox Shadowbox.init({ //skipSetup: true, overlayColor: '#000000', overlayOpacity: '0.4', language: 'it', players: ['img', 'html', 'iframe'] }); function openShadowbox(){ window.open('evento.php?id=4','_self'); } toggle_visibility("unhide"); toggle_visibility("box"); toggle_visibility("footer");