/* ==================================
Funktion zum Ändern der Schriftgröße
================================== */

jQuery.noConflict();

var head1_font = 0; var head1_margin = 0;
var head2_font = 0; var  head2_margin = 0;
var teaser_font = 0; var teaser_margin = 0;
var content_font = 0; var content_margin = 0;
var caption_font = 0; var caption_margin = 0;
var lineheight = 0;

function resizeFont (direction) {	
	
	switch (direction) {
		case 1:
			head1_font = 25; head1_margin = 32;
			head2_font = 20;  head2_margin = 28;
			teaser_font = 14; teaser_margin = 21;
			content_font = 13; content_margin = 22;
			caption_font = 13; caption_margin = 18;
			lineheight = 21;
			break;
		case 2:
			head1_font = 28; head1_margin = 36;
			head2_font = 20; head2_margin = 28;
			teaser_font = 15; teaser_margin = 22;
			content_font = 14; content_margin = 24;
			caption_font = 14; caption_margin = 20;
			lineheight = 22;		
			break;
		case 3:
			head1_font = 30; head1_margin = 38;
			head2_font = 20; head2_margin = 28;
			teaser_font = 16; teaser_margin = 24;
			content_font = 15; content_margin = 25;
			caption_font = 15; caption_margin = 22;
			lineheight = 23;			
			break;
	}
	
	/* Normaler Inhalt */
	jQuery("div.news-single-item h3").css("font-size",(content_font)+"px");
	jQuery("div.news-single-text p").css("font-size",(content_font)+"px");
	jQuery("div.news-single-item dl").css("font-size",(content_font)+"px");
	jQuery("div.news-single-item h3").css("margin-bottom",(content_margin)+"px");
	jQuery("div.news-single-text p").css("margin-bottom",(content_margin)+"px");
	jQuery("div.news-single-item dl").css("margin-bottom",(content_margin)+"px");
	
	/* News + Inside */
	jQuery("div.csc-text").css("font-size",(content_font)+"px");
	jQuery("div.csc-text").css("margin-bottom",(caption_margin)+"px");
	
	/* Headlines */	
	jQuery("div#inhalt-mitte h2").css("font-size",(head2_font)+"px");	
	jQuery("div#inhalt-mitte h2").css("margin-bottom",(head2_margin)+"px");
	
	jQuery("div.news-single-item h2").css("font-size",(head1_font)+"px");
	jQuery("div.news-single-item h2").css("margin-bottom",(head1_margin)+"px");
	
	jQuery("div.artikel-teaser").css("font-size",(teaser_font)+"px");
	jQuery("table.fazit-blau").css("font-size",(teaser_font)+"px");
	jQuery("div.artikel-teaser").css("margin-bottom",(teaser_margin)+"px");	
	jQuery("table.fazit-blau dl").css("margin-bottom",(teaser_margin)+"px");
	
	/* Bildtext */
	jQuery("dd.csc-textpic-caption").css("font-size",(caption_font)+"px");
	jQuery("dd.csc-textpic-caption").css("margin-bottom",(caption_font)+"px");
	
	/* Zeilehoehe */	
	jQuery("div.news-single-item").css("line-height",(lineheight)+"px");
	jQuery("div.csc-text").css("line-height",(lineheight)+"px");
	
}

