var current_tab_id;$(window).load(function(){$(".time_machine").time_machine({data:'06/28/2012-20:45:00:000',layout:'normal'});var urls=new Array("http://www.mariglianoinjazz.it/images/introduction/001.png","http://www.mariglianoinjazz.it/images/introduction/002.png","http://www.mariglianoinjazz.it/images/introduction/003.png","http://www.mariglianoinjazz.it/images/introduction/004.png","http://www.mariglianoinjazz.it/images/introduction/005.png");$("#image_container").really_preload_essential({url_resource:urls,skin:'white',photo_width:990,photo_height:280,border:'no',border_color:'#cac6c5',effects:'none',slide_time:'3000',call_back_function:'none'});if(document.location.search==""){var url_handle=document.URL.split('/');}else{var base_url=document.URL.split('?');var url_handle=base_url[0].split('/');} if(url_handle[url_handle.length-1]=="index.php"||url_handle[url_handle.length-1]==""){hound_position('tab_0');$("#channel_5").css({'display':'none'});channel_motion();}else if(url_handle[url_handle.length-1]=="info_page.php"){hound_position('tab_1');$(".channel_title a, #channel_4, .channel_details").remove();$(".link_channel_details a").each(function(){var url_link=$(this).attr('href');var father=$(this).parent();father.empty();$(this).remove();father.append("");});$("#channels").fadeIn(2000);}else if(url_handle[url_handle.length-1]=="news_page.php"){hound_position('tab_1');$(".channel_title a, #channel_2, .channel_details").remove();$(".link_channel_details a").each(function(){var url_link=$(this).attr('href');var father=$(this).parent();father.empty();$(this).remove();father.append("");});$("#channels").fadeIn(2000);}else if(url_handle[url_handle.length-1]=="program_page.php"){hound_position('tab_2');$(".channel_title a, .channel_details").remove();$(".link_channel_details a").each(function(){var url_link=$(this).attr('href');var father=$(this).parent();father.empty();$(this).remove();father.append("");});$("#channels").fadeIn(2000);}else if(url_handle[url_handle.length-1]=="artists_archive_page.php"){hound_position('tab_3');$(".channel_title a, #channel_3, .channel_details").remove();$(".link_channel_details a").each(function(){var url_link=$(this).attr('href');var father=$(this).parent();father.empty();$(this).remove();father.append("");});$("#channels").fadeIn(2000);}else if(url_handle[url_handle.length-1]=="sponsor_page.php"){hound_position('tab_4');$(".channel_title a, .channel_details").remove();$(".link_channel_details a").each(function(){var url_link=$(this).attr('href');var father=$(this).parent();father.empty();$(this).remove();father.append("");});$("#channels").fadeIn(2000);}else if(url_handle[url_handle.length-1]=="skidoo_page.php"){hound_position('tab_5');$(".channel_title a, .channel_details").remove();$(".link_channel_details a").each(function(){var url_link=$(this).attr('href');var father=$(this).parent();father.empty();$(this).remove();father.append("");});$("#channels").fadeIn(2000);} function hound_position(tab){$("#hound").css({'width':$("#"+tab).width()+'px','height':$("#"+tab).height()+'px','top':$("#"+tab).offset().top-5+'px','left':$("#"+tab).offset().left-5+'px'});$("#"+tab).css({'color':'#CAC6C5'});current_tab_id=tab;$("#hound").css({'visibility':'visible'});} $(".tab a").mouseover(function(){if($(this).attr('id')!=current_tab_id){$("#hound").stop();$("#hound").animate({'left':$(this).offset().left-5+'px','width':$(this).width()+'px'},500,'swing');}});$(".tab a").mouseout(function(){$("#hound").stop();$("#hound").animate({'left':$("#"+current_tab_id+"").offset().left-5+'px','width':$("#"+current_tab_id+"").width()+'px'},500,'swing');});$("#mail").qtip({content:'con la presente aderisco alle
attuali norme sulla privacy!',position:{my:'bottom left',at:'top center',target:$("#mail_label")},show:{event:'click',effect:function(offset){$(this).fadeIn(500);}},hide:{event:false,inactive:5000,effect:function(offset){$(this).fadeOut(500,function(){$('#mail').qtip('option',{'content.text':'con la presente aderisco alle
attuali norme sulla privacy!'});});}},style:{tip:true,classes:'ui-tooltip-dark'}});$(".ABC a").corner("5px");var get_num_var=new Array();var get_var=new Array();var current_letter;get_num_var=document.location.search.substring(1,document.location.search.length).split("&");for(i=0;i');$("#"+$(this).attr('selettore')+"").slideDown(1000,function(){$('html, body').animate({scrollTop:$(this).offset().top-remedial},1500);});}else{if($(this).attr('selettore')!=current_channel){var el=$(this);$("#"+current_channel+"").slideUp(1000,function(){current_channel_click.html('');current_channel_click=el;});current_channel=$(this).attr('selettore');if(!$.browser.msie){var remedial=$(this).height()+10;}else{var remedial=$(this).height()+10;} $(this).html('');$("#"+$(this).attr('selettore')+"").slideDown(1000,function(){$('html, body').animate({scrollTop:$(this).offset().top-remedial},1500);});}else{current_channel="";$(this).html('');$("#"+$(this).attr('selettore')+"").slideUp(1000,function(){if(!$.browser.msie){var remedial=$("#channel_time_machine_identifier").height()+10;}else{var remedial=$("#channel_time_machine_identifier").height()+10;} $('html, body').animate({scrollTop:$("#menu").offset().top-remedial},1500);});}}});} $(".album_viewer_charger").click(function(){var album=$(this).attr('album');$.ajax({type:'GET',url:'skidoo_album_charger.php',data:'id_album='+album,success:function(data){$("#album_viewer").html(data);$("#album_viewer").css({'display':'block'});$("#album_content").height($("#album_viewer").height());$(".album_container").css({'top':($(window).height()/2)-($(".album_container").height()/2)});$("#album_viewer").css({'display':'none'});$("#album_viewer").fadeIn();$(".close_album").click(function(){$("#album_viewer").fadeOut(2000);});},error:function(msg){alert("KO");response("ci sono problemi con il server! riprova in un secondo momento");}});});$("#register_button").click(function(){var campi=document.mail_utente.mail.value;Filtro=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;if(Filtro.test(campi)){$("#register_button img").remove();$("#register_button").append("");$.ajax({url:'subscribe.php?mail='+campi,success:function(data){$('#mail').qtip('option',{'content.text':data});$('#mail').qtip('show');document.mail_utente.mail.value="";$("#register_button img").remove();$("#register_button").append("");},error:function(msg){}});}else{$('#mail').qtip('option',{'content.text':'campo mail non valido!'});$('#mail').qtip('show');}});});