(function() { var js = document.createElement("script"); js.type = "text/javascript"; js.src= "http://cdn-1.thumbtackstatic.com/theme/scripts/release/widget_gallery_m_943ca87a5210458e656b0d6a240634ec1ecec341.js"; document.getElementsByTagName("head")[0].appendChild(js); })(); window.__tt_gallery_init = __tt_gallery_init = function() { var ul = document.getElementById("tt-photo-gallery-list"); var context = "#tt-photos"; var tt_allow_timer = true; ul.innerHTML = '
'; __tt_$("div#tt-galleria-container", context).html(""); __tt_$("div#tt-galleria-container img, ul#tt-photo-gallery-list img", context).live("mousedown", function() { tt_allow_timer = false; }); __tt_$("ul.tt-galleria-unstyled", context).addClass("tt-galleria").find("li").show(); __tt_$('ul.tt-galleria', context).galleria({ history: false, clickNext: true, insert: "#tt-galleria-container", onImage: function(image, caption, thumb) { if (!(jQuery.browser.mozilla && navigator.appVersion.indexOf("Win")!=-1) ) { image.css('opacity', .1).fadeTo('slow', 1); } var _li = thumb.parents("li"); _li.siblings().removeClass('selected').removeClass("active"); _li.addClass('selected'); __tt_$("#tt-galleria-container", context).trigger('img_change'); image.after(''); } }); __tt_$('ul#tt-photo-gallery-list', context).jcarousel({ scroll: 1, initCallback: function(carousel) { __tt_$('#tt-galleria-container', context).bind('img_change',function() { var num = parseInt(__tt_$('ul#tt-photo-gallery-list li.active', context).attr('jcarouselindex')); carousel.scroll(num); return false; }); }, forceWidth: 51, buttonNextHTML: null, buttonPrevHTML: null }); __tt_$("#tt-gallery-prev").click(function() { __tt_$.galleria.prev(); tt_allow_timer = false; return false; }); __tt_$("#tt-gallery-next").click(function() { __tt_$.galleria.next(); tt_allow_timer = false; return false; }); setTimeout(function() { __tt_$.galleria.activate("http://pictures-e5.thumbtackstatic.com/pictures/370/9nalj8rnt67cxx_400.jpg"); window.__tt_gallery_interval = setInterval(function() { if (tt_allow_timer) { __tt_$.galleria.next(); } }, 5000); }, 1000); } window.__tt_gallery = __tt_gallery = function() { __tt_$(document).ready(function() { __tt_gallery_init(); var ss = document.createElement('link'); ss.type = 'text/css'; ss.rel = 'stylesheet'; ss.href = 'http://cdn-1.thumbtackstatic.com/theme/widgets/photogallery/styles_1.css'; document.getElementsByTagName("head")[0].appendChild(ss); }); }