﻿


//Home Page
var isMobile; // = '<%= IsMobile %>';
jQuery(document).ready(function() {
    var IE6 = /msie|MSIE 6/.test(navigator.userAgent);

    //news carousel
    var url = getLeaf(document.location.href);

    //slider
    if (typeof accordionSetup == 'function')
        accordionSetup();

    if (typeof setUpHmNews == 'function')
        setUpHmNews();
    //emergency
    if (jQuery("#eCar").length > 0)
        setupEmergency();

    //highlight
    if (typeof setUpHighlights == 'function')
        setUpHighlights();
    if (typeof acdPostLoader == 'function')
        acdPostLoader();
    //navi
    setUpNavi();
    if (typeof current == "string") {
        if (!highlightMenuItem(current))
            LinkItHL(pageid);
    }
    if (typeof ImgSlidePostLoaderHm == 'function') {
        ImgSlidePostLoaderHm();
    }

   /* if (isMobile == 'True') {
        jQuery(".quicklinks").hide();
        var elem = jQuery(".content a img");
        for (i = 0; i < elem.length; i++) {
            var par = elem.eq(i).parent();
            var title = par.attr("title");
            if (title == null || title == "")
                par.html(par.attr("title"));
            else
                par.html("Link");
        }

    }*/

});


