var $$=jQuery.noConflict();

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

 

    $$(function() {
        var zIndexNumber=1000;
        $$('div').each(function(){
            $$(this).css('zIndex', zIndexNumber);
            zIndexNumber-=10;
        });
    });
    
        $$('#slideshow').cycle({
        fx: 'fade',
                speed: 2500
    });
    
     $$("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; 
        });    
    });
    
        $$('#newsletter-button').toggle(function() 
    {
        $$("#newsletter").show();
        $$("#newsletter-button").hide();
    
    }, function() 
    {
         $$("#newsletter").hide();
    });
    


});


