///////////////////////////////////////////////////////
// SHOW IMAGE

  function toggleBoxes()
  {
  
    var toggleMode = jQuery('#bild_ansehen').attr('class');
    //alert(toggleMode);
    if (toggleMode == 'hide')
    {
      jQuery('#bild_ansehen').addClass('show').removeClass('hide');
      jQuery('#bild_ansehen a').html('Bild ansehen');
      //jQuery('#content_left, #box_white').fadeIn(500, function() {});
      
      jQuery('#content').fadeIn(500, function() {});
      
    }
    else
    {
      //jQuery('#content_left, #box_white').fadeOut(500, function() {
      jQuery('#content').fadeOut(500, function() {
        jQuery('#bild_ansehen').addClass('hide').removeClass('show');
        jQuery('#bild_ansehen a').html('zurück');
      });
      
    }
    
  }
  
  
  
  
///////////////////////////////////////////////////////
// SLIDE
  function resizeLeftFrameOld() {
    var newWindowWidth = jQuery(window).width() - 1024;
    var pageframe_left_min = 55;
    var pageframe_left_max = 400;
  
    // max / min
    if (newWindowWidth < pageframe_left_min)
    {  
      newWindowWidth = pageframe_left_min;
    }  
            
    if (newWindowWidth > pageframe_left_max)
    {  
      newWindowWidth = pageframe_left_max;
    }
            
    jQuery("#pageframe").css("width", newWindowWidth + 969);
    jQuery("#pageframe_left").css("width", newWindowWidth );
    //jQuery("#footer").css("margin-left", newWindowWidth);

    // smooth slide            
    //jQuery("#pageframe_left").animate({width: newWindowWidth + 'px'}, 500, function() {  });
            
  }

///////////////////////////////////////////////////////
// SLIDE
  function resizeLeftFrame() {
	
    var newWindowWidth = jQuery(window).width() - 1024;
    var pageframe_left_min = 55;
    var pageframe_left_max = 400;
  
    // max / min
    if (newWindowWidth < pageframe_left_min)
    {  
      newWindowWidth = pageframe_left_min;
    }  
            
    if (newWindowWidth > pageframe_left_max)
    {  
      newWindowWidth = pageframe_left_max;
    }
            
    jQuery("#pageframe").css("width", newWindowWidth + 969);
    jQuery("#pageframe_left").css("width", newWindowWidth );

    // Einblenden des Pagefames
	jQuery("#pageframe").css("visibility", 'visible');
  }
  
  
  
  
  

jQuery(document).ready(function(){

  //initial slide
  resizeLeftFrame();

  //if the User resizes the window, adjust the #pageframe_left width
  jQuery(window).bind("resize", resizeLeftFrame);

});

