
function textSizer(fontSize) {
        
    fontSized = fontSize+"px";

    $("a, p, ul li").css("font-size", fontSized);
    
    $("#text-sizer a.small").css("font-size","11px");
    $("#text-sizer a.med").css("font-size","13px");
    $("#text-sizer a.large").css("font-size","15px");
	
	// stop menu text decreasing to 11px;
	$("#text-sizer a.small").click(function() {
		$("#top-nav a").css("font-size","12px");
	})	
    
} 
    
$(document).ready( function(){
    // function to highlight the selected item on the static nav
    $("#top-nav > li > a").each( function(){
        if($(this).attr('href') == '/' + page_name){
            $(this).parent().attr('class', 'selected');
        }    
    });
    
    $(".contact-choose").click( function(){
        $(".contact-list").css('display', 'none');
        $("#contact_"+$(this).attr('contact')).css('display', 'block');
    });
    
    $("#send-to-a-friend").dialog({
		width   : 300,
		modal   : true,
		autoOpen: false,
		title   : 'Send To A Friend'
	});
	
	$("#send-button").click( function(){
	    $("#send-to-a-friend").dialog('open');
	});


});

