this.init = function() {

	$(document).ready(function(){
		$(document).pngFix( );
	});
	//setTimeout('move_up()', 1);
	var category = 1;
	/* +++++++++++++++++  */
	$("div#slider-ub-1-do").click(function () {
		if(category !=1) {
			$("#slider-ka-1").animate( { marginLeft: 0 }, 600, 'easeInOutCubic');
			$("#slider-ka-2").animate( { marginLeft: 40 }, 600, 'easeInOutCubic');
			$("#slider-ka-3").animate( { marginLeft: 80 }, 600, 'easeInOutCubic');
			$("#slider-ka-4").animate( { marginLeft: 120 }, 600, 'easeInOutCubic');
		}
		category = 1;
		$("#content-text1").fadeIn(2);
		$("#content-2").fadeOut(2);
		$("#content-text2").fadeOut(2);
		$("#content-text3").fadeOut(2);
		$("#content-text4").fadeOut(2);
		$("#content-text2").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text3").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text4").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text1").animate( { marginLeft: 0 }, 450, 'easeInOutCubic');
		$("#content-box").animate( { height: 380 }, 450, 'easeInOutCubic');
	});
	/* +++++++++++++++++  */
	$("div#slider-ub-2-do").click(function () {
		if(category !=2) {
			$("#slider-ka-1").animate( { marginLeft: -720 }, 450, 'easeInOutCubic');
			$("#slider-ka-2").animate( { marginLeft: 40 }, 600, 'easeInOutCubic');
			$("#slider-ka-3").animate( { marginLeft: 80 }, 600, 'easeInOutCubic');
			$("#slider-ka-4").animate( { marginLeft: 120 }, 600, 'easeInOutCubic');
		}
		category = 2;
		$("#content-text2").fadeIn(2);
		$("#content-2").fadeOut(2);
		$("#content-text1").fadeOut(2);
		$("#content-text3").fadeOut(2);
		$("#content-text4").fadeOut(2);
		$("#content-text1").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text3").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text4").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text2").animate( { marginLeft: 0 }, 450, 'easeInOutCubic');
		$("#content-box").animate( { height: 670 }, 450, 'easeInOutCubic');
	});
	/* +++++++++++++++++  */
	$("div#slider-ub-3-do").click(function () {
		if(category !=3) {
			$("#slider-ka-1").animate( { marginLeft: -720 }, 450, 'easeInOutCubic');
			$("#slider-ka-2").animate( { marginLeft: -680 }, 600, 'easeInOutCubic');
			$("#slider-ka-3").animate( { marginLeft: 80 }, 600, 'easeInOutCubic');
			$("#slider-ka-4").animate( { marginLeft: 120 }, 600, 'easeInOutCubic');
		}
		category = 3;
		$("#content-text3").fadeIn(2);
		$("#content-2").fadeOut(2);
		$("#content-text1").fadeOut(2);
		$("#content-text2").fadeOut(2);
		$("#content-text4").fadeOut(2);
		
		$("#content-text1").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text2").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text4").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text3").animate( { marginLeft: 0 }, 450, 'easeInOutCubic');
		$("#content-box").animate( { height: 380 }, 450, 'easeInOutCubic');
	});
	/* +++++++++++++++++  */
	$("div#slider-ub-4-do").click(function () {
		if(category !=4) {
			$("#slider-ka-1").animate( { marginLeft: -720 }, 450, 'easeInOutCubic');
			$("#slider-ka-2").animate( { marginLeft: -680 }, 450, 'easeInOutCubic');
			$("#slider-ka-3").animate( { marginLeft: -640 }, 600, 'easeInOutCubic');
			$("#slider-ka-4").animate( { marginLeft: 120 }, 600, 'easeInOutCubic');
		}
		category = 4;
		$("#content-text4").fadeIn(2);
		$("#content-2").fadeIn("slow");
		$("#content-text1").fadeOut(2);
		$("#content-text2").fadeOut(2);
		$("#content-text3").fadeOut(2);
		
		$("#content-text1").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text2").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text3").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text4").animate( { marginLeft: 0 }, 450, 'easeInOutCubic');
		$("#content-box").animate( { height: 380 }, 450, 'easeInOutCubic');
	});
	/* +++++++++++++++++  */
	/* +++++++++++++++++  */
	
/* weiter-buttons */
	
	$("div#slider-ub-1-next").click(function () { 
		category = 2;
		$("#slider-ka-1").animate( { marginLeft: -720 }, 600, 'easeInOutCubic');
		$("#content-text2").fadeIn(2);
		$("#content-text1").fadeOut(2);
		$("#content-text3").fadeOut(2);
		$("#content-text4").fadeOut(2);
		$("#content-text1").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text3").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text4").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text2").animate( { marginLeft: 0 }, 450, 'easeInOutCubic');
		$("#content-box").animate( { height: 670 }, 450, 'easeInOutCubic');
	});
	$("div#slider-ub-2-next").click(function () { 
		category = 3;
		$("#slider-ka-2").animate( { marginLeft: -680 }, 600, 'easeInOutCubic');
		$("#content-text3").fadeIn(2);
		$("#content-text1").fadeOut(2);
		$("#content-text2").fadeOut(2);
		$("#content-text4").fadeOut(2);
		$("#content-text1").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text2").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text4").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text3").animate( { marginLeft: 0 }, 450, 'easeInOutCubic');
		$("#content-box").animate( { height: 380 }, 450, 'easeInOutCubic');
	});
	$("div#slider-ub-3-next").click(function () { 
		category = 4;
		$("#slider-ka-3").animate( { marginLeft: -640 }, 600, 'easeInOutCubic');
		$("#content-text4").fadeIn(2);
		$("#content-text1").fadeOut(2);
		$("#content-text2").fadeOut(2);
		$("#content-text3").fadeOut(2);
		$("#content-text1").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text2").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text3").animate( { marginLeft: 450 }, 1, 'easeInOutCubic');
		$("#content-text4").animate( { marginLeft: 0 }, 450, 'easeInOutCubic');
		$("#content-box").animate( { height: 380 }, 450, 'easeInOutCubic');
	});

};


$(document).ready(function(){	
	init();
});





