$(document).ready( function()
  { 
    $('#dHeader .MenuItem').not('.current_page_item .MenuItem').hover(
       function()
       {
        this.src = this.src.replace("_off.png","_on.png");
       },
       function()
       {
        this.src = this.src.replace("_on.png","_off.png");
       }
     );
     
    if($('#dTopNavigation .current_page_item img').src) 
      $('#dTopNavigation .current_page_item img').src.replace("_off.png","_on.png");
      
    if($('#dMainNavigation .current_page_item img').src) 
      $('#dMainNavigation .current_page_item img').src.replace("_off.png","_on.png");
  } 
); 





$(document).ready( function()
  {
    $('#Menu_10').colorbox({width:"300px", height:"200px", iframe:true});
  
  }
);


$(document).ready( function()
  {
    $("#accordion").accordion({
			autoHeight: false
		});
  }
);


$(document).ready( function()
  {
    $("#Archives").tabs();
    Blog_SetActiveButton();
    $('#Archives .ui-tabs-nav li a').bind('click', Blog_SetActiveButton);
  }
);

function Blog_SetActiveButton()
{
  if($('.ui-tabs-selected a img').src)
  {
    //alert('yes');
    $('.ui-tabs-selected a img').src.replace("_off.png","_on.png");
    
  }
  else
  {
    //alert('nope');
  }
}

$(document).ready( function()
    { 
      $('#slideshow img').show();
      $('#slideshow').innerfade({ speed: 'slow', timeout: 4000, type: 'random'}); 
    } 
);