var avt_jQuery_1_3_2_avt_1_5 = jQuery;/*
 * JSMin
 * Javascript Compressor
 * http://www.crockford.com/
 * http://www.smallsharptools.com/
*/

if(typeof(avt)=="undefined"){var avt={};}
avt.coreClient_1_5={$:avt_jQuery_1_3_2_avt_1_5,fnOnReady:[],options:{appPath:"",bRunPngFix:true},init:function(opts){avt.coreClient_1_5.$.extend(this.options,opts);this.options.bRunPngFix&&this.fixPng();if(this.fnOnReady){for(var i=0;i<this.fnOnReady.length;i++){this.fnOnReady[i]();}
delete this.fnOnReady;}},ready:function(fn){this.fnOnReady.push(fn);},fixPng:function(){avt.coreClient_1_5.$(document).ready(function(){var IE6=(navigator.userAgent.toLowerCase().indexOf('msie 6')!=-1)&&(navigator.userAgent.toLowerCase().indexOf('msie 7')==-1)
if(IE6){var arVersion=navigator.appVersion.split("MSIE")
var version=parseFloat(arVersion[1])
if((version>=5.5)&&(document.body.filters)){for(var i=0;i<document.images.length;i++){var img=document.images[i]
var imgName=img.src.toUpperCase()
if(avt.coreClient_1_5.$(img).hasClass("pngFix")&&imgName.substring(imgName.length-3,imgName.length)=="PNG"){var imgID=(img.id)?"id='"+img.id+"' ":""
var imgClass=(img.className)?"class='"+img.className+"' ":""
var imgTitle=(img.title)?"title='"+img.title+"' ":"title='"+img.alt+"' "
var imgStyle="display:inline-block;"+img.style.cssText
if(img.align=="left")imgStyle="float:left;"+imgStyle
if(img.align=="right")imgStyle="float:right;"+imgStyle
if(img.parentElement.href)imgStyle="cursor:hand;"+imgStyle
var strNewHTML="<span "+imgID+imgClass+imgTitle
+" style=\""+"width:"+img.width+"px; height:"+img.height+"px;"+imgStyle+";"
+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+"(src=\'"+img.src+"\', sizingMethod='scale');\"></span>"
img.outerHTML=strNewHTML
i=i-1}}}}});}}
avt.nxp={$$:avt.coreClient_1_5,$:avt_jQuery_1_3_2_avt_1_5}
avt.navxp={core:{$:avt_jQuery_1_3_2_avt_1_5}}
if(typeof(NavXp)=="undefined")
NavXp={};NavXp.core={appPath:"",init:function(appPath){this.appPath=appPath;avt.coreClient_1_5.init({appPath:appPath,bRunPngFix:true});}}

if (!NavXp) { var NavXp = {}; }
if (!NavXp.skin) { NavXp.skin = {}; }
if (!NavXp.skins) { NavXp.skins = {}; }

NavXp.skins["HorizontalBars/Tabs"] = {
    init : function(settings) {
        var zindex = 100;
        avt.navxp.core.$(".navxp_HD_Tabs").find(".item").each(function() {
            avt.navxp.core.$(this).css("z-index", zindex--);
        });
        avt.navxp.core.$(".navxp_HD_Tabs").find(".itemSel").css("z-index", "101");
    },
    
    over : function(item) {
        //item.oldZ = avt.navxp.core.$(item).css("z-index");
        //avt.navxp.core.$(item).css("z-index", "101");
        avt.navxp.core.$(item).addClass("itemHover");
    },
    
    out : function(item) {
        //avt.navxp.core.$(item).css("z-index", item.oldZ);
        avt.navxp.core.$(item).removeClass("itemHover");
    }
};

if (typeof Sys != "undefined" && typeof Sys.Application != "undefined") {
   Sys.Application.notifyScriptLoaded();
} avt.nxp.$(document).ready(function() { if (NavXp.skins['HorizontalBars/AccessTopMenu']) NavXp.skins['HorizontalBars/AccessTopMenu'].init(); });
if (!NavXp) { var NavXp = {}; }
if (!NavXp.skin) { NavXp.skin = {}; }
if (!NavXp.skins) { NavXp.skins = {}; }

NavXp.skins["VerticalLists/UnorderedLists"] = {
    init : function() {
        
    }
}

if (typeof Sys != "undefined" && typeof Sys.Application != "undefined") {
   Sys.Application.notifyScriptLoaded();
} avt.nxp.$(document).ready(function() { if (NavXp.skins['HorizontalBars/BreadCrumbsLevel2']) NavXp.skins['HorizontalBars/BreadCrumbsLevel2'].init(); });
if (!NavXp) { var NavXp = {}; }
if (!NavXp.skin) { NavXp.skin = {}; }
if (!NavXp.skins) { NavXp.skins = {}; }

NavXp.skins["VerticalPanels/AccessLeftMenu"] = {
    init : function() {

        avt.navxp.core.$(".navxp_VP_AccessLeftMenu").each(function() {
            var _this = avt.nxp.$(this);
            if (_this.parents("tr").size() > 0)
                _this.height(_this.parents("tr").height());
        });
        
    },
    
    expandCollapse : function(objToggle) {

        //avt.navxp.core.$(objToggle).nextAll('.child_container:first').find(".expandCollapseLN").hide();        
        avt.navxp.core.$(objToggle).parent().parent().nextAll('.child_container:first').slideToggle("normal", function() {
            if (avt.navxp.core.$(objToggle).hasClass("collapsed")) {
                avt.navxp.core.$(objToggle).removeClass("collapsed").addClass("expanded");
                //avt.navxp.core.$(this).find(".expandCollapseLN").show();
            } else {
                avt.navxp.core.$(objToggle).removeClass("expanded").addClass("collapsed");
            }
            
        });

        return false; 
    },
    
    show : function(item, panel) {
    
        // let us do some caching
        if (!item.root) { item.root = item.parents(".NavXpRoot:first"); }
        if (!item.parentPanels) { item.parentPanels = item.parents(".child_container"); }
        if (!item.otherPanels) { item.otherPanels = item.root.find(".child_container").not(item.parentPanels).not(panel); }
        if (!item.parentItems) { item.parentItems = item.parentPanels.prev("a").add(item.parentPanels.filter(":last").parent().children("a:first")); }
        if (!item.otherItems) { item.otherItems = item.root.find(".itemLN:visible").not(item.parentItems); }

        // prevent parents from hiding
        item.parentPanels.each( function() {
            clearTimeout(this["timeout"]);
            this["timeout"] = null;
        });

        // prevent this popup from hiding
        if (panel.get(0) && panel.children("a:first").length > 0) {
            if (item.parentPanels.length > 0) {
                panel.css("left", item.position().left + item.outerWidth());
                panel.css("top", item.position().top);
            }
            clearTimeout(panel.get(0)["timeout"]);
            panel.css("z-index", "201");
        }
        
        // hide the rest of the popups
        //item.otherPanels.filter(":visible").css("z-index", "200").hide("drop", {direction: "down"}, "normal"); 
        
        // keep all parent items marked as selected
        item.parentItems.addClass("selChild");

        // and unselect the rest
        item.otherItems.removeClass("selChild");
        
        if (panel.get(0) && panel.children("a:first").length > 0) {
            panel.find(".child_container").show().hide(); // solves IE6 bug
            
            panel.fadeTo(1, 0).fadeTo(1, 1).show();
            item.parentPanels.fadeTo(1, 0).fadeTo(1, 1).show();
            
            panel.children("a").hide();
            this.showCascade(panel.children("a:first"));
        }
    },
    
    showCascade : function(item) {
        if (item.length == 0) return;
        item.fadeIn("fast", function() {
            NavXp.skins["VerticalPanels/AccessLeftMenu"].showCascade(item.nextAll("a:first"));
        });
    },

    hide : function(item, panel) {

        // let us do some caching
        if (!item.root) { item.root = item.parents(".NavXpRoot:first"); }
        if (!item.parentPanels) { item.parentPanels = item.parents(".child_container"); }
        if (!item.otherPanels) { item.otherPanels = item.root.find(".child_container").not(item.parentPanels).not(panel); }
        if (!item.parentItems) { item.parentItems = item.parentPanels.prev("a").add(item.parentPanels.filter(":last").parent().children("a:first")); }
        if (!item.otherItems) { item.otherItems = item.root.find(".itemLN:visible").not(item.parentItems); }

        //item.otherItems.removeClass("selChild");
       // item.removeClass("selChild");
        //item.parentItems.removeClass("selChild");
        
        // let's hide all popups
        var timer = 500;
        var iCall = 0;
        if (item.parentPanels.length == 0) {
            if (panel.get(0)) {
                clearTimeout(panel.get(0)["timeout"]);
                panel.get(0)["timeout"] = setTimeout(function() { 
                        panel.filter(":visible").hide("drop", {direction: "down"}, "normal", function() {
                            this["timeout"] = null;
                        }); 
                    }, timer);
            }
        } else {
            for (var i = item.parentPanels.length - 1; i >= 0 ; i--, timer += 200) {
                clearTimeout(item.parentPanels.get(i)["timeout"]);
                item.parentPanels.get(i)["timeout"] = setTimeout(function() { 
                    item.parentPanels.eq(iCall).hide("drop", {direction: "down"}, "normal", function() {
                        this["timeout"] = null;
                    }); 
                    iCall++; 
                }, timer);
            }
        }
    }
}

if (typeof Sys != "undefined" && typeof Sys.Application != "undefined") {
   Sys.Application.notifyScriptLoaded();
} avt.nxp.$(document).ready(function() { if (NavXp.skins['VerticalPanels/AccessLeftMenu']) NavXp.skins['VerticalPanels/AccessLeftMenu'].init(); });
