

	$(document).ready(function(){
		
		$('ul.globalNav li.drop:not(.active) > a').click(function(e){
			e.preventDefault();
			if($(this).parent().find('ul').is(':visible')){
				if(window.console){
					console.log("test");
				}
			}else {
				$('ul.globalNav ul').slideUp();	
				$('ul.globalNav li').removeClass('open');
				$(this).parent().addClass('open');
				$(this).siblings('ul').slideDown();	
			}
		});
		$('ul.globalNav li:not(.active) a').hover(function(){
			$(this).stop().animate({'paddingLeft':'25px','paddingRight':'25px'});
		}, function(){
			$(this).stop().animate({'paddingLeft':'20px','paddingRight':'30px'});
		});
		
		$('.newsBlurb, .pageBlurb').hover(function(){
			$(this).addClass('hover');
		}, function(){
			$(this).removeClass('hover');
		});
		
		$('.newsBlurb, .pageBlurb').click(function () {
			var url = $(this).find('h3 a, .text a').attr('href');
			var target = $(this).find('h3 a, .text a').attr('target')
	
			if (url != null) {
				if (target != null && target == "_blank")
					window.open(url, "campaign");
				else
					window.location = url;
			} else {
				return false;
			}
		});
			   
	});
