//$('#drawings').css('display', 'block');

$(function() {
    $('#drawings').cycle({
        delay: 0,
        speed: 500,
        sync: 1,
        pause: 1
    });
    
    $('.cycle').cycle({
        fx: 'scrollDown',
        delay: -2000,
        speed: 300,
        sync: 1,
        pause: 1        
    });

//    $('#tabs').tabs();
$('#tabify').tabify();

    
    $('.highlight_hover').mouseover(function() {
    	$(this).addClass('over');
    });
    $('.highlight_hover').mouseout(function() {
    	$(this).removeClass('over');
    });
   /* 
    var tabs = [];
    var tabContainers = [];
    $('#block_selector li a').each(function () {
        if (this.pathname == window.location.pathname) {
            tabs.push(this);
            tabContainers.push($(this.hash).get(0));
        }
    });
    */
    // Hide all block container divs that aren't active
    $('#block_container div:not(.active)').hide();
        
    //alert(tabContainers);
  
/*  
    $(tabs).click(function () {
        // hide all tabs and then show the one that was clicked
        //$(tabContainers).hide('slow').filter(this.hash).show('fast');

    	$(tabContainers).hide('fast');
    	//$(this).hide('fast');
        
        // set up the selected class
        //alert(tabs);
        //alert($(tabs).filter(this.hash).html());
        //$(tabs).filter(this.hash).removeClass('active');
        $('#block_selector li').removeClass('active');
        $(this).parent().addClass('active');
    });
    
*/    
});

//$('#drawings').cycle();
