function slideTeaserUp() {
	if(this.slideTimer) clearTimeout(this.slideTimer);
	var teaser = $(this);
	if(teaser.hasClass("up") || teaser.hasClass("sliding")) return false;
	teaser.addClass("sliding");
	teaser.animate( { top:"-96px" }, 200, "swing", function() {
			teaser.addClass("up");
			teaser.removeClass("sliding");
			});
	return true;
}

function slideTeaserDown() {
	this.slideTimer = setTimeout("executeSlideTeaserDown('"+this.id+"')",200);
}

function executeSlideTeaserDown(teaserId) {
	var teaser = $("#"+teaserId);
	if(teaser.hasClass("up") && !teaser.hasClass("sliding")) {
		teaser.removeClass("up");
		teaser.addClass("sliding");
		teaser.animate( { top:"0px" }, 200, "swing", function() {
				teaser.removeClass("sliding");											
				});
	}
	return true;
}

function clickTeaser() {
	var a = $(this).find("a")[0];
	if(!a.onclick || (a.onclick()!=false)) location=a.href;
	return false;
}

				$(function() {
					$('#nav').menu();
					$('#s7').cycle({ 
						fx:     'fade',
						random:  true,
						speed:   1000,
						timeout: 6000,
						fastOnEvent: 100,
						prev:   '#prev_banner',
						next:   '#next_banner',
						pause:   1
					});
					$('#news').cycle({ 
						fx:     'fade',
						speed:   200,
						timeout: 4500,
						next:   '#next_button',
						prev:   '#pre_button',
						pause:   1
					});
					var teaseCount = 0;
					$(".teaser_js").each(function() { this.id = "teaser_"+teaseCount; teaseCount++; }).mouseover(slideTeaserUp).mouseout(slideTeaserDown).click(clickTeaser);
//					$('.teaser_js p').before('<br />');
					$('.teaser_js p').css('display','block');
				});

