<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">jQuery(window).scroll(function() {

	if (jQuery(".item-page .pager a.pagenav:visible").is(':appeared')) {
		jQuery(".item-page .pager a.pagenav:visible").click();
	}

	var article = jQuery('.news_content_left_img'),
	wintop = jQuery(window).scrollTop() + 55, // fixed menu offset
	winheight = jQuery(window).height(),
	lastArticle;

	article.each(function () {
		var article = jQuery(this),
		doctop = article.offset().top,
		docheight = article.height();

		if (doctop &lt;= (wintop + winheight)) {
			lastArticle = article;
		}
	});

	if ( lastArticle &amp;&amp; (window.addedArticle != lastArticle.attr('data-url')) ) {
		document.title = lastArticle.attr('data-title');
		try {
			history.replaceState(null, lastArticle.attr('data-title'), lastArticle.attr('data-url'));
			window.addedArticle = lastArticle.attr('data-url');
		} catch (e) {}
	}

});

function infload(link, el, paged = false) {

	// el.html('&lt;i class="icon-next"&gt;Loading...&lt;/i&gt;');

	var ret = jQuery.ajax(
	{
		url: link ,
		type: "get",
		async: false,
		beforeSend: function () {
			el.html('&lt;i class="icon-next"&gt;Loading...&lt;/i&gt;');
		}
	})
	.done(function (data) {
		var temp = jQuery(data);

		if (paged == true) 
			temp.find('.news_content_left_img_txt, .news_left_date').remove();

		var a = temp.get(3);//temp.find('.news_content_left_img');
// console.log(temp);
		document.title = jQuery(a).attr('data-title');
		try {
// 			history.pushState(null, jQuery(a).attr('data-title'), jQuery(a).attr('data-url'));
		} catch (e) {}

		eld = el.parents('.pager').parent('div');
		el.parents('.pager').remove();

		if ( eld.parents('.item-page').length ) {
			eld.parents('.item-page').append(temp);
		} else if ( jQuery('a.ai-next').length &gt; 0 ) {
			jQuery('a.ai-next').after(a).remove();
		} else if ( eld.parents('.news_content_left_img').siblings('script').length &gt; 0 ) {
			eld.parents('.news_content_left_img').siblings('script').after(a);
		} else {
			eld.parents('.item-page').after(a);
		}

		//Removed along with request #76: Freestar.io ad placement setup
		/* jQuery('.news_left_text &gt; div:has(div[id^=NTV_])').css('max-width', 'unset');
		if (paged == true) {
			if (jQuery('.pager').parent(':not(.news_left_text)').length == 0) {
				jQuery('.pager').before(jQuery('div[id^=NTV_]:last'));
			} else {
				jQuery('.pager').parent().before(jQuery('div[id^=NTV_]:last'));
			}
			sessionStorage.setItem('wasPaged', true);
		} else {
			if (sessionStorage.getItem('wasPaged') == true) {
				if (jQuery('.pager').parent(':not(.news_left_text)').length == 0) {
					jQuery('.pager').before(jQuery('div[id^=NTV_]:last'));
				} else {
					jQuery('.pager').parent().before(jQuery('div[id^=NTV_]:last'));
				}
			} else {
			}
			sessionStorage.setItem('wasPaged', false);
		} */


		// freestar.initCallback = function () {
			/*{
				placementName: 'younghollywood_leaderboard_atf',
				slotId: 'adwrapper_leaderboard_' + loaded_id
			},*/

			/* 05-26-2020 #106: Removal of "freestar" ad units on younghollywood.com
			var loaded_id = jQuery('.news_content_left_img:last').attr('id');
			freestar.newAdSlots([
			{
				placementName: 'younghollywood_right_rail',
				slotId: 'younghollywood_right_rail_' + loaded_id
			},
			{
				placementName: 'younghollywood_right_rail_sticky',
				slotId: 'younghollywood_right_rail_sticky_' + loaded_id
			}
			]);
			*/

		// }


		return false;
	})
	.fail(function (jqXHR, ajaxOptions, thrownError) {
		return true;
	});

	fixSidebarHeight(paged);
	jQuery('.content .news_content_left_img img').on('load', function() {
		fixSidebarHeight(paged)
	});

	// setTimeout(fixSidebarHeight, 10000, paged);

	return false;

}

function fixSidebarHeight(paged) {
	jQuery('.content .bsectionr').each(function() {
		if (jQuery(this).attr('data-url')) {
			var th = 0;
			du = jQuery(this).attr('data-url');
			jQuery('.content .news_content_left_img[data-url="'+du+'"]').each(function() {
				th = th + jQuery(this).height();
			});
			if (paged == true) {
				jQuery(this).height(th + 'px');
			} else {
				jQuery(this).height(th - 160 + 'px');
			}
		}
	});
}</pre></body></html>