function jitLoader() { (function($) { $(document).ready(function() { /* Backwards compatibility */ $('.freedomJIT').each(function(i, v) { var a = $(v).html().split('!-- '); if(a.length > 1) { a = a[1].split(' -->'); a = a[0].split('|'); if(a.length > 1) $(v).removeClass('freedomJIT').addClass('mceItemFJIT ' + a[1]).attr('id', a[1]); } }); var hash = '3c3d17fd947b71a3ec6fd8a38b2ddfa9'; if(hash) { $.get('?src=ajax&cmd=get_udd&hash=' + hash, function(data) { $('#' + hash + ', .' + hash).replaceWith('
'+ decodeURIComponent(data) + '
'); }); } }); })(jQuery); } // If jQuery isn't loaded, we need it for this. if(typeof(jQuery) == 'undefined') { var jQueryScript = document.createElement('script'); jQueryScript.language = 'javascript'; jQueryScript.type = 'text/javascript'; jQueryScript.defer = true; jQueryScript.src = '/freedom_html/common/jquery/jquery.min.js'; // Try two different ways of onload if (jQueryScript.readyState!="loaded") { jQueryScript.onreadystatechange = function() { if (this.readyState == "loaded") { jitLoader(); jQueryScript.onreadystatechange = null; } } } else jitLoader(); jQueryScript.onload = jitLoader; document.getElementsByTagName('head')[0].appendChild(jQueryScript); } else { jitLoader(); }