/* =============================================================================================================================================== */ DD_belatedPNG.fix("img, div, a, input, span"); $(document).ready(function(){ //$("div#slidebox").carousel({ autoSlide: true, loop: true, delayAutoSlide: 0, prevBtn: "vacio"}); $("#datepickerEntry").datepicker({ dateFormat: 'dd/mm/yy', prevText: '' ,nextText: '', firstDay:1, showOn: 'button', buttonImageOnly: true, buttonImage: 'include/i/calendar.png', onSelect: function(dateText, inst) { checkDates(dateText, inst); } }); $("#datepickerExit").datepicker({ dateFormat: 'dd/mm/yy', prevText: '' ,nextText: '', firstDay:1, showOn: 'button', buttonImageOnly: true, buttonImage: 'include/i/calendar.png', onSelect: function(dateText, inst) { checkDates(dateText, inst); } }); }); //CLOSING POPUP //Click the x event! $("#popupContactClose").click(function(){ disablePopup(currPopUp); }); //Click out event! $("#backgroundPopup").click(function(){ disablePopup(currPopUp); }); //Press Escape event! $(document).keypress(function(e){ if(e.keyCode==27 && popupStatus==1){ disablePopup(currPopUp); } }); function showEntryDatePicker() { $("#datepickerEntry").datepicker('show'); } function showExitDatePicker() { $("#datepickerExit").datepicker('show'); } function showNext(curr_img,idEl) { if ($(".border_alpha_active").length > 0) { $(".border_alpha_active").get(0).className = "border_alpha"; } var curr_src = $(curr_img).get(0).src; var tmp_src; var show_it = false; var showed = false; $(".border_alpha > img").each(function(i){ tmp_src = this.src.replace("tn_w93h93",""); /*if (i == $(".border_alpha > img").length) { swapimage(idEl,0,$(".border_alpha > img").get(0).src.replace("tn_w93h93",""),$(this).parent().get(0)); showed = true; $(this).parent().get(0).className = "border_alpha_active"; }*/ if (show_it && !showed) { swapimage(idEl,i,tmp_src,$(this).parent().get(0)); showed = true; $(this).parent().get(0).className = "border_alpha_active"; } if (curr_src == tmp_src) { show_it = true; } }); if ($(".border_alpha_active").length == 0) { swapimage(idEl,0,$(".border_alpha > img").get(0).src.replace("tn_w93h93",""),$($(".border_alpha > img").get(0)).parent().get(0)); var curr_page; var found = false; $("#paginado > a").each(function(i){ if (this.className == "current" && !found) { curr_page = i; found = true; } }); if (curr_page == $("#paginado > a").length-1) { curr_page = 0; } else { curr_page++; } fvDetalleColeccion('home',curr_page,1,'en'); } } function fvDetalleVisualizacionLite(piElemento, piPag, piVisualizar){ $("#foto_grande_content_somb img").load (function() { $("#foto_grande_content_somb").animate({ bottom: ($("#foto_grande_content_somb img").height()-319) + "px" }, 10000, "linear", function(){showNext("#foto_grande_content_somb img",piElemento);} ); }); $("#cart_instal .img_thumb_list:first").parent().click(); } function fvDetalleVisualizacion(piElemento, piPag, piVisualizar){ //Si el layer esta escondido, entonces hacer la llamada remota y abrir el layer //if ( ($("#divDetalle"+piElemento).is(":hidden")) || (piVisualizar==1)) { var ld = new Date(); var lsd = new String(ld); lsd = lsd.replace(/ /g, ''); var url_to_load = "./include/asp/seccion_detalle.asp?rqiIdElem=" + piElemento + "&rqiNumPag=" + piPag + "&rqiFile=home&lang=en×tamp=" + lsd; $("#divDetalle" + piElemento).load(url_to_load, function(){ $("#divDetalle" +piElemento).slideDown("slow", function(){ }); $("#foto_grande"+ piElemento + " img").load (function() { $("#foto_grande" + piElemento).animate({ bottom: ($("#foto_grande" + piElemento + " img").height()-319) + "px" }, 10000, "linear", function(){showNext("#foto_grande"+ piElemento + " img",piElemento);} ); }); //$("#pie").bottom = "250px"; }); /*} else { //Si el layer esta desplegado, esconderlo $("#divDetalle"+piElemento).slideUp("slow"); }*/ } /* =============================================================================================================================================== */