(function($){

	$(document).ready(function() {

		var HTTP = 'http://blog.althen.de/wp-content/themes/althen';

		// add header and footer to post
		var header_border = '<div class="entry_header_border"></div>';
		var footer_border = '<div class="entry_footer_border"></div>';
		$(".post").before(header_border);
		$(".entry-content").after(footer_border);

		// add bottom to sidebar-elements
		var sidebar_bottom = '<div class="sidebar_bottom"></div>';
		// $(".widget_categories, .widget_archive, #wp-calendar").after(sidebar_bottom);
		$(".widgetcontainer").not(".widget_thematic_search").after(sidebar_bottom);

		// add shadow to elements with class "add_shadow"
		var shadow_wrapper 	= '<div class="shadow"></div>';
		var shadow_image	= '<img src="' + HTTP + '/images/icon_shadow.gif" alt="" class="shadow" />';
		$(".add_shadow, .entry-content, #suchen, .widgetcontainer, .widget_categories, .widget_archive, .widget_calendar").wrapInner(shadow_wrapper);
		$("div.shadow").append(shadow_image);

	});

})(jQuery);