$(document).ready(function() {

    $('#slideshow').cycle({
		fx: 'fade',
                speed: 2500
	});
    
     $('#column-one').css({'left' : '-200px'});
    var $marginOne = $('#column-one');
    $marginOne.animate( 
    {marginLeft:'200px'},1500); 
    
   $('#column-two').css({'left' : '-600px'});
    var $marginTwo = $('#column-two');
    $marginTwo.animate( 
    {marginLeft:'800px'},1500); 
    
    $('#column-three').css({'left' : '-950px'});
    var $marginThree = $('#column-three');
    $marginThree.animate( 
    {marginLeft:'1550px'},1500);  
    
    
    
    

    $(function() {
        var zIndexNumber=1000;
        $('div').each(function(){
            $(this).css('zIndex', zIndexNumber);
            zIndexNumber-=10;
        });
    });

    $('.blank').attr('target','_blank');
    $('.post a').attr('target','_blank');

    $(".contact-form input:text, #contact-form textarea").each(function()
    {
        this.defaultText = this.value;
        $(this).focus(function()
        {
            if (this.value == this.defaultText) this.value = "";
            $(this).removeClass("default");


        })
        $(this).blur(function()
        {
            if (this.value == "" && this.defaultText) this.value = this.defaultText;
            $(this).addClass("default");

        });

    });
});


