﻿(function(jQuery) {
jQuery.fn.limitText = function() {     
	jQuery(this).keyup(function(){
		var max = parseInt(jQuery(this).attr("maxlength"));
		if(jQuery(this).val().length > max){
			jQuery(this).val(jQuery(this).val().substr(0, jQuery(this).attr('maxlength')));
		}

		//jQuery(this).parent().find('.charsRemaining').html('You have ' + (max - jQuery(this).val().length) + ' characters remaining');
	});

    }
}

)
(jQuery);

function fbs_click() { u = location.href; t = document.title; window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436'); return false; }



function loadmoreless(sc,idp){

jQuery.ajax({
url:sc,
success:function(data){    
jQuery(idp).html(data);
}
});
}


function gotoTop() {
    $("html, body").animate({ scrollTop: 0 }, "slow");
}
