$(document).ready(function() {
	$('#container').tabs({ fx: { opacity: 'toggle', fxSpeed: 'fast' } });
	$('#flickr a').lightBox();
	$('#stat a').lightBox();
	$('p#kel').click( function() {
		$.ajax({
			type: "GET",
			url: "exp/keldelice.php",
			error:function(msg){
				alert( "Error !: " + msg );
			},
			success:function(data){
				$('li#exphome').fadeOut(400, function(){
					$('li#exphome').html(data);
					$('li#exphome').fadeIn(400);
				});
			}
		});
	});
	$('p#evene').click( function() {
		$.ajax({
			type: "GET",
			url: "exp/evene.php",
			error:function(msg){
				alert( "Error !: " + msg );
			},
			success:function(data){
				$('li#exphome').fadeOut(400, function(){
					$('li#exphome').html(data);
					$('li#exphome').fadeIn(400);
				});
			}
		});
	});
	$('p#journalism').click( function() {
		$.ajax({
			type: "GET",
			url: "exp/journalism.php",
			error:function(msg){
				alert( "Error !: " + msg );
			},
			success:function(data){
				$('li#exphome').fadeOut(400, function(){
					$('li#exphome').html(data);
					$('li#exphome').fadeIn(400);
				});
			}
		});
	});
	$('p#bmvo').click( function() {
		$.ajax({
			type: "GET",
			url: "exp/bmvo.php",
			error:function(msg){
				alert( "Error !: " + msg );
			},
			success:function(data){
				$('li#exphome').fadeOut(400, function(){
					$('li#exphome').html(data);
					$('li#exphome').fadeIn(400);
				});
			}
		});
	});
	$('p#sources').click( function() {
		$.ajax({
			type: "GET",
			url: "exp/sources.php",
			error:function(msg){
				alert( "Error !: " + msg );
			},
			success:function(data){
				$('li#exphome').fadeOut(400, function(){
					$('li#exphome').html(data);
					$('li#exphome').fadeIn(400);
				});
			}
		});
	});
	$('#menu #menu_exp').click( function() {
		$.ajax({
			type: "GET",
			url: "exp/sources.php",
			error:function(msg){
				alert( "Error !: " + msg );
			},
			success:function(data){
				$('li#exphome').fadeOut(400, function(){
					$('li#exphome').html(data);
					$('li#exphome').fadeIn(400);
				});
			}
		});
	});
	$('p#search').click( function() {
		$.ajax({
			type: "GET",
			url: "exp/search.php",
			error:function(msg){
				alert( "Error !: " + msg );
			},
			success:function(data){
				$('li#exphome').fadeOut(400, function(){
					$('li#exphome').html(data);
					$('li#exphome').fadeIn(400);
				});
			}
		});
	});
});
