// JavaScript Document
function li(id,status){
var l = document.getElementById(id);
if(status==1){
l.style.borderLeftColor = "#AE4846";
l.style.borderBottomColor = "#CCCCCC";
}
else if (status==0){
l.style.borderLeftColor = "#FFFFFF";
l.style.borderBottomColor = "#CCCCCC";
}
}
//easy Slider


//Home _ SLIDESHOW
 $(document).ready(function() {
$(function() {
			$("div#makeMeScrollable").smoothDivScroll({
			autoScroll: 'onstart', autoScrollDirection: 'right', pauseAutoScroll: 'mouseover', autoScrollSpeed: 2, scrollingSpeed: 2, mouseDownSpeedBooster: 1, visibleHotSpots: "", hotSpotsVisibleTime: 3, startAtElementId: "startAtMe"});
		});
							}); 

//pages

 $(document).ready(function() {
	text= $('.Text').size();

	
	if(text>=1){
	$('.link').css({'cursor':'pointer','width':'100px'});
	
	$('.link').click(function(){
	    var aktuell=$(this).attr('id');
		aktuell=aktuell.substr(5);
	    $('.Text').each(function(){
	    var text=$(this).attr('id');
	    if(text!=aktuell){
	      $(this).css({'display':'none'});
	    }
	    else {
	     
	    $(this).fadeIn(1000);
	    }
	    
	  });
	    $('.link').css({'font-weight':'normal'});
	  $(this).css({'font-weight':'bold'});
	
	    });
	}
	$('#0.Text').css({'display':'block'});
});
	  

	   
	   
