// JavaScript Document
	$(document).ready(function() {
			/* -------------------------------------------------------------------------
			The following code is to add slide functionality to pnav
			written by: Spincaster - Ryan Martinez - (8/09/09)
			-------------------------------------------------------------------------*/
			
	 		/*1.0 Set intial states
			-------------------------------------------------------------------------*/
			
			 // 1.1 Hide all sub navs
			//$("#pnav li ul").hide();
					
			/*2.0 hover event | upon hovering pnav li - sub nav should show
			-------------------------------------------------------------------------*/
			//declare variable pointer to be used in hover function (pointer)
				// assign value to pointer = (this) reference
				// setTime out function on mouseover so as to prevent accordian effect (all ul opening) - .35 sec delay
				// clear timeout variable to prevent stack overflow.
			var pointer;
				
				$("#pnav li").hover( 
					function(){ pointer = $(this); 
								if( $(pointer).children("ul").is(":hidden")) {
									 hover_intent = setTimeout( function (){ $(pointer).children("ul").slideDown('slow');},500);
								}
					},
					function(){ pointer = $(this); 
								if ($(pointer).children("ul.active").is(":visible")) { /*do nothing*/ }
								else{ clearTimeout(hover_intent); $(pointer).children("ul").slideUp('slow'); }
					}  
				);
			});
