jQuery.noConflict();

jQuery(document).ready(function(){    
  jQuery(".userlogin").click(function(event){
    jQuery("#login").slideToggle("slow");
  });
  jQuery(".searchbox .action").mouseover(function(event){
    jQuery(".searchbox .action").fadeTo("slow", 1);
    jQuery("#Search").fadeIn();
    jQuery("#SearchForm_SearchForm_Search").focus();
  });
  jQuery(".searchbox .action").click(function(event){
    if(jQuery("#SearchForm_SearchForm_Search").val()=="") {
      jQuery(".searchbox .action").fadeTo("fast", 1);
      jQuery("#Search").fadeIn();
      jQuery("#SearchForm_SearchForm_Search").focus();
      return false;
    }
  });
  jQuery("#SearchForm_SearchForm_Search").blur(function(event){  
    jQuery(".searchbox .action").fadeTo("slow", 0.5);
    jQuery("#Search").fadeOut();
  });
  jQuery("#emailinput").focus(function(event){
    if (jQuery("#emailinput").val()=="e-mail address")
      jQuery("#emailinput").val("");
  });
  jQuery("#emailinput").blur(function(event){
    if (jQuery("#emailinput").val()=="")
      jQuery("#emailinput").val("e-mail address");
  });
  jQuery("#passwordinput").focus(function(event){
    if (jQuery("#passwordinput").val()=="<^>")
      jQuery("#passwordinput").val("");
  });
  jQuery("#passwordinput").blur(function(event){
    if (jQuery("#passwordinput").val()=="")
      jQuery("#passwordinput").val("<^>");
  });  
  jQuery(".bbcodeshow").click(function(event){
    jQuery("#bbcodesyntax").fadeIn("slow");
  });
  jQuery("#bbcodehide").click(function(event){
    jQuery("#bbcodesyntax").fadeOut("slow");
  });
  jQuery("#Form_EditProfileForm_DeleteAvatar").click(function(event){
    if(jQuery("#Form_EditProfileForm_DeleteAvatar").attr("checked") == true) {
    jQuery("#Avatar").fadeOut("slow");
    } else {
    jQuery("#Avatar").fadeIn("slow");
    }
  });   
  
  jQuery(".content img[hspace]").each(function(e) {
    jQuery(this).css("padding-left",jQuery(this).attr("hspace")+"px"); 
    jQuery(this).css("padding-right",jQuery(this).attr("hspace")+"px"); 
  });
  jQuery(".content img[vspace]").each(function(e) {
    jQuery(this).css("padding-top",jQuery(this).attr("vspace")+"px"); 
    jQuery(this).css("padding-bottom",jQuery(this).attr("vspace")+"px"); 
  }); 
/* Auto submit poll answer --------------------------------
  jQuery("input[name='PollAnswer']").click(function(event){
    jQuery("#ShowPoll_MyPoll_action_SubmitPoll").click();
  }); 
-------------------------------------------------------- */
});
