$(document).ready(function() {
    
    
    $('#slideshow').cycle({
		fx: 'fade',
        speed: 5000,
        random: 1
	});
    
    $('#slideshow2').cycle({
     fx:     'fade', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#left', 
    prev:   '#right' 
    
    });
    

    $(function() {
        var zIndexNumber=1000;
        $('div').each(function(){
            $(this).css('zIndex', zIndexNumber);
            zIndexNumber-=10;
        });
    });

    $('.blank').attr('target','_blank');
    $('.post a').attr('target','_blank');
    
    $("input:text, textarea").each(function() 
    { 
        this.defaultText = this.value; 
        $(this).focus(function() 
        { 
            if (this.value == this.defaultText) this.value = "";
        })
        $(this).blur(function() 
        { 
            if (this.value == "" && this.defaultText) this.value = this.defaultText; 
        });    
    });
});


