jQuery(document).ready(function(){

	Cufon.replace('#logoWrapper h1', {textShadow: '#fff 1px 1px, #444 -1px -1px'});
	
	//remove link seperator from last link in top links
	jQuery("ul#top_links a:last").css({'background': 'none', 'padding-right': '0px'});
	
	
	//hover/background for the first navigation item
	jQuery("#main_navigation li:first:not(.current)").hover(function(){
		
		jQuery(this).css({'background': 'url(images/main_navigation_hover2.gif) left top repeat'});	
		
	}, function(){
	
		jQuery(this).css({'background': 'transparent'})
	
	});
		
	jQuery("#main_navigation li:first").mousedown(function(){
		
		jQuery(this).css({'background': 'url(images/main_navigation_hover2.gif) left bottom repeat'});
		
	});
	
	jQuery("#main_navigation li:first").mouseup(function(){
		
		jQuery(this).css({'background': 'none'});
		
	});

	//main sub navigation
	$('#main_navigation > li').hover(function(){
	
		$(this).find('ul').slideDown();
	
	}, function(){
	
		$(this).find('ul').slideUp();
	
	})
	
	
	//different backgrounds for last breadcrumbs item
	jQuery("ul#bread_crumbs li:last span").css({'background': 'transparent url('+themeURL+'/images/crumbs_bg_2.png) right top no-repeat'});
	
	//remove right border and padding from last footer link
	jQuery("div#footer-links ul a:last").css({'border': '0px', 'padding-right': '0px'});
	
	
	//bg for the top link in the extra menu in the sidebar
	//jQuery(".extra-menu a:first").css({'background': 'transparent url(images/extra_menu_bg_top.png) left top no-repeat', 'height': '40px'});
	
	//jQuery(".extra-menu a:last").css({'background': 'transparent url(images/extra_menu_bg_bottom.png) left top no-repeat'});
			
})
