// JavaScript Document
$(document).ready(function(){
    
	//$("p a").bind('click', aClick);

	
	$("#personal").click(function () {
	  $("#slogan").fadeIn(1500);
    });
	
	$("#fadeback").click(function () {
	  $("#slogan").fadeOut(500);
    });
	
	$("#fadeslogan").click(function () {
	  $("#slogan").fadeIn(1500);
    });

/*
	
	$("#about a").click(function () {
	  $("#about a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("#navi").load("index.html #navi");
	  $("#main").load("index.html #main");
	  
	  $("#personal").load("index.html #personal");
	  $("#slogan").load("index.html #slogan");
	  $("body").fadeIn(1500);
    });
	
	$("#koop a").click(function () {
	  $("#koop a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("koop.html");
	  $("body").fadeIn(1500);

    });
	
	$("#karriere a").click(function () {
	  $("#karriere a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("karriere.html");
	  $("body").fadeIn(1500);

    });
	
	$("#leistungen a").click(function () {
	  $("#leistungen a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("leistungen.html body");
	  $("body").fadeIn(1500);

    });
	
	$("#projekt a").click(function () {
	  $("#projekt a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("projekt.html");
	  $("body").fadeIn(1500);

    });
	
	$("#prozess a").click(function () {
	  $("#prozess a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("prozess.html");
	  $("body").fadeIn(1500);

    });
	
	$("#orga a").click(function () {
	  $("#orga a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("orga.html");
	  $("body").fadeIn(1500);

    });
	
	$("#ohb a").click(function () {
	  $("#ohb a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("ohb.html");
	  $("body").fadeIn(1500);

    });
	
	$("#ref a").click(function () {
	  $("#ref a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("ref.html");
	  $("body").fadeIn(1500);

    });
	
	$("#news a").click(function () {
	  $("#news a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("news.html");
	  $("body").fadeIn(1500);

    });
	
	$("#impressum a").click(function () {
	  $("#impressum a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("impressum.html");
	  $("body").fadeIn(1500);

    });
	
	$("#kontakt a").click(function () {
	  $("#kontakt a").removeAttr("href");
	  $("body").fadeOut(1);  
	  $("body").load("impressum.html");
	  $("body").fadeIn(1500);

    });
*/

  });

stepcarousel.setup({
	galleryid: 'procedera', //id of carousel DIV
	beltclass: 'main', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	autostep: {enable:false, moveby:1, pause:3000},
	panelbehavior: {speed:500, wraparound:false, persist:false},
	defaultbuttons: {enable: false, moveby: 1, leftnav: ['images/navcontleft.gif', -5, 80], rightnav: ['images/navcontright.gif', -20, 80]},
	statusvars: ['startCont', 'lastCont', 'totalCont'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'], //content setting ['inline'] or ['external', 'path_to_external_file']
	oninit:function(){}
})
