var $j = jQuery.noConflict();
$j(document).ready(function(){
	$j.ajax({
		type: "POST",
		dataType: 'html',
		global: 'false',
		url: "news-teaser.php",
		success: function(msg){
			$j('#newsTeaser').html(msg);
		}
	});
	$j.ajax({
		type: "POST",
		dataType: 'html',
		global: 'false',
		url: "notebook-teaser.php",
		success: function(msg){
			$j('#leafletTeaser').html(msg);
		}
	});
	$j.ajax({
		type: "POST",
		dataType: 'html',
		global: 'false',
		url: "pressTeaser.php",
		success: function(msg){
			$j('#pressTeaser').html(msg);
		}
	});
});

/* showing/hiding the map */
$j(document).ready(function(){
	$j("#mapOpener").click(function(){
		if ($j("#maplayer").is(":hidden")){
			$j("#maplayer").slideDown("slow");
		}else{
			$j("#maplayer").slideUp("slow");
		}
	});

	$j("#mapCloser").click(function(){
		$j("#maplayer").hide("slow");
	});

	$j("#locFinder").click(function(){
		$j("#maplayer").hide("slow");
	});
});

/* showing/hiding the document contact layer */
$j(document).ready(function(){
	$j("A.filerequestOpener").click(function(){
		if($j("#filerequest").is(":hidden")){
			$j("#filerequest").slideDown("slow");
		}else{
			$j("#filerequest").slideUp("slow");
		}
	});

	$j(".filerequestCloser").click(function(){
		//$j("#filerequest").hide("slow");
		$j("#filerequest").slideUp("slow");
	});

	/*$j("#filerequestSender").click(function(){
		$j("#filerequest").hide("fast");
	});*/
});

