(function() { // Localize jQuery variable var jQuery; /******** Load jQuery if not present *********/ if (window.jQuery === undefined ) { var script_tag = document.createElement('script'); script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src", "//code.jquery.com/jquery-1.11.1.min.js"); if (script_tag.readyState) { script_tag.onreadystatechange = function () { // For old versions of IE if (this.readyState == 'complete' || this.readyState == 'loaded') { scriptLoadHandler(); } }; } else { // Other browsers script_tag.onload = scriptLoadHandler; } // Try to find the head, otherwise default to the documentElement (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag); } else { // The jQuery version on the window is the one we want to use jQuery = window.jQuery; main(); } /******** Called once jQuery has loaded ******/ function scriptLoadHandler() { // Restore $ and window.jQuery to their previous values and store the // new jQuery in our local jQuery variable jQuery = window.jQuery.noConflict(true); // Call our main function main(); } /******** Our main function ********/ function main() { jQuery(document).ready(function($) { // We can use jQuery 1.4.2 here $('head').append(''); $("#co-funded-top-widget-container").addClass("cfd_tab").addClass("cfd_tab_right");$("#co-funded-top-widget-container").html("
\"Close\"/
Top 5 Suggestions for depressionsurvivalkit.org
New Suggestion All Suggestions
"); $("#co-funded-top-widget-container").css("top", "140px");$("#co-funded-top-widget-container .cfd_widget_container").css("top", "140px");$("#co-funded-top-widget-container .cfd_tab_logo").css("top", "140px"); $('.cfd_tab_logo').on('click', function() { $('#co-funded-top-widget-container .cfd_widget_container').show().animate({ right: "0px" }); }); $('.cfd_closetab').on('click', function() { $('#co-funded-top-widget-container .cfd_widget_container').show().animate({ right: "-300px" }, 400, "swing", function() { $('#co-funded-top-widget-container .cfd_widget_container').hide() }); }); }); } })(); // We call our anonymous function immediately