﻿function fnOpenLink(link) {
    var url = document.getElementById('siteUrl').value;
    var page = url + link;
    window.open(page, '', 'dependent=0,titlebar=1,toolbar=1,location=1,status=1,resizable=1,width=800,height=600,scrollbars=1');
}

//FAQ Jquery Accordian - PaulC
function toggleFAQ(faq, button) {   
//Hide all panels except the clicked panel, which will just be toggled
    $('#FaqListing div.FaqPanel').not($(faq).find('div.FaqPanel').slideToggle()).slideUp();
//Set all panels to the "expand" class except the clicked panel, which will just toggle the class
    $('div.collapseButton').not($(button).toggleClass('collapseButton').toggleClass('expandButton')).removeClass().addClass('expandButton'); 
//Set the titles for each type of panel.
    $('div.collapseButton').attr("title", "Click to collapse the FAQ Panel");
    $('div.expandButton').attr("title", "Click to expand the FAQ Panel");   
}