//Activate Immediately
$(function(){
    if($.browser.version < 7){
        pngfix();
    }
    $('#header-images').innerfade({
        speed: 2000,
        timeout: 5000,
        type: 'sequence',
        containerheight: '200px'
    });

    Cufon.replace(".title, .title-sec", {
        fontFamily: 'Sansation',
        hover : true
    });
    Cufon.replace(".bolded", {
        fontFamily: 'Sansation2',
        hover : true
    });
    Cufon.replace(".post-title", {
        fontFamily: 'Toyota Display',
        hover : true
    });
    $(".delme").focus(function(){
        if ($(this).is('input')) {
            var orival = $(this).val();
            $(this).val("");
        }else{
            var orival = $(this).html();
            $(this).html("");
        }

        $(this).blur(function(){
            if($(this).is('input')){
                if ($(this).val() != "" && $(this).val() != orival) {
                    $(this).removeClass('delme').unbind('blur').unbind('focus');
                }else{
                    $(this).val(orival);
                }
            }else{
                if ($(this).html() != "" && $(this).html() != orival) {
                    $(this).removeClass('delme').unbind('blur').unbind('focus');
                }else if ($.browser.safari && $(this).val() != "" && $(this).val() != orival) {
                    $(this).removeClass('delme').unbind('blur').unbind('focus');
                }else{
                    $(this).html(orival);
                }
            }

        });
    });
});
