4 var content
= $("#ajax-content").hide();
5 $("#toggle-ajax").bind("click", function(e
) {
6 if ( $(this).is(".hidden") ) {
7 $("#ajax-content").empty();
10 $("#ajax-content").load("/fluid960gs/data/ajax-response.html", function() {
18 if ($(this).hasClass('hidden')){
19 $(this).removeClass('hidden').addClass('visible');
22 $(this).removeClass('visible').addClass('hidden');
28 var default_hide
= {"grid": true, "filter": true };
30 ["neighbour-actions", "admin-left-menu", "admin-actions", "help", "filter", "related-records", "grid", "paragraphs", "blockquote", "list-items", "section-menu", "tables", "forms", "login-forms", "search", "articles", "accordion"],
32 var el
= $("#" + (this == 'accordon' ? 'accordion-block' : this) );
33 if (default_hide
[this]) {
35 $("[id='toggle-"+this+"']").addClass("hidden")
37 $("[id='toggle-"+this+"']")
38 .bind("click", function(e
) {
39 if ($(this).hasClass('hidden')){
40 $(this).removeClass('hidden').addClass('visible');
43 $(this).removeClass('visible').addClass('hidden');
52 var animating
= false;
54 .bind("mouseenter", function(e
) {
55 if (animating
) return false;
57 $("#kwick .kwick").not(this).animate({ "width": 125 }, 200);
58 $(this).animate({ "width": 485 }, 200, function() {
62 $("#kwick").bind("mouseleave", function(e
) {
63 $(".kwick", this).animate({ "width": 215 }, 200);
66 SectionMenu : function(){
69 "header": "a.menuitem"
71 .bind("accordionchangestart", function(e
, data
) {
72 data
.newHeader
.next().andSelf().addClass("current");
73 data
.oldHeader
.next().andSelf().removeClass("current");
75 .find("a.menuitem:first").addClass("current")
76 .next().addClass("current");
78 Accordion: function(){
79 $("#accordion").accordion({
80 'header': "h3.atStart"
81 }).bind("accordionchangestart", function(e
, data
) {
83 "font-weight": "bold",
88 "font-weight": "normal",
91 }).find("h3.atStart:first").css({
92 "font-weight": "bold",
98 if($("#accordion").length
){fluid
.Accordion();}
99 if($("[id$='ajax']").length
){fluid
.Ajax();}
100 if($("[id^='toggle']").length
){fluid
.Toggle();}
101 if($("#kwick .kwick").length
){fluid
.Kwicks();}
102 if($("#section-menu").length
){fluid
.SectionMenu();}