function truncate(el, words, readMoreEl, options) {
	var step = 2;
	var $ = jQuery;
	var height = (isNaN(words) && words.indexOf("px") !== -1) ? words : false;
	
	var $el = $(el);
	
	if ($el.length == 0) {
		return false;
	}
	
	var readMore = $(readMoreEl).clone();
	var splitText = $el.text().split(" ");
	
	if (height) {
		for (var i in splitText) {
			if (parseInt($el.height()) > parseInt(height)) {
				splitText = splitText.slice(0,-1*(step));
				$el.html(splitText.join(" ") + " &nbsp;");
				$el.append(readMore);
			}
		}
	} else {
		splitText = splitText.slice(0,words);
		$el.html(splitText.join(" ") + " &nbsp;");
		$el.append(readMore);
	}
}
