[jQuery] Problem with togle()

[jQuery] Problem with togle()

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have a problem with $("." + this.rel).toggle()
function<BR>If i use simple "toggle()" work fine, but i want to personalize the
effect, so i use</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>       function() {
$("." + this.rel).hide('slow'); }, <BR>      
function() { $("." + this.rel).show('fast'); }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>And dosnt work, any help?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><STRONG> $(".toggle_cat
a").each(function(i){<BR>  $(this).attr("title", "Click here to
exclude this
cat");  <BR>  $(this).click(function(event){<BR>   $(this).toggleClass("selected");<BR>   $("."
+ this.rel).toggle(<BR>       function() { $("." +
this.rel).hide('slow'); }, <BR>       function() {
$("." + this.rel).show('fast');
}<BR>   );<BR>  });<BR> });<BR></STRONG> <BR> <BR> <BR>Here
a part of the html</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2><STRONG>           
<div
id="categories_select"><BR>               
<ul class="clearfix
toggle_cat"><BR>               
<li><a href="javascript:;"
rel="cat_39">Nacionales</a></li><BR>               
<li><a href="javascript:;"
rel="cat_40">Internacionales</a></li><BR>               
</ul><BR>           
</div><BR>           
<BR>            <div
id="news"><BR>               
<div class="cat_39"
id="news_11967"><BR>                   
<a class="main_news" href="link1">TITLE
1</a><BR>                   
<div>xxxxx1</div><BR>               
</div><BR>               
<div class="cat_39"
id="news_11966"><BR>                   
<a class="main_news" href="link2.htm">TITLE
2</a><BR>                   
<div>xxxxx2</div><BR>               
</div><BR>               
<div class="cat_40"
id="news_11965"><BR>                   
<a class="main_news" href="link3.htm">TITLE
3</a><BR>                   
<div>xxxxxx3</div><BR>               
</div><BR>           
</div></STRONG></FONT></DIV>
<DIV><STRONG><FONT face=Arial size=2></FONT></STRONG> </DIV>
<DIV><FONT face=Arial size=2>thx sebastián</FONT></DIV><!-- SPAMfighter Signature -->
<hr>Estoy utilizando la versión gratuita de SPAMfighter para usuarios privados.<br />Ha eliminado 23 correos spam hasta la fecha.<br />Los abonados no tienen este mensaje en sus correos.<br />¡Pruebe <a href="http://www.spamfighter.com/les">SPAMfighter</a> gratis ya!<br /></BODY></HTML>