

/****************** Slideshow Einstellungen *******************/
$(document).ready(function() {          
$('.slideshow').cycle({
          fx: 'fade', random:  1, speed:  2500, timeout: 6000
        	});
});
	
/****************** ColorFade Links Berufsübersicht  entfernt 29.3.2011 *******************/
/*  $(document).ready(function(){												 
	  //over
		$("#quicklinks_start .pub-el-text-text").find('a').mouseenter(function(){						 
			$(this).colorBlend([{ colorList:["#fff", "#000"], param:"background-color", cycles: 1, duration: 500 }]).colorBlend([{ colorList:["#666", "#fff"], param:"color", cycles: 1, duration: 100 }]);
		});
		$("#berufsbereich_124000052").find('a').mouseenter(function(){						 
			$(this).colorBlend([{ colorList:["#fff", "#c5c5c5"], param:"background-color", cycles: 1, duration: 500 }]);
		});
		$("#berufsbereich_124000052").find('a').mouseenter(function(){						 
			$(this).colorBlend([{ colorList:["#666", "#000"], param:"color", cycles: 1, duration: 500 }]);
		});			
		$("#berufsbereich_124000053").find('a').mouseenter(function(){	
			$(this).colorBlend([{ colorList:["#fff", "#eee"], param:"background-color", cycles: 1, duration: 500 }]);
		});	 			 
		$("#berufsbereich_124000054").find('a').mouseenter(function(){
			$(this).colorBlend([{ colorList:["#fff", "#ffffce"], param:"background-color", cycles: 1, duration: 500 }]);
		});
		$("#berufsbereich_124000055").find('a').mouseenter(function(){						 
			$(this).colorBlend([{ colorList:["#fff", "#CAF9D9"], param:"background-color", cycles: 1, duration: 500 }]);				
		});
		$("#berufsbereich_124000056").find('a').mouseenter(function(){						 
			$(this).colorBlend([{ colorList:["#fff", "#bfeeff"], param:"background-color", cycles: 1, duration: 500 }]);
		});
		$("#berufsbereich_124000057").find('a').mouseenter(function(){						 
			$(this).colorBlend([{ colorList:["#fff", "#fdd5fd"], param:"background-color", cycles: 1, duration: 500 }]);
		});
		$("#berufsbereich_124000058").find('a').mouseenter(function(){						 
			$(this).colorBlend([{ colorList:["#fff", "#eee"], param:"background-color", cycles: 1, duration: 500 }]);
		});
		//out
		$("#quicklinks_start .pub-el-text-text").find('a').mouseleave(function(){						 
			$(this).colorBlend([{ colorList:["#fff", "#666"], param:"color", cycles: 1, duration: 100 }]).colorBlend([{ colorList:["#000", "#fff"], param:"background-color", cycles: 1, duration: 500 }]);
		});
		$("#berufsbereich_124000052").find('a').mouseleave(function(){						 
			$(this).colorBlend([{ colorList:["#c5c5c5", "#e4e4e4", "#fff"], param:"background-color", cycles: 1, duration: 700 }]);
		});	
		$("#berufsbereich_124000052").find('a').mouseleave(function(){						 
			$(this).colorBlend([{ colorList:["#000", "#666"], param:"color", cycles: 1, duration: 700 }]);
		});		
		$("#berufsbereich_124000053").find('a').mouseleave(function(){
			$(this).colorBlend([{ colorList:["#eee","#fbfbfb", "#fff"], param:"background-color", cycles: 1, duration: 700 }]);
		});						 
		$("#berufsbereich_124000054").find('a').mouseleave(function(){
			$(this).colorBlend([{ colorList:["#ffffce", "#ffffea", "#fff"], param:"background-color", cycles: 1, duration: 700 }]);					 
		});
		$("#berufsbereich_124000055").find('a').mouseleave(function(){
			$(this).colorBlend([{ colorList:["#CAF9D9", "#e8fdef", "#fff"], param:"background-color", cycles: 1, duration: 700 }]);						 
		});
		$("#berufsbereich_124000056").find('a').mouseleave(function(){
			$(this).colorBlend([{ colorList:["#bfeeff", "#e1f7ff", "#fff"], param:"background-color", cycles: 1, duration: 700 }]);						 
		});
		$("#berufsbereich_124000057").find('a').mouseleave(function(){
			$(this).colorBlend([{ colorList:["#fdd5fd", "#feedfe", "#fff"], param:"background-color", cycles: 1, duration: 700 }]);						 
		});
		$("#berufsbereich_124000058").find('a').mouseleave(function(){
			$(this).colorBlend([{ colorList:["#eee", "#fbfbfb", "#fff"], param:"background-color", cycles: 1, duration: 700 }]);						 
		});
		
  });*/


/*********** Hinttexte Eingabeboxen **************/

$(document).ready(function(){

			//Suchbox
			$('#search_text').click(function() {
				var element = '#' + this.id;
				var hinttext = 'Suche';
				inputfeld_focus(element,hinttext);
   		});	
			$('#search_text').blur(function() {
				var element = '#' + this.id;
				var hinttext = 'Suche';
				inputfeld_blur(element,hinttext);
   		});				 
});	

function inputfeld_focus(element,hinttext) {
	if ($(element).val() == hinttext) {
		$(element).val('');
		$(element).css('color','#000');
	}
}

function inputfeld_blur(element,hinttext) {
	if ($(element).val() == '' ) {
		$(element).val(hinttext);
		$(element).css('color','#ccc');
	}
}

/********** End Hinttexte Eingabeboxen ************/
