﻿// This function enables ALL of the biz listing hidden
// divs to toggle into and out of site.  The bit for
// msie (IE) check is to do with a glitch in IE7 that
// renders cleartype in normal (un-clear) type in the\
// div that is being toggled - UGLY!!
//
// By removing the FILTER attribute, at the end of the
// toggle, the text is back to cleartype.

$(document).ready(function(){
    
    $('div.descriptionContainer').hide();
    
    // Keep link looking like it goes back to this page.
    // Will do anyway due to the 'return false' bit.
    // Non-Javascript browser will go to seperate link for
    // bizListing.
    $('a.extraLink').attr('href','#');
     
    $('a.extraLink').click(function(){
         
        var id=$(this).attr('id');
     
        $('#extraInfo_' + id).toggle(300,function() {
        
             if(jQuery.browser.msie)
              
                $(this).get(0).style.removeAttribute('filter');
             
        });
        
        // Ensure link is not followed...
        return false;
        
        });
        
    });
