$(document).ready(function(){

/*    
$('p#textblock_01_1, p#rhs_02, p#textblock_02_1, p#textblock_04_1, p#textblock_04_2, div#rhs_00, div#rhs_02, div#rhs_03, div#rhs_03 h3,  div#rhs_05_1, div#rhs_05_2, div#rhs_05_1 h3, div#rhs_05_2 h3').corner();
    $('.img_right, .img_left, .imgcorner').addClass('corner iradius10');
		*/

    $('p').minmax();
		$('blockquote').minmax();
		$('h3').minmax();

    var navhoverCSS = {
    'background-image' : 'url(gfx/navhover-bg.gif)',
    'background-repeat': 'no-repeat',
    'background-position': '7px 7px'
    }

    var navhoverCSSnone = {
    'background-image' : 'none'
    }

    var nav0text = 'Milestones - Pour Toi, Antoine';
    var nav1text = 'Unpacking the Kap Gap II - 5 key areas where socially embedded codes, roles and practices reinforce risk';
    var nav2text = 'T&T Photo Memorial Wall - Champions for Change';
    var nav3text = 'Human Rights & HIV - How AIDS became a Caribbean Crisis';
    var nav4text = 'MSM Caribbean Horizon - Gay Life in T&T';
    var nav5text = 'Where\'s The Cure?';


	$(function(){
		$.each([0,1,2,3,4,5], 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");
	});

});
