function init() { $(".generalcontent.privacypolicy").length != 0 && $(".banner").addClass("small"); $(".varb .listingItemLI .listingImage a").click(function () { $(this).addClass("played"); $(this).find("img").hide(); $(this).find(".videoHolder").show(); $(this).find(".videoHolder").get(0).play() }); $(".greyListing .video").each(function () { $(this).get(0).play() }) } function initToolkit() { $(".listingImage").each(function () { var n = $(this); $(".listingHolder").imagesLoaded(function () { n.removeClass("listingImageLoad") }) }); /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? $("body").addClass("mobile") : $("body").addClass("desktop"); $(".menusMain").before("