﻿$(document).ready(function () {


    // Set height
    $("#services section P MARK").css({ width: '190px', height: '35px' })
    

    $("#services section").hover(function () {
		
        //$(this).stop().animate({ backgroundPosition: "0 0" }, { duration: 500 });
        $('P A', this).stop().animate({ marginTop: '65px' }, { duration: 200 });
        $('P MARK', this).stop().delay(250).show().animate({ opacity: 1, marginLeft: '-50px' }, { duration: 250 });

    }, function () {
        $('P MARK', this).stop().animate({ opacity: 0, marginLeft: '50px' }, { duration: 250 });
        $('P A', this).stop().delay(250).animate({ marginTop: '0px' }, { duration: 200 });

        //$("#services section").animate({ backgroundColor: "#f1f1f1" }, 1000);

    })
    .click(function () {
        var url = $('P A', this).attr("href");
        window.location.replace(url);

    });
	
	/*
	$("#contactForm").click(function(){
	
		$('#formContainer').stop().css({width:'100%', height:'100%', top:'0px'}).animate({ opacity: 1}, function(){
			
			$('DIV', this).animate({ marginTop: '0px' }, function(){
				$('#formContainer A').click(function (){
					$('#formContainer DIV').stop().animate({ marginTop: '-800px'}, function(){
						$('#formContainer').stop().animate({ opacity: 0}, function(){
						$(this).css({width:'0%', height:'0%'});
						});
					});
				});
					
			});
			
		});
	
		return false;
		
	});
*/
});
	


