function click_thumb(php, id, file) {
	$("#container").fadeOut( 500, function(){
		
		/* document.getElementById('the_image').innerHTML = "laden.gif"; */
		
		$.ajax({
			url: php,
			type: "POST",
			data: "ajax=1&id=" + id + "&file=" + file,
			success: function(response) {
      	  	$('#container').html(response);
      	},
      	complete: function(){
      		$('#container').fadeIn(500);
      	}
		});
	});
}


function toggle(id) {
	$('#' + id).toggle();
}


function fade_out(id, dauer) {
	$('#' + id).fadeOut(500);
}


function header_on_text() {
	$("#header_image_btn_text_on").animate({ opacity: 'hide' }, 'fast');
	$("#header_image_title").animate({ 'top': '270' }, 'fast');
}

function header_on_gallery() {
	$("#header_image_gallery").animate({ 'left': '966' }, 'fast');
	$("#header_image_btn_gallery").animate({ opacity: 'show' }, 'fast');
	$("#header_image_title").animate({ 'top': '270' }, 'fast');
}

function header_off_text() {
	$("#header_image_title").animate({ 'top': '410' }, 'fast');
	$("#header_image_btn_text_on").animate({ opacity: 'show' }, 'fast');
}

function header_off_gallery() {
	$("#header_image_title").animate({ 'top': '410' }, 'fast');
	$("#header_image_gallery").animate({ 'left': '916' }, 'fast');
	$("#header_image_btn_gallery").animate({ opacity: 'hide' }, 'fast');
}




function confirm_form(return_status, form) {
	var question = document.getElementById(form + '_question').value;
	var check = confirm(question);
	
	if (check == true) {
		document[form].submit();
	} else {
		if (return_status == 1) {
			return false;
		}
	}
}


function suche(obj, formular) {
	var value = obj.options[obj.selectedIndex].value;
	
	if(value != "") {
		document[formular].submit();
	}
}


function diashowStop() {
	$('#diashow_stop').hide();
	$('#diashow_start').show();
	$('#diashow').data('nivo:vars').stop = true;
}

function diashowStart() {
	$('#diashow_start').hide();
	$('#diashow_stop').show();
	$('#diashow').data('nivo:vars').stop = false;
}