/**
 *my native.js
 */

var mynative = {
	
	init: function() {

		$('ul.navigation a').click(function() {
			
			$(this).blur();
	
			if( $(this).attr('href') != '#' ) {
				return true;
			}
			
			if( $(this).hasClass('open') ) {
				
				var a = $(this);
				
				$(this).parent().find('ul').slideUp('slow', function() {
					a.removeClass('open');
				});
				
			} else {
				
				if( $(this).parent().find('ul:first').length ) {
					
					$(this).parent().parent().find('a.open').removeClass('open');
					$(this).parent().parent().find('ul:visible').slideToggle('slow');
					
					$(this).toggleClass('open');
					$(this).parent().find('ul:first').slideToggle('slow');
					
				}
				
			}
			
			return false;
			
		});
		
		
		$('ul.right-navigation a').click(function() {
			
			$(this).blur();
			
			$(this).parent().find('.more-info').slideToggle('normal');
			
			return false;
			
		});
		
		mynative.ticker();
		
	}
	
	,ticker: function() {
		$('.right-column-content').jScrollPane({showArrows:true});
	}
	
};

$(document).ready(mynative.init);
