var rotations = new Array();
var zustand = new Array();


function tx_fstlokalrep_pi1_post_newOrt(postId) {
  url = 'index.php?type=4242&tx_fstlokalrep_pi1[post]=161&tx_fstlokalrep_pi1[action]=newOrt&tx_fstlokalrep_pi1[controller]=Post';
}

function tx_fstlokalrep_pi1_post_addOrt(post) {
  
}

function tx_fstlokalrep_pi1_post_removeOrt(post) {
  
}

function setSessionForSlideBox(boxId,status) {
  var data1 = {"tx_fstjqueryslideBox_pi2[boxId]": boxId,
         "tx_fstjqueryslideBox_pi2[status]": status
  };
  
  var action = baseUrl+'index.php?type=10001&no_cache=1';
  
  jQuery.post(action,  data1,
    function(data){
      

    }, 
    "json");
  
  
}

function fst_lokalrep_slideDown(div) {
  jQuery("#"+div).addClass('ajaxLoad').animate({
      
    height: jQuery("#"+div+" .contentWrap").height()
    }, {
      duration: 800, 
      specialEasing: {
        
        height: 'easeOutCubic'
      }, 
      complete: function() {
        
      }
    });
  //alert('down');
}

function fst_lokalrep_toggleRightContainer(div) {
  jQuery(div).animate({
      
      height: 'toggle'
    }, {
      duration: 800, 
      specialEasing: {
        
        height: 'easeOutCubic'
      }, 
      complete: function() {
        
      }
    });

  
}

function fst_lokalrep_slideUp(div) {
  
  jQuery("#"+div).addClass("ajaxLoad").animate({     
    height: "0px"
    }, {
      duration: 800, 
      specialEasing: {
        
        height: "easeOutCubic"
      }, 
      complete: function() {
        
      }
    });
}

function fst_lokalrep_ajax_loadContainerRight(url,div,div1){
  jQuery(div1).css('display','block');
  jQuery("#"+div).addClass('ajaxLoad').animate({
      
      height: '100px'
    }, {
      duration: 800, 
      specialEasing: {
        
        height: 'easeOutCubic'
      }, 
      complete: function() {
        
      }
    });
  
  jQuery("#"+div).load(url, function(response, status, xhr) {
      if (status == "error") {
        //var msg = "Sorry but there was an error: ";
        //jQuery("#error").html(msg + xhr.status + " " + xhr.statusText);
      } else {
        
       

        //
        jQuery("#"+div).removeClass('ajaxLoad').css('display','block').animate({
            
            height: jQuery("#"+div+" .contentWrap").height()
          }, {
            duration: 800, 
            specialEasing: {
              
              height: 'easeOutCubic'
            }, 
            complete: function() {
             
            }
          });

        //
      }
    });

}



function fst_lokalrep_ajax_get(url,div) {
  //jQuery('#'+div).wrap('<div class="ajaxOuter" style="height: '+jQuery('#'+div).height()+'px;" />');
  //jQuery('#'+div).fadeTo("slow", 0.01);
  jQuery('#'+div+'Out').addClass('ajaxLoad');
  jQuery('#'+div).load(url);
  jQuery('#'+div+'Out').removeClass('ajaxLoad');
}


function fst_lokalrep_ajax_getCitySelect(regionId) {
  jQuery("#area").html('');
  jQuery("#city").html('');
  jQuery("#city").load("index.php?index.php?id=77&tx_fstlokalrep_pi1[action]=ajaxOrteByRegion&tx_fstlokalrep_pi1[region]="+regionId+"&tx_fstlokalrep_pi1[controller]=Ort&type=4242");
  
}

function fst_lokalrep_ajax_getArea1Select(cityId) {
  jQuery("#area").load("index.php?index.php?id=77&tx_fstlokalrep_pi1[action]=ajaxArea1ByOrt&tx_fstlokalrep_pi1[ort]="+cityId+"&tx_fstlokalrep_pi1[controller]=Ort&type=4242");
  
}

function layerSlideIn(div, contentDiv) {
  jQuery(".slideContentItem").css('display','none'); 
  jQuery(contentDiv).css('display','block'); 
  jQuery(div).css('display','block'); 
  /*
      jQuery(div).slideDown('slow', function() {
        
      });
    */
}

function layerSlideOut(div, contentDiv) {
  jQuery(div).css('display','none'); 
  /*
  jQuery(div).slideUp('slow', function() {
        
    });
    */
  jQuery(".slideContentItem").css('display','none'); 
}





