﻿featuredcontentglider.init({
    gliderid: "contentdisplay", //ID of main glider container
    contentclass: "glidecontent", //Shared CSS class name of each glider content
    togglerid: "p-select", //ID of toggler container
    remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
    selected: 0, //Default selected content index (0=1st)
    persiststate: false, //Remember last content shown within browser session (true/false)?
    speed: 500, //Glide animation duration (in milliseconds)
    direction: "downup", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
    autorotate: true, //Auto rotate contents (true/false)?
    autorotateconfig: [5000] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})

jQuery(document).ready(function() {
    var tmp = jQuery(".submenu-container .Selected");
    var i=0;
    for (i=0;i< tmp.length;i++)
    {
        tmp[i].parentNode.parentNode.style.visibility = "visible";
        tmp[i].parentNode.parentNode.style.display= "block";
        var j=0;
        var childs = tmp[i].parentNode.children;
        for (j=0;j< childs.length;j++)
        {
            if(childs[j].nodeName=="UL")
            {
                childs[j].style.visibility = "visible";
                childs[j].style.display= "block";
            };
        }
    }
});
