$(document).load(function(){
    alert('l');
    $('.gimg').each(function(){
        alert('t');
        $(this).height($(this).parent().height());
        $(this).width($(this).parent().width());
        $(this).hover(function(){
            $(this).fadeto(1,1.0);
        },function(){
            $(this).fadeto(1,0.7);
        });
    });
});

$(document).ready(function(){
    $('.fade').hover(function(){
        $(this).stop();
        $(this).fadeTo(1000,1,function(){$(this).removeClass('trans');$(this).removeAttr('style');});
    },function(){
        $(this).stop();
        $(this).fadeTo(1000,0.20);
    });    
    $('.cc #submit').hover(function(){        
        $(this).css('background-image',$(this).css('background-image').replace('.png','on.png'));
    },function(){
        $(this).css('background-image',$(this).css('background-image').replace('on.png','.png'));
    });

    $('.swon').hover(function(){        
        $(this).attr('src',$(this).attr('src').replace('.png','on.png'));
    },function(){
        $(this).attr('src',$(this).attr('src').replace('on.png','.png'));
    });
    $('.blogfoot .fltl a').click(function(){$('.cc').toggle();});
});

function grayimg()
{
    $('.gimg').each(function(){        
        $h= parseInt($(this).parent().parent().height());
        $h=$h-10;        
        $(this).height($h+'px');
        $h= parseInt($(this).parent().parent().width());
        $h=$h-10;        
        $(this).width($h);        
        $(this).fadeTo(1,0.5);
        $(this).css('visibility','visible');
        $(this).hover(function(){
            $(this).fadeTo(1000,0.0);
        },function(){
            $(this).fadeTo(1000,0.5);
        });
    });
}


