$(function() {
    $(".MMDataCaptureForm_ErrorTD span").attr("style","");
    
    $(".MMDataCaptureForm_Table td span:first").attr("style","color: #fff;");
    $("textarea").attr("style","height: 149px");
    $(".mm_form .MMDataCaptureForm_Table tr:last").attr("style","border-bottom: none");
    $(".content_mid .MMDataCaptureForm_Table tr:last").attr("style","border-bottom: none");
    $(".social_bookmark li:last").attr("style","margin: 0px");
    $(".feeditems .item:first").addClass("latest_news");
    $(".news_item:last").css("border","0px");
    
    
    $(".MMDataCaptureForm_SubmitButton").attr("value","");
    $(".quote:last").css("border-bottom","none").css("margin-bottom","0px");
   
   var timeout = setTimeout(function() {
        $("#flashcontent").fadeOut();
   }, 57000);
    
    var blogContent = $(".blogFeed").html();
        $("#blogFeed").html(blogContent);
        $("#blogFeed li:nth-child(1)").addClass("first_blog");
     
    //$(".welcome,.blogs,.tweets,.news,.testimonial").hide();
    $(".welcome_link").css("background","#c13801");
        
    $(".welcome_link").click(function() {
        $(".welcome").show();
        $(".blogs").hide();
        $(".tweets").hide();
        $(".news").hide();
        $(".testimonial").hide();
        $(".welcome_link").css("background","#c13801");
        $(".blogs_link").css("background","none");
        $(".tweets_link").css("background","none");
        $(".news_link").css("background","none");
        $(".testimonial_link").css("background","none");
    });
    
    $(".blogs_link").click(function() {
        $(".welcome").hide();
        $(".blogs").show();
        $(".tweets").hide();
        $(".news").hide();
        $(".testimonial").hide();
        $(".welcome_link").css("background","none");
        $(".blogs_link").css("background","#c13801");
        $(".tweets_link").css("background","none");
        $(".news_link").css("background","none");
        $(".testimonial_link").css("background","none");
    });
    
    $(".tweets_link").click(function() {
        $(".welcome").hide();
        $(".blogs").hide();
        $(".tweets").show();
        $(".news").hide();
        $(".testimonial").hide();
        $(".welcome_link").css("background","none");
        $(".blogs_link").css("background","none");
        $(".tweets_link").css("background","#c13801");
        $(".news_link").css("background","none");
        $(".testimonial_link").css("background","none");
    });
    
    $(".news_link").click(function() {
        $(".welcome").hide();
        $(".blogs").hide();
        $(".tweets").hide();
        $(".news").show();
        $(".testimonial").hide();
        $(".welcome_link").css("background","none");
        $(".blogs_link").css("background","none");
        $(".tweets_link").css("background","none");
        $(".news_link").css("background","#c13801");
        $(".testimonial_link").css("background","none");
    });
    
     $(".testimonial_link").click(function() {
        $(".welcome").hide();
        $(".blogs").hide();
        $(".tweets").hide();
        $(".news").hide();
        $(".testimonial").show();
        $(".welcome_link").css("background","none");
        $(".blogs_link").css("background","none");
        $(".tweets_link").css("background","none");
        $(".news_link").css("background","none");
        $(".testimonial_link").css("background","#c13801");
    });
    
    $(".paging a").each(function(){
        var getStyle = $(this).attr("style");
        if (getStyle=="font-weight: bold; text-decoration: underline;") {
            $(this).css("text-decoration","none").css("background","#c9b8a7");
        }
    });
    
    $(".paging a").each(function(){
        $(this).html($(this).html().replace("Next &gt;","&gt;").replace("&lt; Prev","&lt;"));
    });
    
});