/*! global.js */
(function(){
	window.ND=window.ND||{}

	//ND is in the window scope.
	ND.common = {
	
		init: function() {
		
			$("#position").css("height",$("#page").height()+20);
			
			//popup
			/*$(".has-js a.loadpopup").colorbox({
				inline:true,
				speed:200,
				width:"891",
				height:"533",
				scrolling:false,
				preloading:true,
				opacity: 1,
				href:"#stateslection",
				title: false,
				overlayClose: false
			});*/

		}
	
	}

	//ie6
	ND.navdropdown = {
		init: function() {

			$(".locationbar > ul > li").hover(
			function(){
			    $(this).addClass("hover");
			    }, function(){
			    $(this).removeClass("hover");
		    });
			$(".nav ul > li").hover(
			function(){
			    $(this).addClass("hover");
			    }, function(){
			    $(this).removeClass("hover");
		    });
		    
			$(".sitemap ul > li").hover(function(){    
				$(this).addClass("hover");
			}, function(){
				$(this).removeClass("hover");
			});

		}
	}


	$(document).ready(function() {
		ND.common.init();
		
		var userAgent = window.navigator.userAgent.toLowerCase();
		$.browser.version = (userAgent.match( /.(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0, '0'])[1];
		var version = $.browser.version;

		if(version == 6.0){
			ND.navdropdown.init();
		};
	});

})();
