    $(document).ready(function() {

        $('.dropdown-beta a').toggle(function() {
                //$(this).parent().siblings('.dropdown-alpha span').hide();
            $(this).addClass('down');
            $(this).parent().siblings('.dropdown-alpha').children('span').hide();
            $(this).parent().siblings('.dropdown-alpha').children('ul').slideDown('fast');
        }, function() {
            $(this).removeClass('down');
            $(this).parent().siblings('.dropdown-alpha').children('ul').hide();
            $(this).parent().siblings('.dropdown-alpha').children('span').show();
        });

        $('.external').click(function(){
            this.target = "_blank";
        });

        $('.gallery-image').click(function(){
           $('#image-container img').remove();
           $('#loading').show();
            var href = $(this).attr('href')
            var img = new Image();
            $(img).load(function(){
                $('#image-container').append(img);
                $('#loading').hide();
            }).attr('src',href);
            return false;
        });

        $('#search .text, #newsletter-form .text').click(function(){
           $(this).val('');
        });

        $('#gallery-preview-inner').cycle({
            prev:   '.prev',
            next:   '.next',
            timeout: 0
        });
		
        $('#promo-inner').cycle({ 
            prev:   '#promo-controls .prev',
            next:   '#promo-controls .next',		
			delay:  2000, 
			speed:  2000
		}); 
				

        $("#gallery-control-thumbs-inner").jCarouselLite({
            btnNext: "#gallery-control-right a#next",
            btnPrev: "#gallery-control-left a#prev",
            visible: 5,
            circular: false
        });

        $('a#next,a#prev').click(function(){
            return false;
        });

        $('.scroll-pane').jScrollPane();

    });
	/*
    Cufon.replace('#navigation span, #search label', {
        hover: true,
        textShadow: '1px 1px rgba(29, 29, 29, 0.8)',
        hoverables: { a: true }
    });

    Cufon.replace('#pagination p, #footer p, h2, h3, .tag span, .sub-title-beta h4, #gallery-preview-control span, #social-inner h4, #newsletter-inner h4, #section-header span, #section-header p, .replace h4, .directory-item span', {
        hover: true,
        hoverables: { a: true }
    });

    Cufon.replace('.sub-title-alpha h4', {
        hover: true,
        textShadow: '1px 1px rgba(255, 255, 255, 0.85)',
        hoverables: { a: true }
    });
	*/
