jQuery.noConflict();
(function($) {
    var qmed = {},
		window = this;

    qmed.faq = function() {

        $('#faq .answer').hide();
        $('#showAllFAQ').css('display', 'inline-block');

        $('#faq h2').click(function() {
            $(this).siblings('.answer').toggle();
        });

        $('#showAllFAQ').click(function() {

            $('#faq .answer').toggle();

        });
    }

    qmed.misc = function() {

        if ((jQuery.browser.msie && parseInt(jQuery.browser.version, 10) == 7)) {
            $('#tools input[type=submit]').val('');
        }

        $('#facts th:last').css(
			'paddingBottom', 13
		);

        $('#beforeAfterListing li').each(function() {
            var link = $('a', this).attr('href');

            $(this).wrap('<a href="' + link + '"></a>');
        });

        if ($('#SiteMap').length) {
            $('#content').css('width', 'auto');
        }

    };

    qmed.misc();
    qmed.faq();
} (jQuery));
