    if(!jQuery.browser.msie)
       {
           jQuery(document).ready(function(){   
                                      jQuery("#content_loading").fadeOut('fast');  
                                      jQuery("#container_page").fadeIn('slow');
                                                });
    }
//splash page only - ding when clicking on language
jQuery(document).ready(function(){	  
                                                  //jQuery("#splash_english").click(function(){ jQuery.dbj_sound.play( "#bell_sound",'' ); });
                                                  //jQuery("#splash_francais").click(function(){ jQuery.dbj_sound.play( "#bell_sound",'' ); });
                                                  jQuery("#splash_english").hover(function(){ jQuery.dbj_sound.play( "#bell_sound",'' ); }, function(){ jQuery.dbj_sound.stop( "#bell_sound",'' ); });
                                                  jQuery("#splash_francais").hover(function(){ jQuery.dbj_sound.play( "#bell_sound",'' ); }, function(){ jQuery.dbj_sound.stop( "#bell_sound",'' ); });
						});

var FADE_SPEED = 1000;
var LAST_SECTION = "";
function load_content(url)
{
    var url_parts = url.split(/\//);
    // section is in the 3rd index, except for stupid IE..I hate you
     var section;
    if(jQuery.browser.msie)
   {
     section = url_parts[1];
   }
  else
  {
        section = url_parts[2];
   }
    
    jQuery("#container_loading_content").fadeOut(FADE_SPEED, function(){
	    jQuery("#container_loading_content").load( url + " #container_loading_content > *", '', function(){
		    if ( LAST_SECTION != "")
		    {

			jQuery(LAST_SECTION + " a").each(function(){ jQuery(this).removeClass('selected');});
		    }
                   
		    jQuery("#"+section + " a").each(function(){ jQuery(this).addClass('selected');
                                                                                         
                                                                                        //if(jQuery.browser.msie) { jQuery(this).attr('class', 'selected'); }
                                                                                     });
		    LAST_SECTION = "#" + section;
		    jQuery("#container_loading_content").fadeIn(FADE_SPEED);
		});
	});
}

function load_content_gallery(url)
{
    var url_parts = url.split(/\//);
    // section is in the 3rd index
     var section;
    if(jQuery.browser.msie)
   {
     section = url_parts[1];
   }
  else
  {
        section = url_parts[2];
   }
    jQuery("#container_loading_content").fadeOut(FADE_SPEED, function(){
	    jQuery("#container_loading_content").load( url, '', function(){
		    if ( LAST_SECTION != "")
		    {
			    jQuery(LAST_SECTION + " a").each(function(){ jQuery(this).removeClass('selected');});
		    }

		    jQuery("#"+section + " a").each(function(){ jQuery(this).addClass('selected');});
		    LAST_SECTION = "#" + section;
		    jQuery("#container_loading_content").fadeIn(FADE_SPEED);
		});
	});
}