﻿
        function closeModal(divName) {
            //document.getElementByID('modalWhiteBox').style.display='none';
            var elem, vis;
            if (document.getElementById)
            // this is the way the standards work    
                elem = document.getElementById(divName);
            else if (document.all)
            // this is the way old msie versions work      
                elem = document.all[whichLayer];
            else if (document.layers)
            // this is the way nn4 works    
                elem = document.layers[whichLayer];
            vis = elem.style;
            // if the style.display value is blank we try to figure it out here  
            if (vis.display == '' && elem.offsetWidth != undefined && elem.offsetHeight != undefined)
                vis.display = 'none';

        }
        function showModal(divName) {
            //document.getElementByID('modalWhiteBox').style.display='none';
            var elem, vis;
            if (document.getElementById)
            // this is the way the standards work    
                elem = document.getElementById(divName);
            else if (document.all)
            // this is the way old msie versions work      
                elem = document.all[whichLayer];
            else if (document.layers)
            // this is the way nn4 works    
                elem = document.layers[whichLayer];
            vis = elem.style;
            // if the style.display value is blank we try to figure it out here  
            if (vis.display == '' && elem.offsetWidth != undefined && elem.offsetHeight != undefined)
                vis.display = 'block';

        }



        var gImages = new Array;
        var gIndex = 0;
        var DCS = new Object();
        var WT = new Object();
        var DCSext = new Object();
        var gQP = new Array();

        var gDomain = "report.axisportal.com";
        var gDcsId = "dcsfpj1drbg3tkvgmpcloajgm_9e9d";

        if ((typeof (gConvert) != "undefined") && gConvert && (document.cookie.indexOf(gFpc + "=") == -1)) {
            document.write("<SCR" + "IPT Language='JavaScript' SRC='" + "http://" + gDomain + "/" + gDcsId + "/wtid.js" + "'></SCR" + "IPT>");
        }


        function dcsVar() {
            var dCurrent = new Date();
            WT.tz = dCurrent.getTimezoneOffset() / 60 * -1;
            if (WT.tz == 0) {
                WT.tz = "0";
            }
            WT.bh = dCurrent.getHours();
            WT.ul = navigator.appName == "Netscape" ? navigator.language : navigator.userLanguage;
            if (typeof (screen) == "object") {
                WT.cd = navigator.appName == "Netscape" ? screen.pixelDepth : screen.colorDepth;
                WT.sr = screen.width + "x" + screen.height;
            }
            if (typeof (navigator.javaEnabled()) == "boolean") {
                WT.jo = navigator.javaEnabled() ? "Yes" : "No";
            }
            if (document.title) {
                WT.ti = document.title;
            }
            WT.js = "Yes";
            if (typeof (gVersion) != "undefined") {
                WT.jv = gVersion;
            }
            if (document.body && document.body.addBehavior) {
                document.body.addBehavior("#default#clientCaps");
                if (document.body.connectionType) {
                    WT.ct = document.body.connectionType;
                }
                document.body.addBehavior("#default#homePage");
                WT.hp = document.body.isHomePage(location.href) ? "1" : "0";
            }
            if (parseInt(navigator.appVersion) > 3) {
                if ((navigator.appName == "Microsoft Internet Explorer") && document.body) {
                    WT.bs = document.body.offsetWidth + "x" + document.body.offsetHeight;
                }
                else if (navigator.appName == "Netscape") {
                    WT.bs = window.innerWidth + "x" + window.innerHeight;
                }
            }
            WT.fi = "No";
            if (window.ActiveXObject) {
                if ((typeof (gFV) != "undefined") && (gFV.length > 0)) {
                    WT.fi = "Yes";
                    WT.fv = gFV;
                }
            }
            else if (navigator.plugins && navigator.plugins.length) {
                for (var i = 0; i < navigator.plugins.length; i++) {
                    if (navigator.plugins[i].name.indexOf('Shockwave Flash') != -1) {
                        WT.fi = "Yes";
                        WT.fv = navigator.plugins[i].description.split(" ")[2];
                        break;
                    }
                }
            }
            WT.sp = "@@SPLITVALUE@@";
            DCS.dcsdat = dCurrent.getTime();
            DCS.dcssip = window.location.hostname;
            DCS.dcsuri = window.location.pathname;
            if (window.location.search) {
                DCS.dcsqry = window.location.search;
                if (gQP.length > 0) {
                    for (var i = 0; i < gQP.length; i++) {
                        var pos = DCS.dcsqry.indexOf(gQP[i]);
                        if (pos != -1) {
                            var front = DCS.dcsqry.substring(0, pos);
                            var end = DCS.dcsqry.substring(pos + gQP[i].length, DCS.dcsqry.length);
                            DCS.dcsqry = front + end;
                        }
                    }
                }
            }
            if ((window.document.referrer != "") && (window.document.referrer != "-")) {
                if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4)) {
                    DCS.dcsref = window.document.referrer;
                }
            }
        }

        function A(N, V) {
            return "&" + N + "=" + dcsEscape(V);
        }

        function dcsEscape(S) {
            if (typeof (RE) != "undefined") {
                var retStr = new String(S);
                for (R in RE) {
                    retStr = retStr.replace(RE[R], R);
                }
                return retStr;
            }
            else {
                return escape(S);
            }
        }

        function dcsLoadHref(evt) {
            if ((typeof (gHref) != "undefined") && (gHref.length > 0)) {
                window.location = gHref;
                gHref = "";
            }
        }

        function dcsCreateImage(dcsSrc) {
            if (document.images) {
                gImages[gIndex] = new Image;
                if ((typeof (gHref) != "undefined") && (gHref.length > 0)) {
                    gImages[gIndex].onload = gImages[gIndex].onerror = dcsLoadHref;
                }
                gImages[gIndex].src = dcsSrc;
                gIndex++;
            }
            else {
                document.write('<IMG BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="' + dcsSrc + '">');
            }
        }

        function dcsMeta() {
            var elems;
            if (document.all) {
                elems = document.all.tags("meta");
            }
            else if (document.documentElement) {
                elems = document.getElementsByTagName("meta");
            }
            if (typeof (elems) != "undefined") {
                for (var i = 1; i <= elems.length; i++) {
                    var meta = elems.item(i - 1);
                    if (meta.name) {
                        if (meta.name.indexOf('WT.') == 0) {
                            WT[meta.name.substring(3)] = meta.content;
                        }
                        else if (meta.name.indexOf('DCSext.') == 0) {
                            DCSext[meta.name.substring(7)] = meta.content;
                        }
                        else if (meta.name.indexOf('DCS.') == 0) {
                            DCS[meta.name.substring(4)] = meta.content;
                        }
                    }
                }
            }
        }

        function dcsTag() {
            var P = "http" + (window.location.protocol.indexOf('https:') == 0 ? 's' : '') + "://" + gDomain + (gDcsId == "" ? '' : '/' + gDcsId) + "/dcs.gif?";
            for (N in DCS) {
                if (DCS[N]) {
                    P += A(N, DCS[N]);
                }
            }
            for (N in WT) {
                if (WT[N]) {
                    P += A("WT." + N, WT[N]);
                }
            }
            for (N in DCSext) {
                if (DCSext[N]) {
                    P += A(N, DCSext[N]);
                }
            }
            if (P.length > 2048 && navigator.userAgent.indexOf('MSIE') >= 0) {
                P = P.substring(0, 2040) + "&WT.tu=1";
            }
            dcsCreateImage(P);
        }

        function dcsFunc(func) {
            if (typeof (window[func]) == "function") {
                window[func]();
            }
        }

        dcsVar();
        dcsMeta();
        dcsFunc("dcsAdv");
        dcsTag();



//    <!--
//The .JS file and one of the .CSS files must be included in ALL pages displaying menus.
//You can ignore the .JS file, but edit the .CSS file(s) to change menu appearance.
//-->
//    <!-- FreeStyle Menu v1.0RC by Angus Turnbull http://www.twinhelix.com -->
//    <!--    <script type="text/javascript" src="/shared/scripts/fsmenu.js"></script>
//-->
//    <!--

//Welcome to the FreeStyle Menu script!

//Your menus have 3 components: a stylesheet included above that controls layout and formatting,
//the menu data which consists of HTML in the page, and some JavaScript to control them.
//I suggest using server-side includes for including menu data on all pages of your site.
//Try a language like PHP or ASP if your webhost supports it perhaps.

//See below for menu examples; there are 2 main modes of operation for this script, using a
//nested UL/LI list, and using un-nested tags in the page.
//I recommend you use the list mode, but I've included an example of the other as well.

//Good luck - Angus.

//-->

//        var alists = getRef("listMenuRoot").getElementsByTagName('a');
//        for (var i = 0; i < alists.length; i++) {
//            var currentItem = alists[i];
//            var regx = "" + currentItem + ".*";
//            regx = regx.replace('?', '').replace('#', '').toLowerCase();
//            var locationHref = this.location.href.replace('?', '').replace('#', '').toLowerCase();

//            if (locationHref.search(regx) >= 0 && currentItem != '') {
//                var currentParentItem = currentItem.parentNode;
//                currentParentItem.childNodes[0].className = 'highlighted';
//                currentParentItem.parentNode.parentNode.childNodes[0].className = 'highlighted';
//            }
//        }


        //        var alists;
        //        alists = getRef("listMenuRoot").getElementsByTagName('a');
        //        for (var i = 0; i < alists.length; i++) {
        //            var currentItem = alists[i];
        //            var regx = "" + currentItem + ".*";
        //            regx = regx.replace('?', '').replace('#', '').toLowerCase();
        //            var locationHref = this.location.href.replace('?', '').replace('#', '').toLowerCase();

        //            if (locationHref.search(regx) >= 0 && currentItem != '') {
        //                var currentParentItem = currentItem.parentNode;
        //                currentParentItem.childNodes[0].className = 'highlighted';
        //                currentParentItem.parentNode.parentNode.childNodes[0].className = 'highlighted';
        //            }
        //        }
        //    


 
        //<![CDATA[

        // For each menu you create, you must create a matching "FSMenu" JavaScript object to represent
        // it and manage its behaviour. You don't have to edit this script at all if you don't want to;
        // these comments are just here for completeness. Also, feel free to paste this script into the
        // external .JS file to make including it in your pages easier!

        // Here's a menu object to control the above list of menu data:
        var listMenu = new FSMenu('listMenu', true, 'visibility', 'visible', 'hidden');

        // The parameters of the FSMenu object are:
        //  1) Its own name in quotes.
        //  2) Whether this is a nested list menu or not (in this case, true means yes).
        //  3) The CSS property name to change when menus are shown and hidden.
        //  4) The visible value of that CSS property.
        //  5) The hidden value of that CSS property.

        // It must match a <ul> list in the page with an "id" attribute that is the same as its
        // own name plus 'Root', like the list above. This was you can create several menus in one
        // page, each with their own unique FSMenu object and settings.

        // Here's some optional settings for delays and highlighting:
        //  * showDelay is the time (in milliseconds) to display a new child menu.
        //  * switchDelay is the time to switch from one child menu to another child menu.
        //    Set this higher and point at 2 neighbouring items to see what it does.
        //  * hideDelay is the time it takes for a menu to hide after mouseout.
        //  * cssLitClass is the CSS classname applied to parent items of active menus.
        //  * showOnClick will, suprisingly, set the menus to show on click. Pick one of 3 values:
        //    0 = all mouseover, 1 = first level click, sublevels mouseover, 2 = all click.

        //listMenu.showDelay = 0;
        //listMenu.switchDelay = 125;
        //listMenu.hideDelay = 500;
        listMenu.cssLitClass = 'highlighted';
        listMenu.showOnClick = 0;

        // Now the fun part... animation! This script supports animation plugins you can add to each
        // menu object you create. Here's two to get you started. To enable animation, add one or
        // more functions to the menuObject.animations array, and set menuObject.animSpeed to the
        // desired percentage of animation to be completed per frame.
        // Animation functions are called with a reference to the menu element being animated,
        // and a counter variable that changes from 0 to 100 depending on the animation progress.

        function animClipDown(ref, counter) {
            var cP = Math.pow(Math.sin(Math.PI * counter / 200), 0.75);
            ref.style.clip = (counter == 100 ? (window.opera ? '' : 'rect(auto, auto, auto, auto)') :
  'rect(0, ' + ref.offsetWidth + 'px, ' + (ref.offsetHeight * cP) + 'px, 0)');
        };

        function animFade(ref, counter) {
            var f = ref.filters, done = (counter == 100);
            if (f) {
                if (!done && ref.style.filter.indexOf("alpha") == -1)
                    ref.style.filter += ' alpha(opacity=' + counter + ')';
                else if (f.length && f.alpha) with (f.alpha) {
                    if (done) enabled = false;
                    else { opacity = counter; enabled = true }
                }
            }
            else ref.style.opacity = ref.style.MozOpacity = counter / 100.1;
        };

        // I'm applying them both to this menu and setting the speed to 20%. Delete this to disable.
        listMenu.animations[listMenu.animations.length] = animFade;
        listMenu.animations[listMenu.animations.length] = animClipDown;
        listMenu.animSpeed = 20;

        // Finally, on page load you have to activate the menu by calling its 'activateMenu()' method.
        // I've provided an "addEvent" method that lets you easily run page events across browsers.
        // You pass the activateMenu() function two parameters:
        //  (1) The ID of the outermost list element.
        //  (2) A node containing your submenu popout arrow indicator.
        // If none of that made sense, just cut and paste this next bit for each menu you create.

        var arrow = null;
        if (document.createElement && document.documentElement) {
            arrow = document.createElement('span');
            arrow.appendChild(document.createTextNode('>'));
            // Feel free to replace the above two lines with these for a small arrow image...
            //arrow = document.createElement('img');
            //arrow.src = 'arrow.gif';
            //arrow.style.borderWidth = '0';

            arrow.className = 'subind';
        }

        addEvent(window, 'load', new Function('listMenu.activateMenu("listMenuRoot", arrow)'));

        // You may wish to leave your menu as a visible list initially, then apply its style
        // dynamically on activation for better accessibility. Screenreaders and older browsers will
        // then see all your menu data, but there will be a 'flicker' of the raw list before the
        // page has completely loaded. If you want to do this, remove the CLASS="..." attribute from
        // the above outermost UL tag, and uncomment this line:
        //addEvent(window, 'load', new Function('getRef("listMenuRoot").className="menulist"'));

        //]]>
    
