/*
 * Allgemeine Funktionen
 *
 * Lars Vogel
 * 20010-03-09
 *
 */
 
 
 /* sIFR */
 var font = {
				src: 'fileadmin/templates/sIFR/swf/myriad.swf'
				,ratios: [8,1.41,11,1.31,15,1.29,25,1.25,33,1.23,43,1.22,65,1.21,69,1.2,70,1.21,117,1.2,118,1.19,122,1.2,123,1.19,1.2]
			};
					
// ratios berechnen: sIFR.debug.ratios({ src: 'sIFR/swf/itcc.swf', selector: 'h5' });
sIFR.delayCSS  = true;
sIFR.activate(font);			
sIFR.replace(font, {
	wmode: 'transparent'
	,selector: 'h1'
	,css: [
	  		'.sIFR-root { text-align: left; font-weight: normal; color: #ff8200; margin: 0; padding:0; font-size: 20px;}'
	  		,'a { text-decoration: underline; }'
	  		,'a:link { color: #ff8200; }'
	  		,'a:hover { color: #ff8200; }'
		]
});
 
sIFR.replace(font, {
	wmode: 'transparent'
	,selector: 'h6'
	,css: [
	  		'.sIFR-root { text-align: left; font-weight: normal; color: #707070; margin: 0 0 0 0; padding:0; font-size: 38px; text-transform: lowercase;}'
	  		,'a { text-decoration: underline; }'
	  		,'a:link { color: #707070; }'
	  		,'a:hover { color: #707070; }'
		]
});
  
 
 
 /* Zeichenbegrenzung */
 
function textcounter( field, count_field, max_limit ) {
	 alert("test");
 	if( field.value.length > max_limit ) {
    	// Inhalt zu lang -> Inhalt beschneiden
    	field.value = field.value.substring(0, max_limit);
  	
	} else {
    	// Laenge des Inhalts korrekt -> "Zeichen verbleibend" aktualisieren
    	count_field.value = max_limit - field.value.length;
  	}
}
 

