function NewWindow(mypage, myname, w, h, scroll, resize) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize+',toolbar=no,location=no,status=no,menubar=no,dependent=no';
    win = window.open(mypage, myname, winprops);
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function movepic(img_name,img_src) {
document[img_name].src=img_src;
}



function shodeHideFaqCategory(divID) 

{



    var divCategory = document.getElementById(divID);

    var categFolder = document.getElementById("categ" + divID);

    if (divCategory) 

    {

        var displayedHidden = divCategory.style.display;

    

        //Hide all other categories

        var parentDiv = document.getElementById('categories');

        if (parentDiv) 

        {

            for (var i = 0; i < parentDiv.childNodes.length; i++) 

            {

                 if (parentDiv.childNodes[i].attributes && parentDiv.childNodes[i].attributes["name"] && parentDiv.childNodes[i].attributes["name"].value == "category") 

                 {

                     parentDiv.childNodes[i].style.display = "none";

                 } 

                 if (parentDiv.childNodes[i].attributes && parentDiv.childNodes[i].attributes["name"] && parentDiv.childNodes[i].attributes["name"].value == "categoryHeader") 

                 {

                     parentDiv.childNodes[i].attributes["class"].value = "faqCategCollapsed";

                 }

            }

        }

        if (displayedHidden == "block") 

        {

            categFolder.attributes["class"].value = "faqCategCollapsed";

            divCategory.style.display = "none";

        }

        else 

        {

          categFolder.attributes["class"].value = "faqCategExpanded";

          divCategory.style.display = "block";

        }

    }

}





function showHideFaq(divID, parentID) 

{

    var divCategory = document.getElementById(divID);

    var questionDIV = document.getElementById("quest" + divID);

    if (divCategory) 

    {

        var displayedHidden = divCategory.style.display;

    

       //Hide all other categories

       var parentDiv = document.getElementById(parentID);

       if (parentDiv) 

       {

            for (var i = 0; i < parentDiv.childNodes.length; i++) 

            {

                 if (parentDiv.childNodes[i].attributes && parentDiv.childNodes[i].attributes["name"] && parentDiv.childNodes[i].attributes["name"].value == "answer") 

                 {

                     parentDiv.childNodes[i].style.display = "none";

                 } 

                 if (parentDiv.childNodes[i].attributes && parentDiv.childNodes[i].attributes["name"] && parentDiv.childNodes[i].attributes["name"].value == "answerHeader") 

                 {

                     parentDiv.childNodes[i].attributes["class"].value = "faqQuestionCollapsed";

                 } 

            }

        }

        if (displayedHidden == "block") 

        {

            questionDIV.attributes["class"].value = "faqQuestionCollapsed";

            divCategory.style.display = "none";

        }

        else 

        {

            questionDIV.attributes["class"].value = "faqQuestionExpanded";

            divCategory.style.display = "block";

        }

    }

}





function showHideFeature(divID) 

{

   var div = document.getElementById(divID);

   if (div) 

   {

        if (div.style.display == "block") 

        {

            div.style.display = "none";

        }

        else 

        {

            div.style.display = "block";

        }

   }

}




