3 /* test function for this javascript module */
4 function test_function()
6 alert("javascripts.js module test function!");
9 /* called onLoad web page - initialize all data in javascript */
10 function init_javascript()
15 /* to show/hide answer in faq and user guide pages */
16 function faq_switcher(el)
18 var answer = el.parentNode.getElementsByTagName("div")[1];
19 /* it is not always DIV that we want - lets check if it is a answer class */
21 if("none" == answer.style.display ||
22 "" == answer.style.display) {
23 answer.style.display = "block";
24 el.style.backgroundImage = "url(styles/images/switcher-minus.png)";
27 answer.style.display = "none";
28 el.style.backgroundImage = "url(styles/images/switcher.png)";