(function($){
  controls = function() {			
			
			/*if($('#accordian').length)
			{    
			    $('.firstItem').show();

				$('#accordian h2').click(function(){							
				    $('.newsTxt').each(function(){										   
						 $(this).hide();														
				    });
				    $('#accordian h2').each(function(){
				        if($(this).hasClass('open'))
				        {
				            $(this).attr('class', 'closed');
				        }				        
				    });
				    $(this).attr('class', 'open');
						$(this).next('div').show();		    
				});
			}//endif*/
			
			if($('#people').length)
			{	
			  $('#people li').click(function(){
					 $('#people li span').hide();		
			     $('#people li').each(function(){
			         $(this).removeClass('selected');   
			     });					
			     $(this).addClass('selected');
					 stuName = $('#people li.selected a').attr('name');
					 stuTxt = $('#people li.selected a').attr('title');
					 stuLoc = $('#people li.selected a').attr('rel');
					 $(this).append('<span><strong>' + stuName + '</strong>' + stuTxt + '<strong class="loc">' + stuLoc + '</strong></span>');
			     return false;
			  });
			  
			  var currSelected = 0;
				var stuName = $('#people li.selected a').attr('name');
				var stuTxt = $('#people li.selected a').attr('title');
				var stuLoc = $('#people li.selected a').attr('rel');
				
			  var max = $('#people li').length;
			  
			  $('#left_scroll').click(function(){
					 $('#people li span').remove();
			     $('#people li').each(function(index){  
			         if($(this).is('.selected'))
			         {			             
			             currSelected = index - 1;
			             $(this).removeClass('selected');									
			             return false;			             
			         }	         		            
			     });
					 
			     if(currSelected <= -1)
                 {
                   currSelected = max - 1;
                   $('#people li').eq(currSelected).addClass('selected');
									 stuName = $('#people li.selected a').attr('name');
					 	 			 stuTxt = $('#people li.selected a').attr('title');
					 	 			 stuLoc = $('#people li.selected a').attr('rel');
									 $('#people li').eq(currSelected).append('<span><strong>' + stuName + '</strong>' + stuTxt + '<strong class="loc">' + stuLoc + '</strong></span>');
                 }else{
			       $('#people li').eq(currSelected).addClass('selected');
						 stuName = $('#people li.selected a').attr('name');
					 	 stuTxt = $('#people li.selected a').attr('title');
					 	 stuLoc = $('#people li.selected a').attr('rel');
						 $('#people li').eq(currSelected).append('<span><strong>' + stuName + '</strong>' + stuTxt + '<strong class="loc">' + stuLoc + '</strong></span>');
			     }		 					 
			  })
			  
			  $('#right_scroll').click(function(){
					 $('#people li span').remove();
			     $('#people li').each(function(index){
			         if($(this).is('.selected'))
			         {			             
			             currSelected = index + 1;
			             $(this).removeClass('selected');			             
			             return false;			             
			         }		         		            
			     });
			     if(currSelected >= max)
                 {
                   currSelected = 0;
                   $('#people li').eq(currSelected).addClass('selected');
									 stuName = $('#people li.selected a').attr('name');
					 	 			 stuTxt = $('#people li.selected a').attr('title');
					 				 stuLoc = $('#people li.selected a').attr('rel');
									 $('#people li').eq(currSelected).append('<span><strong>' + stuName + '</strong>' + stuTxt + '<strong class="loc">' + stuLoc + '</strong></span>');
                 }else{
			       			$('#people li').eq(currSelected).addClass('selected');
									stuName = $('#people li.selected a').attr('name');
					 			  stuTxt = $('#people li.selected a').attr('title');
					 				stuLoc = $('#people li.selected a').attr('rel');
						 			$('#people li').eq(currSelected).append('<span><strong>' + stuName + '</strong>' + stuTxt + '<strong class="loc">' + stuLoc + '</strong></span>');
			     				}
			  });
			}//endif
  };
})(jQuery);
