jQuery(document).ready(function(){

	
	
	$('.umtecmenu ul.subnavi a.no').hover(
		function(){
			var bgcol = $(this).attr('rel');
			var white = '#ffffff';
			if(!bgcol.length){
				bgcol = white;
			}
			$(this).css({
				'border-left'	: '9px solid '+bgcol	
			});		
		},
		function(){
			$(this).css({
				'border-left'	: '9px solid #ffffff'
			});		
		}
	);
	
	
	
	$('.umteccopy').jScrollPane({
		autoReinitialise: true,
		animateScroll: true
	});
	
	
	
	
	
	

	
	
	$("a.lightbox").fancybox({
		'titlePosition'		:	"over",
  	'overlayColor'		:	"#000000",
  	'overlayOpacity'	:	0.6,
  	'padding'					:	1,
  	'cyclic'					: true
	});
		
	
	$("a.newsbox").fancybox({
		'titlePosition'		:	"inside",
  	'overlayColor'		:	"#000000",
  	'overlayOpacity'	:	0.6,
  	'padding'					:	1,
  	'cyclic'					: true,
  	'titleFormat'			: formatNewsTitle
	});
	
	
	

	function formatNewsTitle(title, currentArray, currentIndex, currentOpts) {			
	    return '<div class="news-imagecaption-inside">' + (title && title.length ? '<div class="news-imagecaption-left">' + title + '</div>' : '' ) +  '<div class="news-imagecaption-right">Bild ' + (currentIndex + 1) + ' von ' + currentArray.length + '</div><br class="clearer" /></div>';
	}




	
	
	
 	$('.contact-item .label').each(function(){
 		var w = $(this).width();
 		var inp = 335 - w;
 		$(this).parents('.contact-item:first').find('input:first').css({
 			'width'		:	inp+'px'
 		});
 	});

	
	
	
	
});
jQuery(function(){
	
});



	






