$(document).ready(function(){
	var __ACTIVE   = $('.nav-active').attr('id');
	
	$('.' + __ACTIVE).removeClass(__ACTIVE).addClass('nav-active');
	
	$('.con-border').hover(
		function(){
			$(this).css('border','1px solid #36393D');
		},
		function(){
			$(this).css('border','1px solid #E1E1E1');
		}
	);
	
	$('.script-link').hover(
		function(){
			$(this).css('color','#36393D');
		},
		function(){
			$(this).css('color','#356AA0');
		}
	);
	
	$('.' + $('.nav-active').attr('id') + '-sub').show().offset({ left : $('.nav-active').offset().left });
	$('#navigation-main li').hover(
		function(){
			$('.navigation-sub').hide();
			$('.' + $('a',this).attr('id') + '-sub').show().offset({ left : $(this).offset().left });
		},
		function(){
			$('#nav-sub').hover(
				function(){},
				function(){
					$('.navigation-sub').hide();
					$('.' + $('.nav-active').attr('id') + '-sub').show().offset({ left : $('.nav-active').offset().left });
				}
			)
			$('#header').mouseover(
				function(){
					$('.navigation-sub').hide();
					$('.' + $('.nav-active').attr('id') + '-sub').show().offset({ left : $('.nav-active').offset().left });
				}
			)
		}
	);
	
	$('#page-print').click(
		function(){
			alert('print the page!');
		}
	);
	
	$('#page-bookmark').click(
		function(){
			alert('bookmark the page!');
		}
	);
});
