var nestorStart = new Array();
 $(document).ready(function(){
    justifyDocument();
     for (var i = 0; i < nestorStart.length; ++i) {
       eval("try { " + nestorStart[i] + " } catch(e) {} ");
     }
if ( $.browser.msie ) {
  if (parseInt($.browser.version, 10) <= 6 ) {
    $('#col3_content').prepend(' <a href="http://microsoft.de" target="_blank">hier</a>').prepend("Diese Seite kann nicht korrekt dargestellt werden, da eine veraltete Version des Internet Explorers verwendet wird. Download neue Version");        
  }
}



    $(".leftmenue_item_0").hover(
      function () {
        $(this).addClass('leftmenue_hover');
      },
      function () {
        $(this).removeClass('leftmenue_hover');
      }
    );
    $(".leftmenue_item_0").click(
      function () {
        var url = $('a', this).attr('href');
        location.href = url;
      }
    );

    $("#topmenue_ul li").hover(
      function () {
        $(this).addClass('topmenue_hover');
      },
      function () {
        $(this).removeClass('topmenue_hover');
      }
    );
    $("#topmenue_ul li").click(
      function () {
        var url = $('a', this).attr('href');
        location.href = url;
      }
    );
    
    $(".servicemenue_item_0").hover(
      function () {
        $(this).addClass('servicemenue_hover');
      },
      function () {
        $(this).removeClass('servicemenue_hover');
      }
    );
    $(".servicemenue_item_0").click(
      function () {
        var url = $('a', this).attr('href');
        location.href = url;
      }
    );
    
    $(".arrangement_line_description").slideToggle('fast');
    $(".arrangement_line_descriptiontitle").click(function(){
        $(this).next().slideToggle('slow');
    });    


 });


 $(window).resize(function(){
   justifyDocument();
 });


 function justifyDocument()
 {

    $('#nav').fadeTo(1, 0.5);
    $('#home_bg').fadeTo(1, 0.5);

 }
 
 
 function rgb2hex(rgb) {
 rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
 function hex(x) {
  hexDigits = new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");
  return isNaN(x) ? "00" : hexDigits[(x - x % 16) / 16] + hexDigits[x % 16];
 }
 return hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]);
}

function infoAnzeigen(obj) {
    $('.markierung_embed').hide();
    obj.toggle('fast');
} 
function infoVerbergen(obj) {
//    obj.toggle()
}
