$(document).ready(function() {
$("#contactFeedWrap li:eq(0)").addClass("first");
$("#lrbHeaderWelcomeWrap .mdWrap p:last-child").append("Learn More");
if ($("body").attr("id") == "homeBody") {
var curHost = location.host;
curHost.replace("www.", "");
$(".newsFeedSub").prepend("view all news");
$(".newsFeedSub div.newsText").append("read full article");
$(".newsFeedSub h3").prepend("/").append("-");
$(".newsFeedSub div").each(function() {
$(this).click(function() {
location.href = "http://" + curHost + $(this).find("a").attr("href");
});
});
$(".pushItemContent:gt(0)").addClass("withSep");
}
if (($("body").attr("id") == "locBody") && ($(".subHeading").text() != "Locations")) {
$("#locationsWrap .contentSection:eq(0) div:eq(0)").prepend("
" + $(".subHeading").text() + "
");
}
if ($("body").attr("id") == "contactBody") {
$(".contactAdd1").append("View Map");
$("#viewMap a").colorbox({ transition: "none", iframe: true, width: "60%", height: "80%", title: "LRB Manufacturing" });
}
if ($(".txtMax").length > 0) {
initMaxLengths();
}
});
function initSideQuickMess(max) {
$('#lrbHeaderWelcomeWrap textarea').after("")
$('.charsRemaining').html('You have ' + (max - $('#lrbHeaderWelcomeWrap textarea').val().length) + ' characters remaining');
$('#lrbHeaderWelcomeWrap textarea').keydown(function() {
if ($(this).val().length > max) {
$(this).val($(this).val().substr(0, max));
}
$(this).parent().find('.charsRemaining').html('You have ' + (max - $(this).val().length) + ' characters remaining');
});
}