DD_roundies.addRule('blockquote', '5px', true);
DD_roundies.addRule('#container', '18px', true);
DD_roundies.addRule('#header', '9px 9px 0 0', true);
DD_roundies.addRule('#caption', '0 8px 8px 0', true);
DD_roundies.addRule('#content .story div.photo img', '2px', true);
DD_roundies.addRule('#content #ourteam table table', '10px', true);
DD_roundies.addRule('#contactform input, #contactform select', '3px', true);
DD_roundies.addRule('#contactform textarea', '3px', true);
DD_roundies.addRule('#rhs input.text', '3px', true);
DD_roundies.addRule('#rhs input.submit, #rhs button.submit', '3px', true);

$(function () {
    blogArchive();

    fontResizer('16px', '20px', '24px');

    function switchText() {
        if ($(this).val() == $(this).attr('title')) {
            $(this).val('').removeClass('example');
        } else if ($.trim($(this).val()) == '') {
            $(this).addClass('example').val($(this).attr('title'));
        }
    }

    $('input[type=text][title!=""],textarea[title!=""]').each(function () {
        if ($.trim($(this).val()) == '') {
            $(this).val($(this).attr('title'));
        }
        if ($(this).val() == $(this).attr('title')) {
            $(this).addClass('example');
        }
    }).focus(switchText).blur(switchText);

    /*$('form').submit(function(){
    $(this).find('input[type=text][title!=""]').each(function(){
    if ($(this).val() == $(this).attr('title')){
    $(this).val('');
    }
    });
    });*/

    $('#globalnav li:last span').hide();
    $('#subnav    li:last span').hide();

    $('#content h2:first').css('margin-top', '0');
    $('#rhs h3:first').css('margin-top', '0');

    $('#rhs #phoneus_mini_popup').click(function () {
        $('#rhs #phoneus_mini_popup ul').toggle();
    });
});



/***************************************
Blog archive hide/show
------------------------------------
For control
***************************************/

function blogArchive() {
    $(".blogArc .listSection").hide();

    $(".blogArc h4").css({ "cursor": "pointer" })
                    .addClass("selected")
                    .toggle(function () {
                        $(this).removeClass("selected").next().show();
                    }, function () {

                        $(this).addClass("selected").next().hide();
                    });

}
