var textIterations = 0;

var $j = jQuery.noConflict();

$j(document).ready(function()
{
	var headersmoothtext = $j("#header-smoothtext");
	var flytexts = $j("#header-smoothtext p");
	

	/*animateText($j(this), flytexts);	
	
	headersmoothtext.everyTime(9000, function(){
		animateText($j(this), flytexts);
	});*/
	

	$j("#language").mouseover(function(){
   		$j("#speech").fadeIn("slow");
 	});
 
 	$j("#speech").mouseleave(function(){
	 	$j(this).fadeOut("slow");
 	});
 
 	/*
	var serviceWidth = $j("#service").width();
 	$j("#speech").width(serviceWidth);
	*/

	$j("#print").click(function()
	{
		window.print();
		return false;
	});
	

/*	$j(".normal").mouseover(function(){
		$j(this).replaceWith("<div class='act'></div>");
	})*/


 }); 
 
 
 function animateText(element, texts)
 {
	var aktElement = texts.get(textIterations);
	aktElement = jQuery(aktElement);
	aktElement.fadeIn(2000);
	aktElement.animate(".zoom", 4000);
	aktElement.fadeOut(3000);
	
	aktElement.css("font-size", "0.5em");
	
	textIterations++;
	
	if(textIterations == texts.size())
		textIterations = 0;
 }
