// code for navigation

$(document).ready(function() {

		//$(".sub").hide(); // hide the sub menus;


             $('#navigation li').has('ul').children('a.first-a').addClass('noLink');

             $('#navigation li.people, #navigation li.about,#navigation li.News').children('a.first-a').removeClass('noLink');


             $('#navigation li a.noLink').click(function(event) {                
                    event.preventDefault();
              });
			  
			  
		$("#navigation a.first-a").focus(function(){
		
			$(this).parent("li").siblings("li").find("ul.sub").hide(); // hide all submenus

		});
		
		$("#navigation a.noLink").focus(function(){
		
		    $(this).siblings(".sub").show(); // show this sub menu
		});


        $(".sub").siblings('a.noLink').parent().hoverIntent(function(){
                  
			$(this).children(".sub").fadeIn('medium'); // show the sub menu


		},function(){
			$(this).children(".sub").hide(); // hide the sub menu
		});


                $('.select-categories').change(function() {
                                if ($('.select-categories').val() == 'noval'){
                                        //do nothing

                                } else {

                                    // var url = '/news-events/latest.html?tx_ttnews[cat]=' + $('.select-categories').val();

                                      $("#categoryRedirect").find("input").val($('.select-categories').val());
                                      $("#categoryRedirect").submit();
                                      return false;

                                }
                });


                $(".tx-indexedsearch-res .tx-indexedsearch-title:contains('Single')").parent().parent().parent().parent('.tx-indexedsearch-res').hide();
				
				
				
	// code for subsciption forms
	$('input[name=subscriber_type]:radio').click(function(){		
		window.location = $(this).attr('rel');
	
	});
	
	
	
	

		 

});







