'+r.price+" Credits<\/div><\/div><\/div>");t+="<\/div>"}return t}function _showOopsMessage(){oopsMsg.length>0&&oopsMsg.fadeIn()}function _hideOopsMessage(){oopsMsg.length>0&&oopsMsg.fadeOut()}function closeVgThankyouMsg(){vgThyankyouMsg.fadeOut()}function showVgThankyouMsg(n,t){giftsPopup.find("#imgLoader").hide();giftsPopup.find(".cover_layer").hide();let i=giftsPopup.find(".vg_msg");i.find(".center").html(n);i.show();let r=setTimeout(function(){if(t){let n=hostActionBtns.find(".selected"),t=n.closest(".host_container").data("nick");SetVirtualGiftsPopup(giftsPopup,n,t)}else closeShadowCont()},5e3)}function slideLeft(n,t,i){let r=n.find(".current"),o=i.index(r),u,f,e;o<1?(f=i.slice(0,i.length-1),u="-50%",e=i.last()):(f=r.prev(),u="0px",e=r.prev());doSlide(r,e,f,u)}function slideRight(n,t,i){let r=n.find(".current"),o=i.index(r),u,f,e;o>=i.length-1?(f=i,u="0px",e=i.first()):(f=r,u="-50%",e=r.next());doSlide(r,e,f,u)}function doSlide(n,t,i,r){n.removeClass("current");t.addClass("current");i.animate({"margin-left":r},{duration:"700"});let u=vg_sectionSlides.index(t);vg_circles.removeClass("selected").eq(u).addClass("selected")}function slideToSelected(n,t,i,r){let f=vg_circles.index(r),o=n.find(".current"),e=i.index(o);if(e!=f){let u;if(e
0){let n=t.data("imagebase").replace(tmlS,tmlB);t.data("imagebase",n)}});slideShowImg.mouseenter(function(){let n=$(this).parent(".host_img_container"),i=n.find("div.slideShow"),r=n.find("img").attr("src"),u=i.data("imagebase"),t=createImgArray(r,i.data("ssphotos"),u);typeof t!="undefined"&&t&&slideShow(n,t)});slideShowImg.mouseleave(function(){try{window.clearInterval(slideInterval)}catch(n){}});let n=HeaderJs(),t=$("#mylist_warning_container");if(t.length>0){let n=t.find(".reg_blue_btn");n.eq(0).on("click",function(){hideLVwarning("mylist_warning_container")});n.eq(1).on("click",function(){$.ajax({url:"/Services/GlobalService.ashx",type:"POST",data:{action:"cls_rv_list"},dataType:"json",cache:!1,success:function(n){n.success==1&&setTimeout(function(){document.location.reload(!0)},700)},failure:function(){hideLVwarning("mylist_warning_container")}})})}let i=$("#mylist_remove_expired_container");if(i.length>0){let n=i.find(".reg_blue_btn");n.eq(0).on("click",function(){hideLVwarning("mylist_remove_expired_container")});n.eq(1).on("click",function(){document.location.href="/mylist/?mltype=3&rnadc=1 "})}$("a").click(function(){typeof ClickTaleEvent=="function"&&($(this).find("span:last").length?ClickTaleEvent($(this).find("span:last").text()):ClickTaleEvent($(this).text()))});$("button").click(function(){typeof ClickTaleEvent=="function"&&ClickTaleEvent($(this).text())});$("input[type=button]").click(function(){typeof ClickTaleEvent=="function"&&ClickTaleEvent($(this).val())});$("img[alt], input[type=image][alt]").click(function(){typeof ClickTaleEvent=="function"&&ClickTaleEvent($(this).attr("alt"))});(n===MENU_ITEM_CLASS_HL.LiveNow||n===MENU_ITEM_CLASS_HL.MakeMyMonday||n===MENU_ITEM_CLASS_HL.Hentai)&&(setGetWarFr(),HL_Reload.init());hostListCont.length>0&&HL_AutoPlay.init();_bindAdsBlockDiv();initHLBannerVideo()});
/*! Idle Timer - v0.9.2 - 2013-08-04 * https://github.com/mikesherov/jquery-idletimer * Copyright (c) 2013 Paul Irish; Licensed MIT */
(function(n){n.idleTimer=function(t,i,r){r=n.extend({startImmediately:!0,idle:!1,enabled:!0,timeout:3e4,events:"mousemove keydown DOMMouseScroll mousewheel mousedown touchstart touchmove"},r);i=i||document;var f=n(i),u=f.data("idleTimerObj")||{},e=function(t){var u,f,o;if("number"==typeof t&&(t=void 0),u=n.data(t||i,"idleTimerObj"),u.idle=!u.idle,f=+new Date-u.olddate,u.olddate=+new Date,u.idle&&r.timeout>f)return u.idle=!1,clearTimeout(n.idleTimer.tId),r.enabled&&(n.idleTimer.tId=setTimeout(e,r.timeout)),void 0;o=n.Event(n.data(i,"idleTimer",u.idle?"idle":"active")+".idleTimer");n(i).trigger(o)},o=function(n){var t=n.data("idleTimerObj")||{};t.enabled=!1;clearTimeout(t.tId);n.off(".idleTimer")};if(u.olddate=u.olddate||+new Date,"number"==typeof t)r.timeout=t;else{if("destroy"===t)return o(f),this;if("getElapsedTime"===t)return+new Date-u.olddate}f.on(n.trim((r.events+" ").split(" ").join(".idleTimer ")),function(){var t=n.data(this,"idleTimerObj");clearTimeout(t.tId);t.enabled&&(t.idle&&e(this),t.tId=setTimeout(e,t.timeout))});u.idle=r.idle;u.enabled=r.enabled;u.timeout=r.timeout;r.startImmediately&&(u.tId=setTimeout(e,u.timeout));f.data("idleTimer","active");f.data("idleTimerObj",u)};n.fn.idleTimer=function(t,i){return i||(i={}),this[0]?n.idleTimer(t,this[0],i):this}})(jQuery);HL_AutoPlay={PLAY_TIME:15e3,init:function(){let n=this;n.initObjects();n.bindEvents();$.idleTimer(3e3)},initObjects:function(){let n=this;n.initApObjObject();n.currentMousePos={x:-1,y:-1}},initApObjObject:function(){let n=this;n.apObj={timer:0,last:-1,list:[],len:0}},bindEvents:function(){let n=this;$(document).mousemove(function(t){n.currentMousePos.x=t.pageX;n.currentMousePos.y=t.pageY});$(document).bind("idle.idleTimer",function(){n.AutoPlayStart()});$(document).bind("active.idleTimer",function(){n.AutoPlayStop()})},checkPosition:function(){let n=this;var t=!1;return $.each($(".host_img_container"),function(){var i=$(this),r=i.offset().top,f=r+i.height(),u=i.offset().left,e=u+i.width();if(n.currentMousePos.x>u&&n.currentMousePos.xr&&n.currentMousePos.y StopPlay",t.message)}}},StartPlay:function(n){let t=this;if(t.CheckAPObj()){var i=Math.floor(Math.random()*t.apObj.len);(t.apObj.last=i==t.apObj.last?Math.floor(Math.random()*t.apObj.len):i,t.apObj.list[t.apObj.last].obj.find(".movdiv").eq(1).trigger("mouseover"),n)||(t.apObj.timer=setTimeout(function(){t.StopPlay();t.StartPlay()},t.PLAY_TIME))}},CheckAPObj:function(){let n=this;return typeof n.apObj!="object"||n.apObj.list.length<=0||n.apObj.last==undefined||n.apObj.last<0?!1:!0},AutoPlayStop:function(){let n=this;n.StopPlay();n.initApObjObject()},AutoPlayStart:function(){let n=this;n.checkPosition()||(n.initApObjObject(),n.wS=$(window).scrollTop(),n.wT=n.wS+$(window).height(),$.each($(".host_img_container"),function(){var t=$(this),r=t.offset().top,u=r+t.height(),i;r>n.wS&&u0&&n.apObj.list.push({obj:t,name:i.attr("id"),id:t.parents("[data-current]").data("current").split("~")[0]}))}),n.apObj.len=n.apObj.list.length,n.apObj.last=0,n.apObj.len<=0)||n.StartPlay()}};const View={List:{Type:0,Component:"host_container",Container:"list"},Gallery:{Type:1,Component:"dhc_container",Container:"gallery"},Tiles:{Type:3,Component:"host",Container:"tiles"}},ViewType={0:{Type:0,Component:"host_container",Container:"list"},1:{Type:1,Component:"dhc_container",Container:"gallery"},3:{Type:3,Component:"host",Container:"tiles"}};HL_Reload={RELOAD_TIMEOUT:15e3,GetMoreHostAmount:20,TimesLoadOnScrollTillShowButton:3,init:function(){let n=this;if(this.$hostList=$(".hostList"),this.$hostList.lengh<=0){PrintLogOffice("HL_Reload > init","this.$hostList.lengh <= 0");return}if(this.TimesLoadedOnScroll=0,this.ajaxLoader=this.$hostList.find(".loader-at-the-bottom-of-hostlist"),this.hlViewType=Number(this.$hostList.data("hl-view-type")),isNaN(this.hlViewType)){PrintLogOffice("HL_Reload > init","hlViewType is not defined");return}if(this.$HostListContainer=this.$hostList.find("."+ViewType[this.hlViewType].Container),this.$HostListContainer.length>0){let t=this.$HostListContainer.find("."+ViewType[n.hlViewType].Component).first();if(t&&t.length>0){let n=this.$hostList.data("is-offline-list");n||this.StartAutoReplace();this.bindGetMoreHosts()}else PrintLogOffice("HL_Reload > init","no host components"),this.onNoNewHosts()}else PrintLogOffice("HL_Reload > init","this.$HostListContainer.length === 0")},StopAutoReplace:function(n,t){this.hlReloadId&&this.hlReloadId>0&&(clearTimeout(this.hlReloadId),this.hlReloadId=null);(n||t)&&PrintLogOffice(n,t)},StartAutoReplace:function(){let n=this;this.hlReloadId=setTimeout(function(){n.ReloadList()},this.RELOAD_TIMEOUT)},GetHosts:function(n,t){let i=this;$.ajax({type:"POST",url:"/services/contentgalleryservice.ashx",data:n,success:function(n){let r=$(n).find("."+ViewType[i.hlViewType].Component);typeof t=="function"&&t(r)}})},onReloadList:function(n){if(n&&n.length>0){let t=this;$.each(n,function(){let n=$(this);var i=n.data("prev"),r=t.$HostListContainer.find("div[data-current^='"+i+"~']");t.BindHostComponentSlideShow(n);t.TilesBigImageCase(r);t.replaceWithFadeTo(r,n,i)});n=null}},ReloadList:function(){let n=this,t=n.$HostListContainer.find("."+ViewType[n.hlViewType].Component).not(`.${AdsAssets.SpecialClass.Loger}.${AdsAssets.SpecialClass.BlockDiv}`);if(t&&t.length>0){this.itemsOnThePage=t.map(function(){return this.getAttribute("data-current")}).get().join();let i={cmd:"hostlist",current:this.itemsOnThePage,top:t.length};n.GetHosts(i,n.onReloadList.bind(this));n.hlReloadId=setTimeout(function(){n.ReloadList()},n.RELOAD_TIMEOUT);t=null}},GetMoreHosts:function(){let n=this,t=n.$HostListContainer.find("."+ViewType[n.hlViewType].Component);if(t&&t.length>0){let i={cmd:"hostlist",top:t.length+this.GetMoreHostAmount};n.GetHosts(i,n.onGetMoreHosts.bind(this));t=null}else this.StopGetHostsOnScroll("HL_Reload > GetMoreHosts","false: hostComponents && hostComponents.length > 0")},StopGetHostsOnScroll:function(n,t){(n||t)&&PrintLogOffice(n,t);this.LockedGetMoreHosts=!0;this.StopLoadHostsOnScroll=!0;this.ajaxLoader.addClass("dn-important")},bindGetMoreHosts:function(){let n=this;$(window).scroll(function(){if(!n.LockedGetMoreHosts){let t=$(window).scrollTop()>=parseInt(n.$hostList.css("height"))-$(window).innerHeight()-n.$hostList.offset().top;t&&(n.lastScrollPosition=n.getLastScrollPosition(),n.LockedGetMoreHosts=!0,n.GetMoreHosts(),setTimeout(function(){n.ajaxLoader.removeClass("dn-important")},100))}})},onGetMoreHosts:function(n){let t=this,i=t.$HostListContainer.find("."+ViewType[t.hlViewType].Component);if(i&&i.length>0&&n&&n.length>0){this.StopAutoReplace("HL_Reload > StopAutoReplace","Enter onGetMoreHosts");let u=i.map(function(){return this.getAttribute("data-hid")}).get();i=null;let f=n.map(function(){return this.getAttribute("data-hid")}).get(),r=f.filter(function(n){return u.indexOf(n)<0});if(r.length===0){this.onNoNewHosts();this.StartAutoReplace();return}t.ajaxLoader.addClass("dn-important");$.each(n,function(){let n=$(this);for(let i=0;i onGetMoreHosts","NO hostComponents or no $newHosts")},onNoNewHosts:function(){this.StopGetHostsOnScroll("HL_Reload > onNoNewHosts","no new hosts");this.$showMoreHostsButton&&this.$showMoreHostsButton.length>0&&this.$showMoreHostsButton.hide()},UpdateTimesLoadedOnScroll:function(){this.TimesLoadedOnScroll++;this.TimesLoadedOnScroll===this.TimesLoadOnScrollTillShowButton&&(this.StopGetHostsOnScroll("HL_Reload > UpdateTimesLoadedOnScroll","bindShowMoreHostButton > Showing Button"),this.bindShowMoreHostButton())},bindShowMoreHostButton:function(){let n=this;const t="#showMoreHostsButton";n.$showMoreHostsButton=$(t);n.$showMoreHostsButton.length===0?(this.$HostListContainer.after("Show More Hosts<\/div>"),this.$showMoreHostsButton=$(t),this.$HostListContainer.siblings(".showMoreHosts").first().unbind("click").click(function(){n.ajaxLoader.removeClass("dn-important");n.StopLoadHostsOnScroll=!1;n.TimesLoadedOnScroll=-1;n.lastScrollPosition=n.getLastScrollPosition();n.GetMoreHosts();n.$showMoreHostsButton.hide()})):n.$showMoreHostsButton.show()},getLastScrollPosition:function(){return $(window).scrollTop()},TilesBigImageCase:function(n){if(n&&n.length>0){let i=this;if(ViewType[i.hlViewType].Component===ViewType[3].Component&&i.isThisBigImg(n)){let i=n.find("img");i.attr("src",i.attr("src").replace(tmlS,tmlB));var t=n.find(".slideShow");t.length>0&&t.data("imagebase",t.data("imagebase").replace(tmlS,tmlB))}}else PrintLogOffice("HL_Reload > TilesBigImageCase","false: $host && $host.length > 0")},BindHostComponentSlideShow:function(n){if(n&&n.length>0){let t=n.find("div.slideShow").parent(".host_img_container");t.length>0&&(t.mouseenter(function(){let n=$(this);n.find("div.semi_blue").show();n.find("span.slideshow_txt").show();let i=n.find("div.slideShow"),t=createImgArray(n.find("img").attr("src"),i.data("ssphotos"),i.data("imagebase"));typeof t!="undefined"&&t&&slideShow(n,t)}),t.mouseleave(function(){try{$(this).find("div.semi_blue").hide();window.clearInterval(slideInterval)}catch(n){}}))}else PrintLogOffice("HL_Reload > BindHostComponentSlideShow","false: $host && $host.length > 0")},isThisBigImg:function(n){if(n&&n.length>0){if(n.find("img[src*='"+tmlB+"']").length>0)return!0;let i=this,t=i.$HostListContainer.find("."+ViewType[i.hlViewType].Component).first();if(t&&t.length>0){let i=t.width();if(i isThisBigImg","no $firstHostComponent")}else PrintLogOffice("HL_Reload > isThisBigImg",'no "obj" passed');return!1},replaceWithFadeTo:function(n,t,i){var e,r,u,f;if(n&&n.length>0&&t&&t.length>0&&i){let o=HL_AutoPlay;if(r=-1,u=t.find(".movdiv"),u.length>0)for(f in o.apObj.list)if(o.apObj.list[f].id==i){e={obj:u.parent(".host_img_container"),name:u.attr("id"),id:t.data("current").split("~")[0]};r=f;break}r>-1&&(o.apObj.list[r]=e);n.data("current")==t.data("current")?n.replaceWith(t):n.fadeTo(500,0,function(){n.replaceWith(t);t.css("visibility","visible").hide().fadeTo(1e3,1)})}else PrintLogOffice("HL_Reload > replaceWithFadeTo","missing objToReplace or newObj or previd")}};