$(document).ready(function(){
  
 
  // remove dotted border from all links
  $("a").each(function(){this.onmouseup = this.blur();});

  // Rounded DIV.rounded
  Rounded('rounded', 12, 12);
  Rounded('roundedo', 12, 12, 0, 0);
  Rounded('roundedu', 0, 0, 12, 12);
  Rounded('rounded5', 5, 5);
  Rounded('rounded5o', 5, 5, 0, 0);
  Rounded('rounded5u', 0, 0, 5, 5);

  // Fold all Trees
  $(function() {
    $('li > ul').each(function(i) {
      var parent_li = $(this).parent('li');
      parent_li.addClass('folder');
      var sub_ul = $(this).remove();
      parent_li.click(function(e) {
        sub_ul.toggle('slow');
        e.stopPropagation();
      });
      parent_li.wrapInner('<a/>').find('a').click(function(e) {
        e.stopPropagation();
      });      
      parent_li.append(sub_ul);
    });
    $('ul ul').hide();
  });
  // open first level
  $('div.csc-sitemap > ul > li.folder > ul')
    .each(function(){$(this).toggle('slow')}); 


/*   
  $("#topnav a").click(function(){
    url = $(this).attr("href");
    elm = $("col1_content");    
    $.get(url.replace(/\.0\.html/, ".11.html"),function(text){
      $("loadinfo").fadeIn('normal',function(){
        elm.html(text).fadeIn('normal');
      });
    });
  });
*/  
});


