//<![CDATA[
var classname = "";
var elArray  = $("*[class*='data _']");

for (var a= 0; a < elArray.length; a++)
{
   lowerStr = elArray[a].innerHTML;
   if (lowerStr.toLowerCase() == "tel: <br>" ||
   lowerStr.toLowerCase() == "<br>" ||
   lowerStr.toLowerCase() == "fax: <br>" ||
   lowerStr.toLowerCase() == "mobil: <br>" ||
   lowerStr.toLowerCase() == '<a href="mailto:"></a>' ||
   lowerStr.toLowerCase() == '<a href="http://"></a>')
   {
	elArray[a].style.display = "none";
   }
}

$(document).ready(function() {
	$('#fontControls').jfontsizer({
		applyTo: 'body',
		changesmall: '1',
		changelarge: '3',
		changedefault: '1.0',
		expire: 50
	});
	$("#info .morelink").hide();
});
$(function() {
		   var logoheight = $('#header .logo').height();
		   var headertop = 221 - logoheight;
		   $('#header .shadow').css('margin-top', headertop);
});
$(function() {
		   var contentwidth = $('#content').width();
		   var conwidth = contentwidth - 20;
		   var rightpicwidth = $('#content .rightpic').width();
		   var conminus = conwidth - (rightpicwidth + 25);
		   
		   if (rightpicwidth > 1) {
			   $('#content .con').css('width', conminus);
		   }
		   else {
			   $('#content .rightpic').css('display', 'none');
			   $('#content .con').css('width', conwidth);
		   }
});
function anpassen() {
	var content1 = $('#content').height();
	var sub1 = $('#subnavigation').height();
	var info1 = $('#info').height();
	if (content1 >= sub1) {
		if (content1 >= info1) {
			$('#subnavigation').css('min-height', content1);
			$('#info').css('min-height', content1);
		}
		else {
			$('#subnavigation').css('min-height', info1);
			$('#content').css('min-height', info1);
		}
	}
	else {
		if (sub1 >= info1) {
			$('#content').css('min-height', sub1);
			$('#info').css('min-height', sub1);
		}
		else {
			$('#subnavigation').css('min-height', info1);
			$('#content').css('min-height', info1);
		}
	}
}
$(function() {
		   $('#bottomcontainer #footer ul').evenHeight();
});
$(function() {
		   var ulheight = $('#bottomcontainer #footer ul').height();
		   var footerminheight = ulheight + 19;
		   $('#bottomcontainer #footer').css('min-height', footerminheight);
});
$(function() {
		   setTimeout('setXHeight();', 500);
});
function setXHeight()
{
	var dh = $(document).height();
	var topcontainerheight = $('#topcontainer').height();
	var ie7 = $.browser.msie + $.browser.version;
	if (ie7 == 'true7.0') {
		var resultheight = dh - (topcontainerheight + 2);
	}
	else {
		var resultheight = dh - (topcontainerheight + 44);
	}
	$('#bottomcontainer #footer').css('height', resultheight);
	anpassen();
}
$(function() {
	var anzahl = $('#content .con ul.gallery.clearfix li');
	var wert = 3;
	var marginbottom = 10;
	var bildanzahl = anzahl.length;
	var zeilen = bildanzahl / wert;
	var aufrunden = Math.ceil(zeilen).toFixed(0);
	var imgheight = $('#content .con ul.gallery.clearfix li:first').height();
	var zusatzwert = (aufrunden - 1) * marginbottom;
	var rechnung = (imgheight * aufrunden) + zusatzwert;
	$('#content .con ul.gallery.clearfix').css('height',rechnung);
});

//]]>

