// body onload $(function(){ $('.popup-info').hide(); setTimeout(fitToScreen,10); $(window).resize(fitToScreen); // menu dropdown functionality $('#menu li').mouseenter(showMenu).mouseleave(hideMenu); // login tab dropdown $("#login-button").click(function () { $("#login").slideToggle(function(){ var text = $('#login:hidden').length ? 'Login' : 'Close'; $('#login-button').text(text); $("#login :text:visible:first").focus(); }); }); // Login submit $("#login-submit").click(function(){ var site = $('#login-site').val(); if (!site){ $('#login-site').stop().animate({backgroundColor: "#FFFF00"}, 200).animate({ backgroundColor: "#FFFFFF"}, 800); return false; } // set parameters based on login site selected if (site=='eservice'){ $('#login').attr('action','https://eservice.xactware.com/apps/esc/Login'); $('#login-username').attr('name','userid'); } else if (site=='xactanalysis'){ $('#login').attr('action','https://apps.xactware.com/apps/xnportal/user_router.jsp'); $('#login-username').attr('name','user_id'); } setCookie('login',site,'','/',new Date(Date.parse(Date())+(10*52*7*24*60*60*1000))); // set it out 10 years // send Omniture data s.events="event3"; s.prop1= $('#login-site').val(); s.t(); }); // sites dropdown $("#sites-toggle").click(function () { $("#sites-other").toggle(function(){ $('#sites-other:hidden').length ? $('#sites').removeClass('selected') : $('#sites').addClass('selected'); }); }); // colorbox popup (modal popup with overlay) if($('.popup').length){ $.getScript('/scripts/jquery.colorbox.js', function(){ $('.popup').each(function(){ if(this.hash){ // we removed the need for the extra div around the popup content that would normally hide it, so we need to show/hide it manually $(this).bind('cbox_open',function(){$(this.hash).show()}).bind('cbox_cleanup',function(){$(this.hash).hide()}).colorbox({inline:true,href:this.hash,width:900}); } else { $(this).colorbox(); } // send Omniture tracking when we open a popup $(this).bind('cbox_open',function(){ s.pageName = this.title ? this.title : this.href; s.t(); }); }); }); } // Send Omniture data on search $('#search').submit(function(){ s.events="event5"; s.prop5=$('#search input[name=q]').val(); s.t(); }); }); function header(){ document.write( '
'+
' '+
'