 $(document).ready(function() {
	$('.real_overlay').css('display','none');
	$('.real_overlay').delay(3000).fadeTo(2000,1);
	
	
	$("ul.startslider .pic").hover(function(event){
		$(this).children('div').css('background-image','url(./layout/fross_start_rahmen.png)');
	}, function () { 
		$(this).children('div').css('background-image','none');
	});
	  
	$("div.team a.pic").hover(function(event){
		$(this).children('div').css('background-image','url(./layout/fross_team_rahmen.png)');
	}, function () { 
		$(this).children('div').css('background-image','none');
	});
	  
	$("div.wohnung").hover(function(event){
		$(this).css('background-image','url(./layout/fross_woh_overlay.png)');
	}, function () { 
		$(this).css('background-image','none');
	});
	
	$("a.wo_link").hover(function(event){
		$(this).children('div').css('background-image','url(./layout/fross_woh_det_overlay.png)');
	}, function () { 
		$(this).children('div').css('background-image','none');
	});
	
	 
	
	$(".footer_nav").hover(function(event){
		$(this).css('top','-128px');
		$(this).css('height','173px');
	}, function () { 
		$(this).css('top','0px');
		$(this).css('height','45px');
	});
	   // Define basic Shadowbox options for using the image player.
    var options = {
      handleOversize: 'none'
      ,animate: true
      ,displayNav: true
      ,handleUnsupported: 'remove'
      ,initialHeight: 60
      ,initialWidth: 100
	  ,overlayOpacity: 0.9
    };
    Shadowbox.init(options);

	
	$(".woh_detail").ulslide({
			effect: {
				type: 'slide', // slide or fade
				axis: 'x',     // x, y
				distance: 40   // Distance between frames
			},
			duration: 500,
			autoslide: 0,
			width: 964,
			nextButton: '#next',
			prevButton: '#prev'

		  });
		  
	$(".startslider").ulslide({
		effect: {
			type: 'slide', // slide or fade
			axis: 'x',     // x, y
			distance: 40   // Distance between frames
		},
		duration: 500,
		autoslide: 0,
		width: 964,
		nextButton: '#next',
		prevButton: '#prev'

	});


 });
 
