window.onload = function(e) {

    try
    {
        document.execCommand("BackgroundImageCache", false, true);
    }
    catch(err){}

};

$(document).ready(function() { 
    //$('ul#menu-h').superfish(); 
    
    //$('.lightbox').lightBox('',$('#baseUrl').text());
    $("a.lightbox").lightBox('', $('#baseUrl').text()); 
    //setInterval( "slideSwitch()", 6000 ); 
});


function filterJobs()
{
    $('#jobs_strip').show();    
    $('#workers_strip').hide();    
}

function filterWorkers()
{
    $('#jobs_strip').hide();    
    $('#workers_strip').show();   
}

function slideSwitch() {
    var $active = $('#demomenu IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#demomenu IMG:first');

    if($next.width() == 280)
        $next = $('#demomenu IMG:first');
        
    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 2500, function() {
            $active.removeClass('active last-active');
        });
}



   

