/*
(c) 1995-2011  Healthwise, Incorporated. Healthwise, Healthwise for every health decision,
and the Healthwise logo are trademarks of Healthwise, Incorporated.
Healthwise Resource Package Version: 9.1.200.6 (xhtml.kb)
*/
if (!org.healthwise.sx) org.healthwise.sx = {};

org.healthwise.sx.open = function() {
    org.healthwise.ui.openWindow(window.location.href, true);
};


(function($hw, $) {

    org.healthwise.ready(SxCheckWidth);

    function SxCheckWidth() {
        var popout = window.location.href.toLowerCase().indexOf("popout=1") > -1;
        if (!popout && $('#HwContentWrapper .HwContent').width() <= 600) {
            $('.HwFlashObject').remove();
            $('.HwContent').append("<ul><li><a href='#' onclick='return org.healthwise.sx.open();'>" + org.healthwise.translate(org.healthwise.config.locale, 'XHTML_OpenSymptomCheckerTool') + "</a></li></ul>");
            org.healthwise.sx.open();
        }
        else if ($.hwBrowser.isFF4 || $.hwBrowser.isFF5 || $.hwBrowser.isIE8 ) {
                $("div.HwFlashObject a[href='https://get.adobe.com/flashplayer/?promoid=BUIGP']").remove();
        }
        
    }

})(org.healthwise, jQuery);
