jQuery(document).ready(function() {

	//	animateText();



	jQuery(".mailto").each(function () {
		var href = jQuery(this).attr("href");
		jQuery(this).attr("href", href.replace("#","mailto:").replace("[kukac]","@").replace("[pont]", "."));
	});


});
//
//function animateText() {
//	jQuery("#text_to_animate").animate({
//		lineHeight: "29px",
//		paddingTop: "0px"
//	}, 1000).animate({
//		lineHeight: "21px",
//		paddingTop: "13px"
//	}, 1000);
//
//	setTimeout("animateText()", 2000);
//}


$(document).ready(function () {


	
setTimeout('jQuery("#text_1").fadeIn(1000);', 1000);
setTimeout('jQuery("#text_2").fadeIn(1000);', 2000);
setTimeout('jQuery("#mindig_mindenkor_mindenhol").fadeIn(1000);', 3000);

//	var i = 0;
//	jQuery("#text_to_animate span").each(function () {
//		jQuery(this).attr("id", "span_"+i).hide();
//		setTimeout('jQuery("#span_'+i+'").fadeIn("slow");', ++i*1000);
//	});
//	i++;
//	jQuery("#mindig_mindenkor_mindenhol span").each(function () {
//		jQuery(this).attr("id", "span_"+i).hide();
//		setTimeout('jQuery("#span_'+i+'").fadeIn("slow");', ++i*1000);
//	});




//	var obj = jQuery("#text_to_animate");
//
//	var text = (obj.text()).split("");
//
//	obj.html("");
//	for( var i = 0; i<text.length; i++ ) {
//
//		if( text[i] == "\n" ) {
//			setTimeout("addNewLine()", i*100);
//		}
//		else {
//			setTimeout("addFont('"+(text[i]==" "?"&nbsp;":text[i])+"', '"+i+"')", i*100);
//		}
//
//	}
//
//	setTimeout("addMMM()", text.length * 100);


});

function addMMM() {
	jQuery("#mindig_mindenkor_mindenhol").animate({
		opacity: 1,
		left: "293px",
		top: "-19px"
	}, 2000);
}

function addFont( font, i ) {
	
	
	var obj = jQuery("#text_to_animate");
	obj.append('<span id="curr_font_'+i+'" style="font-size: 26px; float: left; display: inline;">'+font+'</span>');
	jQuery("#curr_font_"+i).animate({
		fontSize: "13px"
	}, 500);

}

function addNewLine() {
	var obj = jQuery("#text_to_animate");
	obj.append('<div class="clear">&nbsp;</div>');
}




















