jQuery(function($){
	//alert('qwe');
	//$('#anschrift').css('top','-200px');
	//$('#anschrift').css('opacity','.1');
	//$('#anschrift').animate({
	//	opacity: '1'
	//},1300);
	
	if ($.browser.msie) {
		$('#anschrift').css('opacity','.1');
	} else {
		$('#anschrift').css('opacity','.1');
		$('#anschrift').animate({
		opacity: '1'
	},1300);
	}

	
	//cache nav
	
	$('#cont-menuleiste ul' ).removeClass('nojs');
	var nav = $("#cont-menuleiste");
				
	//add indicator and hovers to submenu parents
	nav.find("li").each(function() {
		if ($(this).find("ul").length > 0) {
			//$("<span>").text("^").appendTo($(this).children(":first"));

			//show subnav on hover
			$(this).mouseenter(function() {
					$(this).find("ul").stop(true, true).slideDown();
			});
						
			//hide submenus on exit
			$(this).mouseleave(function() {
					$(this).find("ul").stop(true, true).slideUp();
			});
		}
	});
	
	
	$("a[rel=jqfancy]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
	});
	


});
