//profiles for external links
var profiles = { 
  gis: { height:768, width:1024, toolbar:0, scrollbars:1, status:1, resizable:1, center:1, location:0, menubar:0 },
  external: { height:600, width:800, toolbar:1, scrollbars:1, status:1, resizable:1, center:1, location:1, menubar:1 },
  dir: { height:600, width:400, toolbar:0, scrollbars:1, status:1, resizable:1, center:1, location:0, menubar:0 }

  };

$(document).ready(function(){
  //clear text box
  $(".text").toggleVal();

  //accordion
  $("#nav-sec").accordion({
    selectedClass: "open",
    header: ".ui-accordion-header",
    active: false,
    alwaysOpen: false,
    clearStyle: true,
    autoHeight: false,
    navigation: true

  })
  //project accordion
  $("#prj-lnk-list").accordion({
    selectedClass: "open",
    header: ".ui-accordion-header",
    active: ".open",
    alwaysOpen: false,
    clearStyle: true,
    autoHeight: false

  })
  //external links
  $(".ext").popupwindow(profiles);

  //toggle disclaimer
  $("div#disclaimer-text-option").hide();
  $("a#disclaimer-text-toggle").click(function () {
      $("span.view").toggle();
      $("div#disclaimer-text-option").toggle("slow");
      return false;

    });

   
  


  
  
  //Search Again Box
  $('form#srch-box-fixed').hide();
  $('p.srch-again a').click(function() {
      $('form#srch-box-fixed').show();
      $('p.srch-again').hide();
    return false;
  });
  
  //Lightbox
    $('a.lightbox').lightBox({fixedNavigation:true});

    //Cycle
      $('#spotlight-items').cycle({fx: 'fade', timeout: 3000});

});