// JavaScript Document

$(function(){
	$.fn.supersized.options = {
		startwidth: 16,
		startheight: 9,
		vertical_center: 0,
		slideshow: 0,
		transition: 1,
		slideinterval: 100000
	};
        $('#supersize').supersized();
});


$(document).ready(function() {
$("#site").css({"left" : "-960px"});
$("#news").css({"left" : "-960px"});
$("#news2").css({"left" : "-960px"});
$("#mgmt").css({"left" : "-960px"});
$("#site").animate({ left: "0" }, 1000, function(){$("#news").animate({ left: "0" }, 1000, function(){$("#news2").animate({ left: "0" }, 1000);});});
$("#nav a").click(function(){
 	$("#site").animate({ left: "-960px" }, 100);
	$("news").animate({ left: "-960px" }, 100);
	$("#news2").animate({ left: "-960px" }, 100);
	$("#mgmt").animate({ left: "-960px" }, 100);
	});
	
$("#news a.kontakt").click(function(){
 	$("#site").animate({ left: "-960px" }, 500, function(){$("#site").hide(0, function(){$("#mgmt").animate({ left: "0" }, 1000);});});
	
	});

	
	 $(".tweet").tweet({
            username: "theachtungnews",
            join_text: "",
            count: 1,
            loading_text: "loading tweeter feeds..."
        });
		
		 $(".tweet2").tweet({
            username: "theachtungs",
            join_text: "",
            count: 1,
            loading_text: "loading tweeter feeds..."
        });
		
$("img[rel]").overlay({mask: '#000'});


});

