$(document).ready(function(){

    var navhoverCSS = {
    'background-image' : 'url(gfx/navhover-bg.gif)',
    'background-repeat': 'no-repeat',
    'background-position': '7px 7px'
    }

    var navhoverCSSnone = {
    'background-image' : 'none'
    }

    var nav1text = 'YES, I AM';
    var nav2text = 'HIV and the Immune System';
    var nav3text = 'Antiretrovial Therapies for HIV';
    var nav4text = 'Names of Medicines';
    var nav5text = 'Steps for Taking Control over your ART';
    var nav6text = 'Treatment Planning';
    var nav7text = 'Healthy Living Plan';
    var nav8text = 'Wonder of Foods';
    var nav9text = 'Secrets of Micronutrients';
    var nav10text = 'Diets Against Infections';
    var nav11text = 'Where\'s the Cure?';

	// no tooltip needed for inside pages
/*	$("span.art-block").simpletip({ // Configuration properties  
		content: 'Anti Retroviral Therapies', 
		showEffect: 'none',
		hideEffect: 'none',
		fixed: false  });*/
	//$("#navtitle").corners("4px");
	
	$(function(){
		$.each(new Array(12), function(i){
			//navtext = eval('nav'+i+'text');
			$('#nav'+i+' a').hover((function(i){
					return function() {
						navtext = eval('nav'+i+'text');
						$('#navtitle'+i).show();
						$('#navtitle').hide();
						$('#navtitle'+i).text(navtext);
						$(this).css(navhoverCSS);
					}
				})(i),
				(function(i){
					return function() {
						$('#navtitle'+i).hide();
						$('#navtitle').show();
						$(this).css(navhoverCSSnone);
					}
				})(i)
			);
		});
	});
		
		
	
	$('#turnon_textnav a').click(function(){
			$('#textnavigation').slideToggle("slow");
	});

});