function hp_tab1_over(){
	document.getElementById('hp_tab1').className='hp_tab1_over';
	document.getElementById('hp_tab2').className='hp_tab2_up';
	document.getElementById('hp_tab3').className='hp_tab3_up';
	document.getElementById('inner_hp_tab1').className='inner_hp_tab_over';
	document.getElementById('inner_hp_tab2').className='inner_hp_tab_up';
	document.getElementById('inner_hp_tab3').className='inner_hp_tab_up';
	document.getElementById('tab_arrow1').src='assets/images/tab_arrow_over.png';
	document.getElementById('tab_arrow2').src='assets/images/tab_arrow_up.png';
	document.getElementById('tab_arrow3').src='assets/images/tab_arrow_up.png';	
		document.getElementById('hp_tab1_content').className='show';
	document.getElementById('hp_tab2_content').className='hide';
	document.getElementById('hp_tab3_content').className='hide';
}
function hp_tab2_over(){
	document.getElementById('hp_tab1').className='hp_tab1_up';
	document.getElementById('hp_tab2').className='hp_tab2_over';
	document.getElementById('hp_tab3').className='hp_tab3_up';
	document.getElementById('inner_hp_tab1').className='inner_hp_tab_up';
	document.getElementById('inner_hp_tab2').className='inner_hp_tab_over';
	document.getElementById('inner_hp_tab3').className='inner_hp_tab_up';
	document.getElementById('tab_arrow1').src='assets/images/tab_arrow_up.png';
	document.getElementById('tab_arrow2').src='assets/images/tab_arrow_over.png';
	document.getElementById('tab_arrow3').src='assets/images/tab_arrow_up.png';
		document.getElementById('hp_tab1_content').className='hide';
	document.getElementById('hp_tab2_content').className='show';
	document.getElementById('hp_tab3_content').className='hide';
}
function hp_tab3_over(){
    document.getElementById('hp_tab1').className='hp_tab1_up';
    document.getElementById('hp_tab2').className='hp_tab2_up';
	document.getElementById('hp_tab3').className='hp_tab3_over';
	document.getElementById('inner_hp_tab1').className='inner_hp_tab_up';
	document.getElementById('inner_hp_tab2').className='inner_hp_tab_up';
	document.getElementById('inner_hp_tab3').className='inner_hp_tab_over';
	document.getElementById('tab_arrow1').src='assets/images/tab_arrow_up.png';
	document.getElementById('tab_arrow2').src='assets/images/tab_arrow_up.png';
	document.getElementById('tab_arrow3').src='assets/images/tab_arrow_over.png';
	document.getElementById('hp_tab1_content').className='hide';
	document.getElementById('hp_tab2_content').className='hide';
	document.getElementById('hp_tab3_content').className='show';
}

$(document).ready(function() {

$('.int_menu .self > a').css('color','#006aa9');
        
        $('.navbar li').hover(
        function () {
    $(this).has('.LEVEL_2').css('background-image','url(assets/images/nav-tab-right_full.jpg)');
  },
          function () {
    $(this).has('.LEVEL_2').css('background-image','none');
  }
);

if($(".int_menu .self a").height()>35) { // TEXT TO LONG THAT DOUBLES A LINE
 $(".int_menu .self").css('background-image','url(assets/images/left-active-bg-wide-tall_v2.png)');
}

$(".navbar .LEVEL_2 > a").css('font-weight', 'bold').css('font-size', '13px');

$('#aff_templates li:nth-child(1)').css('width', '100px');
$('#aff_templates li:nth-child(2)').css('width', '140px');
$('#aff_templates li:nth-child(4)').css('width', '190px');

//FIX LINE HEIGHT OF INTERIOR NAV ON 2 LINES
$('.int_menu a').each(function(index) {
    if($(this).height()>35) { // TEXT TO LONG THAT DOUBLES A LINE
 $(this).css('line-height','18px');
 $(this).css('padding-top','6px');
 $(this).css('padding-bottom','6px');
}
  });
  
  $('html body.hp_body div.int_header center table.int_page_wrapper tbody tr td table.inner_page_wrapper tbody tr td.int_page_wrapper_td table.two_col_wrapper tbody tr td.right_col_bg table tbody tr td div.int_menu ul.outer li#sub180.first a').css('padding-top','5px');

});
