var axel = Math.random(); var ord = axel * 1000000000000000000; /* Load jQuery*/ var headTag = document.getElementsByTagName("head")[0]; script = document.createElement("script"); script.id = "hiddenScript"; script.type = "text/javascript"; script.onload = injectGoogleAnalytics; var prot = ("https:" == document.location.protocol)?'s':''; script.src = "http"+prot+"://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"; if (typeof headTag === "undefined") document.body.appendChild(script); else headTag.appendChild(script); var gr = { portals: { showlist:function() { var pos = $("#selector_base").position(); pos.top += 41; pos.left -= 317; $("#portal_list").css({top:pos.top+"px", left:pos.left+"px"}).show("normal", function(){ gr.portals.overlist = true; gr.portals.listopen = true; }); $("#portal_arrow").attr("src", gr.img_path+"p_arrow_up.gif"); gr.core.showOverlay(gr.portals.hidenow); return false; }, hidenow : function() { $("#portal_list").hide("normal"); this.overlist = false; this.listopen = false; $("#portal_arrow").attr("src", gr.img_path+"p_arrow_down.gif"); if (this.searchtimer) { clearTimeout(this.searchtimer); } } }, core: { overlay : false, overlay_close_callback : false, showOverlay : function(overlay_callback) { // Create the DIV, if it doesn t exist if (this.overlay == false) { this.overlay = $('
'); $(document.body).append(this.overlay); } this.overlay_callback = overlay_callback; // display and size it this.overlay.css({"display":"block"}); this.overlay.height($(document).height()).width($(document).width()); }, hideOverlay : function(do_callback) { if (this.overlay != false) { this.overlay.hide(); } if (do_callback && this.overlay_callback != false) { this.overlay_callback(); this.overlay_callback = false; } } } }; document.write(""); function injectGoogleAnalytics() { var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); $.getScript(gaJsHost + 'google-analytics.com/ga.js', function() { try { var pageTracker = _gat._getTracker("UA-280209-27"); pageTracker._initData(); pageTracker._trackPageview(); } catch(err) {}; }); }