jQuery(document).ready(function($) {

	// font replacement
	// if (!$.fontAvailable('Minion Pro')) {
		if ($.browser.className != "msie6") {
			Cufon.replace('#navigation li a, h1, h2, h3, h4, h5, h6, span.important', {
					hover: true
			});
		};
	// };

	// add crosses to rows
	$('#teaser').prepend('<img class="cross_bottom" src="/workspace/aquarell/images/bg_cross_3.png" alt="" />');
	$('.row.col_3').each(function() {
		var $this = $(this);
		$this.prepend('<img class="cross_top" src="/workspace/aquarell/images/bg_cross_3.png" alt="" /><img class="cross_bottom" src="/workspace/aquarell/images/bg_cross_3.png" alt="" />');
	});
	$('.row.col_1_2').each(function() {
		var $this = $(this);
		$this.prepend('<img class="cross_top" src="/workspace/aquarell/images/bg_cross_1_2.png" alt="" /><img class="cross_bottom" src="/workspace/aquarell/images/bg_cross_1_2.png" alt="" />');
	});
	$('.row.col_2_1').each(function() {
		var $this = $(this);
		$this.prepend('<img class="cross_top" src="/workspace/aquarell/images/bg_cross_2_1.png" alt="" /><img class="cross_bottom" src="/workspace/aquarell/images/bg_cross_2_1.png" alt="" />');
	});
	$('.row.col_1_1_1').each(function() {
		var $this = $(this);
		$this.prepend('<img class="cross_top" src="/workspace/aquarell/images/bg_cross_1_1_1.png" alt="" /><img class="cross_bottom" src="/workspace/aquarell/images/bg_cross_1_1_1.png" alt="" />');
	});
	
  // Spalten einer Reihe im Inhalts-Bereich auf die selbe maximale HÃ¶he setzen (wg. optionaler Hintergrundfarben)
  $('#footer .row').each(function() {
   var $this = $(this);
   var max_height = 0;
   var $cols = $('.col',$this);
   if ($cols.length > 1) {
     $cols.each(function() {
       var $this = $(this);
       var height = $this.height();
       if (height > max_height) {
         max_height = height;
       };
     });
     $cols.height(max_height);
     // Höhe von Content-Elementen mit Linien oben und unten anpassen
     $cols.each(function() {
       var $this = $(this);
       if ($('.borders',$this).length) {
         $('.borders',$this).height(max_height - 47);
       };
     });
   };
  });
});
