jQuery(document).ready(function()
{
	$('#nav li').hover(
		function(){ $(this).find('.sub').show();  $(this).find('a:eq(0)').addClass('active');},
		function(){ $(this).find('.sub').hide();  $(this).find('a:eq(0)').removeClass('active');}
	);
	if ($(window).width() < 1200 ){ 
		$('#page').css('width' , $(window).width());
	}
	$(window).resize(function() {
		if( $(window).width() < 1200 ) {
		var wid = $(window).width();
		$('#page').animate({
		width : wid
		}, {
		queue: false});
		}
		else{
			$('#page').animate({
		width : 1200
		}, {
		queue: false});
		}
	});



});
