// file        : logreg.js
// version     : 1.00
// date        : 2011-11-09
// author      : uwe ruscheweyh
// description : login/register div with vertical sliding

// using jQuery.noConflict(); and jQuery instead of the shortcut $ to prevend namespace conflicts with other libraries
jQuery.noConflict();
jQuery(document).ready( function() {
  jQuery("#login").click( function() {
    if (jQuery("#pwlost").is(":hidden")) {
      jQuery("#logregBox").slideToggle();
    }
    else {
      jQuery("#pwlost").slideToggle();
      jQuery("#login").toggleClass("logreg_open");
    }
    if (jQuery("#logregBox").is(":visible")) jQuery("#login").toggleClass("logreg_open");
  });
  jQuery("#passlost").click( function() {
    if (jQuery("#logregBox").is(":visible")) {
      jQuery("#logregBox").slideUp();
      jQuery("#pwlost").slideDown();
    }  
  }); 
});
