/**
 * Template JQuery Plugin
 *	overview: This plugin is included on all template pages and runs any initialization routines.
 *
 *	usage: used on all website template pages
 *	dependencies: jQuery
 */
(function() {
	/** Initializes the Template Menu
	  *
	  */
	$.initMenu = function() {
		$.fn.hoverClass = function(c) {
			return this.each(function(){
				$(this).hover( 
					function() { $(this).addClass(c);  },
					function() { $(this).removeClass(c); }
				);
			});
		};
		$("#nav-one li").hoverClass ("ieHover");
		/*$("#nav-one//ul//ul").hover( //Frakked in jQuery 1.3.2 */
		$("#nav-one ul ul").hover(
			function() {$(this)
				.parent()
				.children("a").addClass("onPopOut")
				.parent().addClass("ieHover");
			},
			function() {$(this)
				.parent()
				.children("a").removeClass("onPopOut")
			}
		);
	}
})();

$(document).ready(function(){
	$.initMenu();
});

