$(document).ready(function() {

    // Animate buttons, move reflection and fade

    $(".slideinfo").hover(function() {
        $(this).stop().animate({
            marginTop: "0px"
        }, 300);
        $(this).parent().find("div.s-num").stop().animate({
            marginBottom: "-55px", 
            opacity: 0.25
        }, 500);
        $(this).parent().find("p.icon").stop().animate({
            marginTop: "-15px", 
            opacity: 1
        }, 300);		
        $(this).parent().find("span").stop().animate({
            marginTop: "-15px", 
            opacity: 1
        }, 300);
    },function(){
        $(this).stop().animate({
            marginTop: "0px"
        }, 300);
        $(this).parent().find("div.s-num").stop().animate({
            marginBottom: "0px", 
            opacity: 1
        }, 500);
        $(this).parent().find("p.icon").stop().animate({
            marginTop: "0px", 
            opacity: 1
        }, 300);			
        $(this).parent().find("span").stop().animate({
            marginTop: "0px", 
            opacity: 0.45
        }, 300);	
    });
        
        
        
    $('input.texthide').focus(
        function(){
            if($(this).attr('value')== $(this).attr('title')){
                $(this).attr('value','');
                $(this).css('color', '#000000');
            }
        });
    $('input.texthide').blur(
        function(){
            if($(this).attr('value')== ''){
                $(this).attr('value', $(this).attr('title'));
                $(this).css('color', '#AAAAAA');
            }
        });
        
    $('div.message').click(function(){
        $(this).hide();
    });
    
    if($('div.formdiv input[type="file"]').length >0 ){
        $('div.formdiv input[type="file"]').attr('size',59);
    }
});

