$(document).ready(function() {
	$("#twitter-box").fadeIn();
	
	$('a.album').hover(function() {
		$(this).addClass("hover");
	}, function() {
		$(this).removeClass("hover");
	});
});

function openKommentarWindow(foto_id) {
	window.open('showKommentarList.php?fotoid='+foto_id,'','width=400,height=600,status=0,toolbar=0,menubar=0,location=0');
}

function FCKHack() {
    for ( i = 0; i < parent.frames.length; ++i ) {
        if ( parent.frames[i].FCK )
            parent.frames[i].FCK.UpdateLinkedField();
    }
}


//jQuery finished tested OK
function hideHeader() {
	if($('#header').css("display")=="none")
	{
		$('#twitter-box').fadeIn("slow");
		$('#header').slideDown("slow");
		$('#headerimg').src = "assets/Blue/up.gif";
		$('#headerimgtext').html("Seitenkopf ausblenden");
		
		$.get("ajaxFunctions.php", { func: "hideHeader", show: "1" });
	}
	else
	{
		$('#twitter-box').fadeOut("fast");
		$('#header').slideUp("slow");
		$('#headerimg').src = "assets/Blue/down.gif";
		$('#headerimgtext').html("Seitenkopf einblenden");
		
		$.get("ajaxFunctions.php", { func: "hideHeader", show: "0" });
	}
}


