"),o.find(".user_menu").remove()}if(1280>e?$(".btn-newacc").html("Signup"):$(".btn-newacc").html("Create new account"),userid?($(".user_menu").addClass("logged-in"),$(".user_menu").removeClass("logged-out")):($(".user_menu").removeClass("logged-in"),$(".user_menu").addClass("logged-out")),768>e){var i=$(".menu-holder").find(".newuser-links").length;if(0==i){var l=$(".navbar-right").html();$(".menu-holder").prepend("
"),$(".newuser-links").remove()}}}function thakkiLoading(e){$("html, body").animate({scrollTop:e},1900,"swing")}function preLoadingBlock(){var e=$(".featured-videos .thumb-video").width(),t=.625*e;$(".featured-videos .thumb-video").css("height",t+"px");var o=$(".videos .thumb-video").width(),r=.625*o;$(".videos .thumb-video").css("height",r+"px")}function loginHeight(){var e=$("#login_form").outerHeight();e-=40,$(".account-holder .side-box").css("height",e+"px")}function homePageVideos(e){console.log("Hey there Pumpkin! Looks like you really like what we do, hence trying to look under the hood. Happy sneaking buddy! Drop us an email for any questions : info@clipbucket.com"),$("#container").on("click","#recent_load_more, #featured_load_more",function(){var e=baseurl+"/ajax/home.php",t=$(this),o="post",r="html",n=$(t).attr("loadtype"),a=$(t).attr("loadmode"),d=$(t).attr("loadlimit"),i=$(t).attr("loadhit"),l=parseInt(i)+1;moreRecent=!0,moreFeatured=!0,featuredFound="",1==i?(recentFound=6,featuredFound=2):(featuredSect=$("#container").find("#total_videos_featured").text(),recentSect=$("#container").find("#total_videos_recent").text(),totalFeaturedVids=featuredSect,totalRecentVids=recentSect,featuredShown=2*i-2,recentShown=6*i-6,gotMoreFeatured=parseInt(totalFeaturedVids)-parseInt(featuredShown),gotMoreRecent=parseInt(totalRecentVids)-parseInt(recentShown),gotMoreFeatured>2?featuredFound=2:(moreFeatured=!1,featuredFound=gotMoreFeatured),gotMoreRecent>6?recentFound=3:(moreRecent=!1,recentFound=gotMoreRecent)),$.ajax({url:e,type:o,dataType:r,data:{load_type:n,load_mode:a,load_limit:d,load_hit:i},beforeSend:function(){if($(t).attr("disabled","disabled"),$(t).text("Loading.."),"count"!=n)if("featured"==a){for(var e=0;e');var o=$(window).width();if(i>=2&&o>767){var r=$(".featAppending").last().offset().top;r=r,thakkiLoading(r)}}else{for(var e=0;e