$(document).ready(function() {
    /* 
    * attach a function to open all links with a class of "external" in a new window 
    * this avoids the use of target="_blank" and allows us to validate as XHTML strict
    */
    $("a[rel^='external']").click( function() {
        window.open(this.href);
        return false;
    });
    
    try {
            document.execCommand('BackgroundImageCache', false, true);
    } catch(e) {}
        
    if($("#slideshow > div").size() == 1 ){
        $('.indexSlide').show();
    } else {
        $('#slideshow').cycle({
            fx: 'fade',
            speed:  5000,
            timeout:  3000
        });
    }

       
});
