// HOLZNER IMMOBILIEN JavaScript Document in combination with jQuery



$(document).ready(function() {
  $('#droplist1 h5').hover(function() {
    $(this).addClass('droplist');
  }, function() {
    $(this).removeClass('droplist');
  });
});



$(document).ready(function() {
  var toggleStyleSwitcher = function() {
    $('#switcher .button').toggleClass('hidden');
  };

  $('#switcher').click(toggleStyleSwitcher);

  $('#switcher-normal').click(function() {
    $('#switcher').click(toggleStyleSwitcher);
  });
  $('#switcher-narrow, #switcher-large').click(function() {
    $('#switcher').unbind('click', toggleStyleSwitcher);
  });
});



$(document).ready(function() {
 
//$('body').css('display','none');
 //$('body').animate({background: 'hide'}, 'fast'); 
//$('body background-image').css('display','none');	
//$('body').css('background', 'none');
//$('body').css('background-color', '#2b2b2b','background-image', 'url("images/bgBody.gif")');
// $('body').css('background-image', 'url("images/bgBody.gif")');
//$('body').css('background','none');
  $('#innerWrap').hide();
  var mainAnimation = function() {
	//  $('body background').animate({width: 'show'}, 'slow'); 
	 // $('body').animate({background-image: 'show'}, 'slow'); 
	 // $('body').animate({width: 'show'}, 'slow'); 
	  	 //  $('body').css('background-image', 'url("images/bgBody.gif")');
		 /*  $('body')
		   //.animate({width: 'show', background: 'show'}, 'slow')
		   .animate({width: 'show'}, 'slow')
		   $('#innerWrap').animate({width: 'show'}, 'slow');*/
		     
	//  var $mainWrapperHeight = $('#innerWrap').css('height'); //var not used jet	  
	  //alert($mainWrapperHeight);
	 $('#innerWrap').fadeIn('slow');  
	 // $('#outerWrap').show(1000); 
	 //  $('#outerWrap').animate({height: 'show'}, 'slow'); 
		
  };	
 mainAnimation();
 

	$('#important').show();
	$('#glossary').hide();
	
	// border-bottom: #cfcdc8 solid 1px;color: #5e5c58;
	 $('#important').hover(
      function () {
		 $('#important').css('cursor', 'pointer');
		 //$(this).css('cursor', 'pointer');
		$('#important').css('border-bottom', '1px solid #cfcdc8');
		$('#important').css('color', ' #5e5c58');
		$('#mehr').text(' >> anzeigen ');
		//$("a.anchorLink").anchorAnimate();
      }, 
      function () {
		$('#important').css('cursor', 'default');
		 //$(this).css('cursor', 'default');	
		$('#important').css('border-bottom', '1px solid #fff');
		$('#important').css('color', ' #000000');
		//$('#mehr').text('  << ausblenden');
		$('#mehr').text('');
      }
    ); 
	
	$('#important').toggle(
      function () {
        //$('#glossary').slideDown('fast');  // scrollTop won't work next
		$('#glossary').show();
		//$('html,body').scrollTop(300);
		//$('html,body').animate({scrollTop:600},1000);
		$('html,body').animate({scrollTop:800},1000);
      },
      function () {
        $('#glossary').slideUp('fast');	
      }
    );
	

});
