//var buchenLink = jQuery('.angebotHomeBox').find('a').attr('href')
//jQuery('.angebotHomeBox').find('a').attr("onclick", "vHWin=window.open('"+buchenLink+"','FEopenLink','width=800,height=550');vHWin.focus();return false;")
jQuery('.angebotHomeBoxLightbox').find('a').attr("rel", "shadowbox;width=800;height=500")
  jQuery('#sb-container').live('click', function(){
    return false
  })
    jQuery('#sb-container').on('click', function(){
    return false
  })

jQuery(".searchCam").toggle(
    function(){
      if(jQuery(this).next().css("display") == 'none'){
        jQuery(this).next().slideDown();
        jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/close.png)");
      }else{
        jQuery(this).next().slideUp();
        jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/open.png)");        
      }
    },
  
    function(){
    jQuery(this).next().slideDown();
    jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/close.png)");
    }
  
);

jQuery(".searchCamEn").toggle(
  function(){
    if(jQuery(this).next().css("display") == 'none'){
      jQuery(this).next().slideDown();
      jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/close.png)");
    }else{
      jQuery(this).next().slideUp();
      jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/open.png)");        
    }
  },
  
  function(){
  jQuery(this).next().slideUp();
  jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/open.png)");
  }

);

jQuery(".searchHot").toggle(
  function(){
      if(jQuery(this).next().css("display") == 'none'){
        jQuery(this).next().slideDown();
        jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/close.png)");
      }else{
        jQuery(this).next().slideUp();
        jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/open.png)");        
      }
  },
  
  function(){
  jQuery(this).next().slideUp();
  jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/open.png)");
  }

);

jQuery(".searchHotEn").toggle(
  function(){
      if(jQuery(this).next().css("display") == 'none'){
        jQuery(this).next().slideDown();
        jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/close.png)");
      }else{
        jQuery(this).next().slideUp();
        jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/open.png)");        
      }
  },
  
  function(){
  jQuery(this).next().slideUp();
  jQuery(this).children('.switch').css("background-image", "url(fileadmin/img/open.png)");
  }

);

jQuery('.tx_webcamstart_googlemap_kartegross').slideUp(100);
jQuery('.tx_webcamstart_mapslink').toggle(
	function(){
		jQuery('.tx_webcamstart_googlemap_kartegross').slideDown();
		jQuery(this).css('background-position','bottom right');
		map.checkResize();
	},
	function(){
		jQuery('.tx_webcamstart_googlemap_kartegross').slideUp();
		jQuery(this).css('background-position','top right');
	}
)
