
$ (function() {

	var truncateOptions = {
		chars: /\s/,
		trail: [ "... <a href='#' class='truncate_show'>more</a>", " " ]
	};
	
	$('body').find('#fullDescription').each(function(i) {
		$("#fullDescription").truncate( 560, truncateOptions);
	});
	
	/* IE6 PNGfix */
	if ($.browser.msie && ($.browser.version <= 6.0))  {
		$("img").each(function(i){
			var imgName = $.trim(this.src.toLowerCase());
			if (imgName.substring(imgName.length-3, imgName.length) == "png") {
				var imgID = (this.id) ? "id='" + this.id + "' " : "";
				var imgClass = (this.className) ? "class='" + this.className + "'" : "";
				var imgTitle = (this.title) ? "title='" + this.title + "' " :
				"title='" + this.alt + "' ";
				var imgStyle = "display:inline-block;" + this.style.cssText;
				if (this.align == "left") {
					imgStyle = "float:left;" + imgStyle;
				}
				if (this.align == "right") {
					imgStyle = "float:right;" + imgStyle;
				}
				if (this.parentElement.href) {
					imgStyle = "cursor:hand;" + imgStyle;
				}
				this.outerHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + this.width + "px; height:" + this.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + this.src + "\', sizingMethod='scale');\"></span>";
			}
		});
	};
});