jQuery.fn.extend({fcToggle:function(){function $saveState$$($fcname$$){if(typeof $fcname$$=="string"){cookie=cookie.indexOf("|"+$fcname$$.replace(/^fc/,""))==-1?cookie+"|"+$fcname$$.replace(/^fc/,""):cookie.replace(new RegExp("\\|"+$fcname$$.replace(/^fc/,""),"g"),"");typeof jQuery.cookie!="undefined"&&jQuery.cookie("fcstates",cookie,{expires:10})}}function $toggle$$($fc$$,$preload$$){$fc$$=jQuery($fc$$);$fc$$.is(".expanded")||$fc$$.parent().is(".expanded")?$fc$$.next().stop().css({opacity:"",height:""}).animate({opacity:"hide",
height:"hide"},$preload$$?0:"slow",function(){$fc$$.removeClass("expanded").addClass("colapsed");!$preload$$&&$fc$$.attr("name")&&$saveState$$($fc$$.attr("name"))}):$fc$$.next().stop().css({opacity:"",height:""}).animate({opacity:"show",height:"show"},$preload$$?0:"fast",function(){$fc$$.removeClass("colapsed").addClass("expanded");!$preload$$&&$fc$$.attr("name")&&$saveState$$($fc$$.attr("name"))});$fc$$.parent().is(".expanded")&&$fc$$.parent().removeClass("expanded")}cookie=typeof jQuery.cookie!=
"undefined"?jQuery.cookie("fcstates"):"";if(cookie==null)cookie="";return this.click(function(){$toggle$$(this)})}});
