jQuery.noConflict();

jQuery(document).ready(function(){
    jQuery('#nav ul > li > ul > li > a').each(function(y, _link){
        jQuery(_link).html('<strong>' + jQuery(_link).html() + '</strong><span>&nbsp;</span>');
    })
    jQuery('#nav ul li ul').each(function(){
        jQuery(this).find('li a:last')
        .html(jQuery(jQuery(this).find('li a:last')).html().replace('<span>', '<span class="last">').replace('<SPAN>', '<SPAN class="last">'));
    }) 

	jQuery('#nav ul > li > ul > li:last-child > a span').each(function(){
        jQuery(this).addClass('last');
    })
    jQuery('#nav > ul > li').each(function(i, lvl1){
        if (jQuery(lvl1).find('ul').length){
            jQuery(lvl1).find('ul').each(function(j, lvl2){
                if (jQuery(lvl2).parent().parent().parent().attr('id') == 'nav') {
                    jQuery(lvl2).wrap('<div class="drop1"><div class="drop1-c"></div><div class="drop1-b"></div></div>');
                } else {
                    jQuery(lvl2).wrap('<div class="drop2"><div class="drop2-c"></div><div class="drop2-b"></div></div>');
                }
            })
        }
    })
    if (window.attachEvent && !window.opera) {ieHover();}
})