$(document).ready(function(){ $(function(){ $('#loopedSlider').loopedSlider({ autoStart: 5500, restart: 6000, containerClick: true, slidespeed: 1000, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); $(function(){ $('#loopedSlider2').loopedSlider({ autoStart: 5500, restart: 6000, containerClick: true, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); $(function(){ $('#loopedSliderTeam').loopedSlider({ autoStart: 5500, restart: 6000, containerClick: true, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); // twitter $(".tweet").tweet({ join_text: "auto", username: ["vtanoproblem"], avatar_size: 0, count: 1, auto_join_text_default: "", auto_join_text_ed: "", auto_join_text_ing: "", auto_join_text_reply: "", auto_join_text_url: "", loading_text: "" }); //end twitter //footer fade in //$("#footer").fadeTo("fast", 0.5); var activo = $.getQueryString({ ID:"p", DefaultValue:false }); if (activo) activo = parseInt(activo); //alert(activo); $("#accordion").accordion({ active: activo,autoHeight: false,header: 'h3',collapsible: true, navigation: false}); if (activo == 3) { $('#temas').load('lostemas.php?',function() { reloadall(); }); } //$("#accordion2").accordion({ active:1 ,autoHeight: false,header: 'h4',collapsible: true, navigation: false}); $("#accordion").bind('accordionchangestart', function(event, ui) { //alert(ui.newContent[1].attributes[0].childNodes[0].wholeText); if (ui.newContent[1] && ui.options.header != "h4" ) { //alert(ui.newHeader.context) //alert(ui.newContent[0].className); //var str = ui.newContent[1].attributes[0].childNodes[0].wholeText; var str = ui.newContent[0].className; var valor = str.search(/temas/i); } if ( valor >= 0) { //if (ui.newContent.context.id == "fiestastema") { //alert(str.search(/fiesta/i)) $('#temas').load('lostemas.php?',function() { reloadall(); }); } }); reloadall(); function regresar() { $("a.regresar").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('lostemas.php?',function() { reloadall(); });// end callback });// end click regresar }; // regresar function reloadall() { $("a.tema1").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('tema.php?id=1&', function() { regresar(); $(function(){ $('#loopedSliderBrava').loopedSlider({ autoStart: 5500, restart: 3000, containerClick: false, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); }); //end callback });// end click $("a.tema9").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('tema.php?id=9&', function() { regresar(); $(function(){ $('#loopedSliderBrava').loopedSlider({ autoStart: 5500, restart: 3000, containerClick: false, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); }); //end callback });// end click $("a.tema10").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('tema.php?id=10&', function() { regresar(); $(function(){ $('#loopedSliderBrava').loopedSlider({ autoStart: 5500, restart: 3000, containerClick: false, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); }); //end callback });// end click $("a.tema11").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('tema.php?id=11&', function() { regresar(); $(function(){ $('#loopedSliderBrava').loopedSlider({ autoStart: 5500, restart: 3000, containerClick: false, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); }); //end callback });// end click $("a.tema12").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('tema.php?id=12&', function() { regresar(); $(function(){ $('#loopedSliderBrava').loopedSlider({ autoStart: 5500, restart: 3000, containerClick: false, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); }); //end callback });// end click $("a.tema13").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('tema.php?id=13&', function() { regresar(); $(function(){ $('#loopedSliderBrava').loopedSlider({ autoStart: 5500, restart: 3000, containerClick: false, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); }); //end callback });// end click $("a.tema14").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('tema.php?id=14&', function() { regresar(); $(function(){ $('#loopedSliderBrava').loopedSlider({ autoStart: 5500, restart: 3000, containerClick: false, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); }); //end callback });// end click $("a.tema15").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('tema.php?id=15&', function() { regresar(); $(function(){ $('#loopedSliderBrava').loopedSlider({ autoStart: 5500, restart: 3000, containerClick: false, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); }); //end callback });// end click $("a.tema16").click(function(event){ event.preventDefault(); //stop default browser behaviour $('#temas').load('tema.php?id=16&', function() { regresar(); $(function(){ $('#loopedSliderBrava').loopedSlider({ autoStart: 5500, restart: 3000, containerClick: false, slidespeed: 100, // Speed of slide animation fadespeed: 500, // Speed of fade animation autoHeight: false }); }); }); //end callback });// end click } }); function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i