window.onload = function(e) {

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

};

jQuery(document).ready(function() { 
    
//    
    //stepcarousel.setup({
//        galleryid: 'mygallery', //id of carousel DIV
//        beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
//        panelclass: 'panel', //class of panel DIVs each holding content
//        autostep: {enable:true, moveby:1, pause:3000},
//        panelbehavior: {speed:500, wraparound:false, persist:true},
//        defaultbuttons: {enable: true, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
//        statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
//        contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
//    });
//    
    jQuery("a.lightbox").lightBox('', jQuery('#baseUrl').text()); 
    //setInterval( "slideSwitch()", 6000 ); 
});

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');
        });
}



   

