jQueryCS(function(){
	$("ul.nav ul").hide(); 
 	  
 	$("ul.nav ul a").not("a[href*=www.blackhawk.edu]").not("a[href*=http://blackhawk.edu]").not("a[href*=btcprod2]").addClass("external").attr('target', '_blank');
  	$('ul.nav ul a[href$="pdf"]').addClass("external").attr('target', '_blank');
  	
	$(".footer_links a.link span").not("a[href*=www.blackhawk.edu] span").not("a[href*=http://blackhawk.edu] span").not("a[href*=btcprod2] span").not("a[href$='pdf'] span").append("&nbsp;&nbsp;&rsaquo;").attr('target', '_blank');
	$(".footer_links a[href$='pdf'] span").append("&nbsp;&nbsp;&rsaquo;").attr('target', '_blank');
	
	$("ul.nav li").not("ul.nav ul li").hover(
		
			function() { 
				var $this = $(this);
				var $this_ul = $(this).children("ul");
					
					if ($this_ul.size() > 0){
						
						var y =  $(this).height();
							if($(this).height() < 30){
								y = 26;
							}
						var x = 0;
						$this_ul.css('display', 'block'); 
						$this_ul.css('position', 'absolute'); 
						$this_ul.css('top', y + "px"); 
						$this_ul.css('left', x + "px"); 
						if($this.width() < 100 ){
							$this_ul.css('width', $this.width()*2 + "px"); 
						}else{
					 		$this_ul.css('width', $this.width()*1.4 + "px"); 
		
						}
 						if($this.hasClass("last")){
							$this_ul.css('left', (x-($this.width())) + "px"); 
 
						}
 						var temp = "<span class=\"cover\" style='width:"+($this.children("a").width())+"px; top:"+(y-2)+"px; left:"+(x+2)+"px;'></span>" ;
 						$this.prepend(temp);
   						$this_ul.addClass('display');
					}
					
					$this.addClass('hov');
					
					
			},
			
			
			
			
			
			function() { 
					
 					$(this).children("ul").css('display', 'none'); 
					$(this).removeClass('hov');
					$("span.cover").remove();
					
					
					});
	 		 
											 
			 
		 
	
});
