$(function() {
	/*
	 * Main Navigation
	 */
	$("#main-navigation").menu();
//
//	/*
//	 * Icon Links
//	 */
//	$("a.go").iconLink();
//	$("a.download").iconLink({
//		image : '../../images/layout/download-link.gif',
//		hover : '../../images/layout/download-link-over.gif'
//	});
//	$("").iconLink({
//		image : '../../images/layout/plus-link.gif',
//		hover : '../../images/layout/plus-link-over.gif',
//		width : 9
//	});
	
	/*
	 * Align Bottom
	 */
	$("#content-area div.left-content-area div.list div.list-item:not(:has(img.top)):not(:has(img.bottom)) div.text-wraper").align({direction : 'bottom'});
	$("#content-area div.right-teaser-area div.teaser:not(:has(img.top)):not(:has(img.bottom)) div.text-wraper").align({direction : 'bottom'});
	
	/*
	 * Suchlabel
	 */
	$("#search-input").inputLabel();
	$("#newsletter-input").inputLabel();
	
	/*
	 * MS IE <= 7 Workaround: Hintergrundbilder für Links rauslöschen und durch
	 * normale Bilder ersetzen. 
	 */
	if ($.browser.msie && $.browser.version <= 7) {
		var c = 0;
		$("#content-area a:not(.download):not(.print):not(.mail):not(h3 a)").each(function() {
			if ($(this).css("background-image") != "none") {
				var img = $(this).css("background-image");
				img = img.substr(5, img.length - 7);
				
				$(this).css({"background-image": "none", "padding" : 0}).append("<img style='margin: 6px 0 0 2px;' src='" + img +"' alt='' />");
				
			}
		});
	}
});
