jQuery(document).ready(function($) { var scrollablee; var largeCarousel = $("#large_carousel ul"); var carouselNext = $("#carousel_next"); var carouselPrev = $("#carousel_previous"); var scrollable = $(".scrollable"); var scrollable_popular = $(".scrollable_popular"); var scrollable_everything = $(".scrollable_everything"); var firstArtistP = $(".artist_bio p:eq(0)"); var buyButton = $(".wpsc_buy_button"); var digitalDropdowns = $(".digital_dropdown"); $('.disabled').each(function(){ $(this).parent().hide(); }); $('.wpsc_also_bought_item:last').addClass('last'); $("#video_artists_drop").change(function(i) { var $parentt = $(this).parent().parent(); $parentt.attr('action', "/videos/"); $theartist = $parentt.find('select').attr('name', 'videoartist'); $parentt.find("fieldset:eq(0)").remove(); $search = $parentt.find("input[name=s]").val($(this).val()); $parentt.submit(); }); $("#tour_browser").change(function(i){ var $parentt = $(this).parent(); window.location = '/tours/?criteria='+$(this).val(); }); $(".youtube_thumb").fadeTo('fast', 0.7); $(".youtube_thumb").hover(function(){ $(this).fadeTo('slow', 1).parent().find('.play_btn').hide(); }, function(){ $(this).fadeTo('fast', 0.7).parent().find('.play_btn').show(); }); $("#footer .email").click(function(e){ $("#sendtofriend").modal(); e.preventDefault(); }); $("#subscribeform").submit(function(e){ e.preventDefault(); var submitting = false; if ($(this).find('input[type=text]').val() != "" || $(this).find('input[type=text]').val() != "Your email" && submitting == false) { submitting = true; $.ajax({ url: "/proxy.php?url="+escape($(this).attr('action')), type: "POST", data: $(this).serializeArray(), success: function(response) { submitting = false; $(this).find('input').val('').attr("disabled", true); $(this).find('button').hide(); $("#subscribe").css("background", "none"); $("#subscribe2").find('form').hide(); $("#subscribe2").append('

Thanks for subscribing! You\'ve been added to our mailing list.

'); //alert("Thanks for subscribing! You've been added to our mailing list."); } }); } else { alert("You need to enter an email address."); } e.preventDefault(); }); $(".scrollable").scrollable(); /* scrollablee = $(".limited_50 .scrollable").data("scrollable"); // Set to the number of visible items var size = 8; if (typeof scrollablee != "undefined") { // Handle the Scrollable control's onSeek event scrollablee.onSeek(function(event, index) { var leftpos = $(".limited_50 .items").css('left'); leftpos = leftpos.replace("-", ""); leftpos = leftpos.replace("px", ""); if (leftpos == 4970) { $(".limited_50 .next").addClass("disabled"); } }); } */ if (typeof (largeCarousel) !== "undefined") { largeCarousel.cycle(); } if (typeof (carouselPrev) !== "undefined") { carouselPrev.click(function(e){ largeCarousel.cycle('prev'); e.preventDefault(); }); } if (typeof (carouselNext) !== "undefined") { carouselNext.click(function(e){ largeCarousel.cycle('next'); e.preventDefault(); }); } if (typeof (firstArtistP) !== "undefined") { // Make the first paragraph on the artist bio page large italic text firstArtistP.addClass('italic_intro'); } if (typeof (digitalDropdowns) !== "undefined") { digitalDropdowns.region('hover', function(event, inside){ if(inside) { $(".digital_dropdown_options").fadeIn(); } else { $(".digital_dropdown_options").fadeOut('slow'); } }); } var variationDropdown = $(".wpsc_buy_button"); var variationForm = $(".wpsc_variation_forms"); var buttonContainer = $(".wpsc_buy_button_container"); var videoArchive = $(".custom-post-type-videos-archive"); var videoSingle = $(".single-videos"); var countClicks = 0; var totalVideos = 0; var interval = 0; });