$(document).ready(function(){ /** FANCYBOX **/ $("a.single-image").fancybox({ hideOnOverlayClick: false, overlayShow: false, titleShow: true, titlePosition: "over" }); $("a.map").live("click",function(e){ $.fancybox({ hideOnOverlayClick: false, overlayShow: false, autoScale: false, width: 640, height: 480, padding: 0, href: this.href, type: "iframe", titleShow: false }); return false; }); /** FORMULARIOS **/ $(".select-content").width($(".select-content").prev().width()+4); $("button.select").bind("click",function(e){ e.stopPropagation(); $(this).addClass("selected"); $(this).next().addClass("show"); }); $("button.select-option").bind("click",function(e) { $(this).nextAll("input.select-option-value:first").val($(this).val()); $(this).parent().prev().html("" + $(this).val()); }); $(document).bind("click",function(e) { $("button.select").removeClass("selected"); $("button.select").next().removeClass("show"); }); });