// JavaScript Document

/*
$(document).ready(function(){
	$(".inputs,.inputslng,.inputsml").each(function (i) {
		var title = $(this).attr("title");
		if( ($(this).val()) == title || ($(this).val()) == "" )
		{
			$(this).val(title);
			$(this).focus(function(){
				var c = $(this).val();
				if( c == title){
					$(this).val('');
				}
			});
		}
		$(this).blur(function(){
			var b = $(this).val();
			if( b == ''){
				$(this).val(title);
			}
		});
	});
});


$(document).ready (function() {
	$("textarea.ctarea").elastic();
});

*/


$(document).ready (function() {

	if ($('.errors').length != 0) {
		var htmlStr = $('.errors').html();
		Boxy.alert( htmlStr , null, {title: 'Achtung'}); 
	} 
	

});	


$(document).ready (function() {
	$('.answer').hide();
	$(".question").click(function () {
		$(this).parent().next('.answer').slideToggle("normal");
		return false;
	});
});	

$(document).ready (function() {
	$('.readmoretext').hide();
	$(".readmore").click(function () {
		$('.readmoretext').slideToggle("normal");
		$(this).toggle();
		return false;
	});
});	

$(document).ready (function() {
	$('body').supersleight();
});	
	
$(document).ready (function() {
	var in_hover = 0; 
	$(".left li").hover(function(){
		if (!in_hover) {
			in_hover = 1; 
			$(this).parent().children().not(this).stop().fadeTo("fast", 0.6);
		 }
	},
	function(){
		if (in_hover) { 
			$(this).stop(true, true).parent().children().stop().fadeTo("fast", 1);
			in_hover = 0; 
			}
	}
	);
});


