1 |
2
|
Manuela
|
/*-- Addition for remembering expanded state of pages --*/
|
2 |
|
|
function writeSessionCookie (cookieName, cookieValue) {
|
3 |
|
|
document.cookie = escape(cookieName) + "=" + escape(cookieValue) + ";";
|
4 |
|
|
}
|
5 |
|
|
|
6 |
|
|
function toggle_viewers() {
|
7 |
|
|
if(document.add.visibility.value == 'private') {
|
8 |
|
|
document.getElementById('viewers').style.display = 'block';
|
9 |
|
|
} else if(document.add.visibility.value == 'registered') {
|
10 |
|
|
document.getElementById('viewers').style.display = 'block';
|
11 |
|
|
} else {
|
12 |
|
|
document.getElementById('viewers').style.display = 'none';
|
13 |
|
|
}
|
14 |
|
|
}
|
15 |
|
|
function toggle_visibility(id){
|
16 |
|
|
if(document.getElementById(id).style.display == "block") {
|
17 |
|
|
document.getElementById(id).style.display = "none";
|
18 |
|
|
writeSessionCookie (id, "0");//Addition for remembering expanded state of pages
|
19 |
|
|
} else {
|
20 |
|
|
document.getElementById(id).style.display = "block";
|
21 |
|
|
writeSessionCookie (id, "1");//Addition for remembering expanded state of pages
|
22 |
|
|
}
|
23 |
|
|
}
|
24 |
|
|
var plus = new Image;
|
25 |
|
|
plus.src = THEME_URL+"/images/plus_16.png";
|
26 |
|
|
var minus = new Image;
|
27 |
|
|
minus.src = THEME_URL+"/images/minus_16.png";
|
28 |
|
|
function toggle_plus_minus(id) {
|
29 |
|
|
var img_src = document.images['plus_minus_' + id].src;
|
30 |
|
|
if(img_src == plus.src) {
|
31 |
|
|
document.images['plus_minus_' + id].src = minus.src;
|
32 |
|
|
} else {
|
33 |
|
|
document.images['plus_minus_' + id].src = plus.src;
|
34 |
|
|
}
|
35 |
|
|
}
|