$(".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>00:00<\/span>\n        <\/div>\n        <a href=\"/videos/retirement-why-establish-a-smsf\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1391820619light-bulbs-play\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1391820619light-bulbs-play.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/retirement-why-establish-a-smsf\">Why establish a SMSF<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/retirement/channel?sort=title\">Retirement, <\/a>\n\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-smsf\">SMSF<\/a>\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-saving\">Saving<\/a>\n\n	<\/p>\n	<p>&quot;Why Establish a SMSF?&quot;. James Dunn looks at the motivations and the more important implications in moving along this path to funding your retirement. It&#39;s about taking control of your investment decisions and a lot more flexibility but is a SMSF the investment vehicle for you?<\/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>00:00<\/span>\n        <\/div>\n        <a href=\"/videos/retirement-why-establish-a-smsf\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1391820619light-bulbs-play\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1391820619light-bulbs-play.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/retirement-why-establish-a-smsf\">Why establish a SMSF<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/retirement/channel?sort=title\">Retirement, <\/a>\n\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-smsf\">SMSF<\/a>\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-saving\">Saving<\/a>\n\n	<\/p>\n	<p>&quot;Why Establish a SMSF?&quot;. James Dunn looks at the motivations and the more important implications in moving along this path to funding your retirement. It&#39;s about taking control of your investment decisions and a lot more flexibility but is a SMSF the investment vehicle for you?<\/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>00:00<\/span>\n        <\/div>\n        <a href=\"/videos/retirement-why-establish-a-smsf\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1391820619light-bulbs-play\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1391820619light-bulbs-play.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/retirement-why-establish-a-smsf\">Why establish a SMSF<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/retirement/channel?sort=title\">Retirement, <\/a>\n\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-smsf\">SMSF<\/a>\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-saving\">Saving<\/a>\n\n	<\/p>\n	<p>&quot;Why Establish a SMSF?&quot;. James Dunn looks at the motivations and the more important implications in moving along this path to funding your retirement. It&#39;s about taking control of your investment decisions and a lot more flexibility but is a SMSF the investment vehicle for you?<\/p>			\n      <\/div>\n    <\/div>  \n');
$(".thumb-view.mobile.subscription-13").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>00:00<\/span>\n        <\/div>\n        <a href=\"/videos/retirement-why-establish-a-smsf\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1391820619light-bulbs-play\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1391820619light-bulbs-play.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/retirement-why-establish-a-smsf\">Why establish a SMSF<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/retirement/channel?sort=title\">Retirement, <\/a>\n\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-smsf\">SMSF<\/a>\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-saving\">Saving<\/a>\n\n	<\/p>\n	<p>&quot;Why Establish a SMSF?&quot;. James Dunn looks at the motivations and the more important implications in moving along this path to funding your retirement. It&#39;s about taking control of your investment decisions and a lot more flexibility but is a SMSF the investment vehicle for you?<\/p>			\n      <\/div>\n    <\/div>  \n');
$(".channel-mobile.channel-homepage-13").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>00:00<\/span>\n        <\/div>\n        <a href=\"/videos/retirement-why-establish-a-smsf\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1391820619light-bulbs-play\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1391820619light-bulbs-play.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/retirement-why-establish-a-smsf\">Why establish a SMSF<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/retirement/channel?sort=title\">Retirement, <\/a>\n\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-smsf\">SMSF<\/a>\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-saving\">Saving<\/a>\n\n	<\/p>\n	<p>&quot;Why Establish a SMSF?&quot;. James Dunn looks at the motivations and the more important implications in moving along this path to funding your retirement. It&#39;s about taking control of your investment decisions and a lot more flexibility but is a SMSF the investment vehicle for you?<\/p>			\n      <\/div>\n    <\/div>  \n');
$(".channel-mobile.unregister-channel-homepage-13").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>00:00<\/span>\n        <\/div>\n        <a href=\"/videos/retirement-why-establish-a-smsf\">\n	<span class=\"tinyplay\"><\/span>\n	  <img alt=\"Medium_1391820619light-bulbs-play\" src=\"https://wealthknowhow.s3.amazonaws.com/uploads/pictures/medium_1391820619light-bulbs-play.jpg\" />\n<\/a>      <\/div>\n      <div class=\"slider-text\">\n\n	<h6><a href=\"/videos/retirement-why-establish-a-smsf\">Why establish a SMSF<\/a><\/h6>\n	<p>\n	      By <a href=\"/users/sign_up\">Wealth Know How <\/a>\n	  in\n	      <a href=\"/channels/retirement/channel?sort=title\">Retirement, <\/a>\n\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-smsf\">SMSF<\/a>\n		<a href=\"/channels/retirement/subchannel/thumb?id=retirement-saving\">Saving<\/a>\n\n	<\/p>\n	<p>&quot;Why Establish a SMSF?&quot;. James Dunn looks at the motivations and the more important implications in moving along this path to funding your retirement. It&#39;s about taking control of your investment decisions and a lot more flexibility but is a SMSF the investment vehicle for you?<\/p>			\n      <\/div>\n    <\/div>  \n');

    $(".more.text-center.video.desktop").remove();
    $(".more.text-center.video.mobile").remove();
    $(".more.text-center.subscription-13.mobile").remove();
    $(".more.text-center.channel-homepage-13").remove();
    $(".more.text-center.unregister-channel-homepage-13.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);
    }
  }
});