$(document).ready(function(){
				/* $("#btn-resources").hover(function(){
					$("#nav-resources").addClass("active");
					$("#nav-resources ul").show(300);
				}, function(){
					$("#nav-resources").removeClass("active");
					$("#nav-resources ul",this).hide(300);
				}); */
				$(".sub-nav,  #nav-resources>li").hoverIntent(show, hide);
				$("#navigation").lavaLamp({fx: "backout", speed: 700, autoReturn: false, homeLeft: -100});
				//Highlights Current Link	
	
				$("#navigation li a").each(function() {
					if(this.href == window.location.href.split("#")[0]) {
						$(this).parent().parent().parent().addClass("selectedLava");
					}
				});
				function show(){
					$("ul",this).toggle("fast");
					}
				function hide(){
					$("ul",this).toggle("fast");
					}
								
				$(".btn_purplepages").fancybox({
					'width' : '75%',
					'height' : '75%',
					'autoScale' : false,
					'transitionIn' : 'none',
					'transitionOut' : 'none',
					'type' : 'iframe',
					'overlayOpacity' : '0.6'
				}); 
				
				$("#btn_cvs").fancybox({
					'autoScale' : false,
					'transitionIn' : 'none',
					'transitionOut' : 'none',
					'overlayOpacity' : '0.6'
				});
			});
