// Navigation jquery

			$(document).ready(function(){
				
				$(".intNavigation").children("li").each(function() {
					var current = "intNavigation current-" + ($(this).attr("class"));
				    var parentClass = $(".intNavigation").attr("class");
				    if (parentClass != current) {
				    	$(this).children("a").css({backgroundImage:"none"});
				    }
				}); 


				attachNavEvents(".intNavigation", "home");
				attachNavEvents(".intNavigation", "about");
				attachNavEvents(".intNavigation", "portfolio");
				attachNavEvents(".intNavigation", "contact");

				
				function attachNavEvents(parent, myClass) {
    				$(parent + " ." + myClass).mouseover(function() {
        				// do things here
				    }).mouseout(function() {
        				// do things here
    				}).mousedown(function() {
        				// do things here
    				}).mouseup(function() {
        				// do things here
    				});
				}
				function attachNavEvents(parent, myClass) {
				    $(parent + " ." + myClass).mouseover(function() {
			        $(this).before('<div class="intNavigation-' + myClass + '"></div>');
			        $("div.intNavigation-" + myClass).css({display:"none"}).fadeIn(130);
				  	}).mouseout(function() {
				        // fade out & destroy pseudo-link
			        $("div.intNavigation-" + myClass).fadeOut(130, function() {
			            $(this).remove();
			        });
		    });
			}


			});  
