jQuery(function() {

    Cufon.replace('#nav li span', {hover:true});  
    Cufon.replace('#content h1, h2,h3,h4,h5,h6');     //  Cufon Font Replacement

    $('#bigLogos').cycle({      //  Right Sidebar Logo Transitions
      fx: 'fade'
     
    });
    
    $('#tweets').cycle({      //  TWEETS fade
      fx: 'fade',
      timeout: 8000
    });

    $defVal1 = $('#nav #s').val();      //  Setting Default text on Search Input Field  
    $('#nav #s').focus(function(){
      if($(this).val() == $defVal1) {
        $(this).val('');
      }
    });

    $('#nav #s').blur(function(){
      if($(this).val() == '') {
        $(this).val($defVal1);
      }
    });


    $defVal2 = jQuery('#commentform #author').val();     //  Setting Default text on Comment Name Field
    $('#commentform #author').focus(function(){
      if($(this).val() == $defVal2) {
        $(this).val('');
      }
    });

    $('#commentform #author').blur(function(){
      if($(this).val() == '') {
        $(this).val($defVal2);
      }
    });

    $defVal3 = $('#commentform #email').val();     //  Setting Default text on Comment Email Field
    $('#commentform #email').focus(function(){
      if($(this).val() == $defVal3) {
        $(this).val('');
      }
    });

    $('#commentform #email').blur(function(){
      if($(this).val() == '') {
        $(this).val($defVal3);
      }
    });

    $defVal4 = jQuery('#commentform textarea').val();     //  Setting Default text on Comment Textarea
    $('#commentform textarea').focus(function(){
      if($(this).val() == $defVal4) {
        $(this).val('');
      }
    });

    $('#commentform textarea').blur(function(){
      if($(this).val() == '') {
        $(this).val($defVal4);
      }
    });

    $currentPage = $('body').attr('class');         //  Setting Active classes on Current Page
    if($currentPage) {
        $('#catNav .'+$currentPage).addClass('active');    
        $('#catNav .active').parent().parent().slideDown(500);
    }

    $('#catNav .catNameU').click(function() {            //  Show/Hide Left Sidebar Category Posts
        $('#catNav .catNameU').not(this).siblings('.postList:visible').slideUp(500);
        $(this).siblings('.postList').slideToggle(500);
    });

  });
