jQuery( function($) {

    $('body').prepend( $('<div />').addClass('top-bg') );

    // Dave Whipps (dwhipps@mac.com) commented this out 2008/10/31 because I think it's causing problems with IE
    // It looks like this JS isn't working properly with all of the relative paths
    // used to include the CSS file and inside the CSS file itself
    // Using FireBug, I noticed that many of the images that this function was trying to preload were
    // coming back 404 because of incorrect paths.
    // Although I couldn't test it, I believe that this was the source of the slowdowns on IE
    //$.preloadCssImages();

    $('#mainBox #options-box').after( $('<div />').addClass('select-design').attr('title','^ Select a design ^') );
    
    if ( myLocale != 'frCA') {
        
        if ( $('#navigation_little li.find-us-on-facebook').length == 0 ) {
	        $('#navigation_little ul').append(
	            $('<li />').addClass('spacer')
	        ).append(
	            $('<li />').addClass('find-us-on-facebook').append(
	                $('<div />').append(
	                    $('<a />')
	                        .attr('href','http://www.facebook.com/group.php?gid=265051869738')
	                        .attr('target','_blank')
	                )
	            )
	        );
        }
    }

    if ( myLocale == 'frCA' ) {
        $('#navigation_little img').each( function() {
            if ( $(this).height() > 9 )
                $(this).css('position','relative').css('top','-2px');
        });
        
        $('#mainBox div.select-design').attr('title','^ Choisissez une design ^');
    }
});
