					   
$(document).ready(function(){

	fadeInSpeed = 100;

	var RCbig = {
      tl: { radius: 15 },
      tr: { radius: 15 },
      bl: { radius: 15 },
      br: { radius: 15 },
      antiAlias: true
    };
	
	var RCsmall = {
      tl: { radius: 5 },
      tr: { radius: 5 },
      bl: { radius: 5 },
      br: { radius: 5 },
      antiAlias: true
    };
	

	$("#content_holder").fadeIn(fadeInSpeed);
	
	//curvyCorners(RCsmall, ".roundedCorners");
	
	
	$('#Angebote').fadeIn(1000,function(){		
		
		$('#top5_elements').bxSlider({
			//prev_image: '/pics/slide_arrow_left.png',
			//next_image: '/pics/slide_arrow_right.png',
			prev_image: '/pics/slider_left_arrow.jpg',
			next_image: '/pics/slider_right_arrow.jpg',													
			wrapper_class: 'slides1_wrap',
			margin: 70,
			tickerSpeed: 6000,
			pause: 6000,
			auto: true,
			auto_controls: false
			
		});					
	});
	
	
	$('#topNavigationUL').droppy({speed: 200});
	
	
	if ($("#immo_search_list").hasClass('thumb_view')) {
		$("a.switch_search_thumb").toggle(function() {showSearchTextList(this)},function() {showSeachThumbList(this)}); 			
	} else {			
		$("a.switch_search_thumb").toggle(function() {showSeachThumbList(this)},function() {showSearchTextList(this)}); 		
	}
			
	

	//var elements = new Array('logo','HeadRight','seoleiste','navi','sucheOut','LeftContent','news_block','KontaktBox','Angebote','content_holder','angebot_holder');
	
	/*
		$("#logo").fadeIn(fadeInSpeed,function(){
			$("#HeadRight").fadeIn(fadeInSpeed,function(){
				$("#seoleiste").fadeIn(fadeInSpeed,function(){
					$("#navi").fadeIn(fadeInSpeed,function(){
						$("#sucheOut").fadeIn(fadeInSpeed,function(){
							$("#LeftContent").fadeIn(fadeInSpeed,function(){
								$("#news_block").fadeIn(fadeInSpeed,function(){
									$("#KontaktBox").fadeIn(fadeInSpeed, function() {
										$("#Angebote").fadeIn(fadeInSpeed,function(){																																				
											
											$("#content_holder").fadeIn(fadeInSpeed,function(){
												$("#angebot_holder").fadeIn(fadeInSpeed,function(){														
													$("#footer").fadeIn(fadeInSpeed);
												});​
											});
											
											
											//$('.roundedCorners').corner('5px');
											
											//$('.roundedCorners').corner("round 8px").parent().css('padding', '4px').corner("round 10px");
											
												
											$('#top5_elements').show(fadeInSpeed,function(){
												
												$('#top5_elements').bxSlider({
													//prev_image: '/pics/slide_arrow_left.png',
													//next_image: '/pics/slide_arrow_right.png',
													prev_image: '/pics/slider_left_arrow.jpg',
													next_image: '/pics/slider_right_arrow.jpg',													
													wrapper_class: 'slides1_wrap',
													margin: 70,
													auto: true,
													auto_controls: false
												});
												
											});
											
											//$('.roundedCorners img').corner("round 8px");
												
										});										 
									});	
								});
							});											  
						});
					});
				});
			});
		});
		*/
});


