$(".alt-view.desktop.video").append('\n\n    <div class=\"slider-wrapper \">\n      <div class=\"slider-btn\">\n      <\/div>\n      <div class=\"text-center image-wrapper\">\n        <div class=\"timestamp\">\n	<span>\n	  <img alt=\"Logo-timestamp\" src=\"/assets/logo-timestamp.png\" />\n	<\/span>\n	<span>02:18<\/span>\n        <\/div>\n        <a href=\"/videos/managing-debt\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1406255456icon_4-2\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1406255456Icon_4-2.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/managing-debt\">Managing debt<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/borrowing-credit/channel?sort=title\">Borrowing &amp; Credit, <\/a>\n\n		<a href=\"/channels/borrowing-credit/subchannel/thumb?id=borrowing-credit-borrowing\">Borrowing<\/a>\n\n	<\/p>\n	<p>Many people face a great deal of frustration when confronting trouble in managing their debt. Debt is a powerful tool that can deliver benefits but it can also be dangerous if not used properly. Our video explores some of the options available and there are always skilled people that can help. Taking action can stop a small problem turning into a big one.<\/p>			\n      <\/div>\n    <\/div>  \n');
$(".thumb-view.mobile.video").append('\n\n    <div class=\"slider-wrapper \">\n      <div class=\"slider-btn\">\n      <\/div>\n      <div class=\"text-center image-wrapper\">\n        <div class=\"timestamp\">\n	<span>\n	  <img alt=\"Logo-timestamp\" src=\"/assets/logo-timestamp.png\" />\n	<\/span>\n	<span>02:18<\/span>\n        <\/div>\n        <a href=\"/videos/managing-debt\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1406255456icon_4-2\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1406255456Icon_4-2.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/managing-debt\">Managing debt<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/borrowing-credit/channel?sort=title\">Borrowing &amp; Credit, <\/a>\n\n		<a href=\"/channels/borrowing-credit/subchannel/thumb?id=borrowing-credit-borrowing\">Borrowing<\/a>\n\n	<\/p>\n	<p>Many people face a great deal of frustration when confronting trouble in managing their debt. Debt is a powerful tool that can deliver benefits but it can also be dangerous if not used properly. Our video explores some of the options available and there are always skilled people that can help. Taking action can stop a small problem turning into a big one.<\/p>			\n      <\/div>\n    <\/div>  \n');
$(".thumb-view.video").append('\n\n    <div class=\"slider-wrapper \">\n      <div class=\"slider-btn\">\n      <\/div>\n      <div class=\"text-center image-wrapper\">\n        <div class=\"timestamp\">\n	<span>\n	  <img alt=\"Logo-timestamp\" src=\"/assets/logo-timestamp.png\" />\n	<\/span>\n	<span>02:18<\/span>\n        <\/div>\n        <a href=\"/videos/managing-debt\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1406255456icon_4-2\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1406255456Icon_4-2.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/managing-debt\">Managing debt<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/borrowing-credit/channel?sort=title\">Borrowing &amp; Credit, <\/a>\n\n		<a href=\"/channels/borrowing-credit/subchannel/thumb?id=borrowing-credit-borrowing\">Borrowing<\/a>\n\n	<\/p>\n	<p>Many people face a great deal of frustration when confronting trouble in managing their debt. Debt is a powerful tool that can deliver benefits but it can also be dangerous if not used properly. Our video explores some of the options available and there are always skilled people that can help. Taking action can stop a small problem turning into a big one.<\/p>			\n      <\/div>\n    <\/div>  \n');
$(".thumb-view.mobile.subscription-47").append('\n\n    <div class=\"slider-wrapper \">\n      <div class=\"slider-btn\">\n      <\/div>\n      <div class=\"text-center image-wrapper\">\n        <div class=\"timestamp\">\n	<span>\n	  <img alt=\"Logo-timestamp\" src=\"/assets/logo-timestamp.png\" />\n	<\/span>\n	<span>02:18<\/span>\n        <\/div>\n        <a href=\"/videos/managing-debt\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1406255456icon_4-2\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1406255456Icon_4-2.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/managing-debt\">Managing debt<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/borrowing-credit/channel?sort=title\">Borrowing &amp; Credit, <\/a>\n\n		<a href=\"/channels/borrowing-credit/subchannel/thumb?id=borrowing-credit-borrowing\">Borrowing<\/a>\n\n	<\/p>\n	<p>Many people face a great deal of frustration when confronting trouble in managing their debt. Debt is a powerful tool that can deliver benefits but it can also be dangerous if not used properly. Our video explores some of the options available and there are always skilled people that can help. Taking action can stop a small problem turning into a big one.<\/p>			\n      <\/div>\n    <\/div>  \n');
$(".channel-mobile.channel-homepage-47").append('\n\n    <div class=\"slider-wrapper \">\n      <div class=\"slider-btn\">\n      <\/div>\n      <div class=\"text-center image-wrapper\">\n        <div class=\"timestamp\">\n	<span>\n	  <img alt=\"Logo-timestamp\" src=\"/assets/logo-timestamp.png\" />\n	<\/span>\n	<span>02:18<\/span>\n        <\/div>\n        <a href=\"/videos/managing-debt\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1406255456icon_4-2\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1406255456Icon_4-2.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/managing-debt\">Managing debt<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/borrowing-credit/channel?sort=title\">Borrowing &amp; Credit, <\/a>\n\n		<a href=\"/channels/borrowing-credit/subchannel/thumb?id=borrowing-credit-borrowing\">Borrowing<\/a>\n\n	<\/p>\n	<p>Many people face a great deal of frustration when confronting trouble in managing their debt. Debt is a powerful tool that can deliver benefits but it can also be dangerous if not used properly. Our video explores some of the options available and there are always skilled people that can help. Taking action can stop a small problem turning into a big one.<\/p>			\n      <\/div>\n    <\/div>  \n');
$(".channel-mobile.unregister-channel-homepage-47").append('\n\n    <div class=\"slider-wrapper \">\n      <div class=\"slider-btn\">\n      <\/div>\n      <div class=\"text-center image-wrapper\">\n        <div class=\"timestamp\">\n	<span>\n	  <img alt=\"Logo-timestamp\" src=\"/assets/logo-timestamp.png\" />\n	<\/span>\n	<span>02:18<\/span>\n        <\/div>\n        <a href=\"/videos/managing-debt\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1406255456icon_4-2\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1406255456Icon_4-2.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/managing-debt\">Managing debt<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/borrowing-credit/channel?sort=title\">Borrowing &amp; Credit, <\/a>\n\n		<a href=\"/channels/borrowing-credit/subchannel/thumb?id=borrowing-credit-borrowing\">Borrowing<\/a>\n\n	<\/p>\n	<p>Many people face a great deal of frustration when confronting trouble in managing their debt. Debt is a powerful tool that can deliver benefits but it can also be dangerous if not used properly. Our video explores some of the options available and there are always skilled people that can help. Taking action can stop a small problem turning into a big one.<\/p>			\n      <\/div>\n    <\/div>  \n');

    $(".more.text-center.video.desktop").remove();
    $(".more.text-center.video.mobile").remove();
    $(".more.text-center.subscription-47.mobile").remove();
    $(".more.text-center.channel-homepage-47").remove();
    $(".more.text-center.unregister-channel-homepage-47.mobile").remove();

var baseShowChar = 300;
var ellipsestext = "...";
var moretext = "<br />More +" ;
var lesstext = "<br />Less";
var isTag = false;
$('.moredesc').each(function() {
  if ($(this).has(".morecontent").has("a.morelink").length == 0){
    var content = $(this).html();
    content = $(this).html().replace(/&nbsp;/g,"");
    var showChar = setNewShowChar(content, baseShowChar);
    
    if(content.length > showChar) {

      var c = content.substr(0, showChar);
      var h = content.substr(showChar-1, content.length - showChar);

      var html = c + '<span class="moreellipses">' + ellipsestext+ '&nbsp;</span><span class="morecontent"><span>' + h + '</span>&nbsp;&nbsp;<a href="" class="morelink">' + moretext + '</a></span>';

      $(this).html(html);
    }
  }
});