
/* - irpe_corporate_javascript.js - */
// http://www.irpe.it/portal_javascripts/irpe_corporate_javascript.js?original=1
window.onload=function(){footerTab();expandText();showLogin();subsection();
function formatText(index,panel){return index+""}
jq(function(){jq('.anythingSlider').anythingSlider({easing:"easeInOutExpo",autoPlay:true,delay:6000,startStopped:false,animationTime:600,hashTags:true,buildNavigation:true,pauseOnHover:true,startText:"Go",stopText:"Stop",navigationFormatter:formatText});jq("#slide-jump").click(function(){jq('.anythingSlider').anythingSlider(6)})});if(jq.browser.msie&&jq.browser.version>=6){var zIndexNumber=1000;jq('div').not('#thumbNav').each(function(){jq(this).css('zIndex',zIndexNumber);zIndexNumber-=10})}}
function showLogin(){jq('#quick-login').toggle(function(){jq(this).css({'backgroundColor':'#f6f7f8'});jq('#login').fadeIn('fast');jq('#__ac_name').focus();return false}, function(){jq(this).css({'backgroundColor':'#eee'});jq('#login').hide();return false})}
function showTop(){jq('#quick-login').click(function(){jq('#portal-above-top').slideToggle('slow');return false})}
function footerTab(){jq('#hq-list li').click(function(){jq('#hq-list li').removeClass('selected');jq(this).addClass('selected');var tabId=jq(this).attr('id');var tabName=tabId.slice(0,tabId.lastIndexOf('-'));jq('#footer-wrapper .hq-tab').addClass('hidden');jq('div[id^='+tabName+']').removeClass('hidden')})}
function expandText(){jq('.expand-link').click(function(){jq(this).parent().next('div').slideDown('fast').removeClass('hidden');jq(this).fadeOut('slow');return false})}
function subsection(){jq('#portal-globalnav li').hover(
function(){jq(this).children('a').attr('title','');jq(this).children('a').css('backgroundColor','#fff').end().children('ul').show()},
function(){jq(this).children('a').css('backgroundColor','transparent').end().children('ul').hide()})}

