/*
 *  Narga JavaScripts Functions created on 08/04/2006, last update on 11/11/2010
 *  Copyright (C) 2003 Dinh Quan Nguyen a.k.a Narga <dinhquan (at) narga (dot) net>
 *  Website:    http://www.narga.net
 *              http://www.narga.org
 *
 *  You are allowed to use this software in any way you want providing:
 *      1. You must retain this copyright notice at all time
 *      2. You must not claim that you or any other third party is the author of this software in any way.
 *      3. Feedback to me (dinhquan@narga.net) when you use my scripts, I will add you to customer list!
 *      4. The CSS, XHTML, JS and design is released under GPL: http://www.opensource.org/licenses/gpl-license.php
*/
/* <![CDATA[ */
jQuery(document).ready(function() {
//Dropdown Menu
    if(!jQuery.browser.msie){// IE  - 2nd level Fix
        jQuery("ul.topnav").css({opacity:"0.95"});
    }
    jQuery(".topnav > li > ul").css({display: "none"}); // Opera Fix
    jQuery("ul.children, ul.sub-menu").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
    jQuery(".menu li a").hover(function() { //When trigger is clicked...
        //Following events are applied to the subnav itself (moving subnav up and down)
        jQuery(this).parent().find("ul.children, ul.sub-menu").slideDown('fast').show(400); //Drop down the subnav on hover
        jQuery(this).parent().hover(function() {
        }, function(){  
            jQuery(this).parent().find("ul.children, ul.sub-menu").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
        });
        //Following events are applied to the trigger (Hover events for the trigger)
        }).hover(function() { 
            jQuery(this).addClass("subhover"); //On hover over, add class "subhover"
        }, function(){  //On Hover Out
            jQuery(this).removeClass("subhover"); //On hover out, remove class "subhover"
    });
})
/* ]]> */
