
//Notes - If we could give a class of 'NoStyle' to every div that people write in
//Notes - Style AdminComment

jQuery(document).ready(function() {

//Notes - Align remover
$('div,span,p,h1,h2,h3,h4,h5[align]').removeAttr('align');

//Notes - Style remover
$('.NoStyle [style]').removeAttr('style');
	
//Notes - List limiter
var ListTitle = $('.ListLimiter ul').attr("title"); //Get Alt Tag of Image
	
jQuery('.ListLimiter ul').after('<p class="ViewMore">View all ' + ListTitle + '</p><p class="ViewLess">View less ' + ListTitle + '</p>');
	
jQuery('.ListLimiter ul li:gt(2)').css('display', 'none');
	
jQuery('.ViewLess').css('display', 'none');
	
jQuery('.ListLimiter .ViewMore').click(function() {
	jQuery('.ListLimiter li:gt(2)').fadeIn('medium');
	jQuery(this).hide();
	jQuery('.ViewLess').show();
});
	
jQuery('.ViewLess').click(function() {
	jQuery('.ListLimiter li:gt(2)').fadeOut('medium');
	jQuery('.ViewMore').show();
	jQuery(this).hide();
});

//Notes - Admin style
jQuery("li .CommentName:contains('Admin')").parent().addClass("AdminComment");

//Notes - Textarea input limiter
$('textarea').inputlimiter({
	limit: 200,
	remText: 'You have %n character%s remaining',
	limitText: ''
});

//Notes - Home news and events limiter
jQuery("#HomeNews li:gt(1),#HomeEvents li:gt(2)").hide();

});

