2012-02-08 14:01:00 +00:00
|
|
|
var state = 0;
|
|
|
|
|
|
|
|
function droplist() {
|
|
|
|
if (state == 0) {
|
|
|
|
$("#droplist").slideToggle("slow");
|
|
|
|
state = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function loadMessages() {
|
|
|
|
$("#messages-new").fadeOut("slow");
|
|
|
|
$("#new-messages").delay(700).fadeIn("slow");
|
|
|
|
}
|
|
|
|
function loadOldMessages() {
|
|
|
|
$("#old-messages").fadeIn("slow");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$(document).click(function() {
|
|
|
|
var dl = $("#droplist").css("height");
|
|
|
|
var dl2 = $("#droplist").css("display");
|
|
|
|
if ((dl2 == "block")&&(dl == "91px")) {
|
|
|
|
state = 0;
|
|
|
|
droplist();
|
|
|
|
state = 0;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
function showActivity(elem) {
|
|
|
|
$("#activity-bottom"+elem).slideToggle("slow");
|
2012-02-28 15:40:22 +00:00
|
|
|
var img = document.getElementById("expand" + elem).className;
|
|
|
|
if (img == "expand-gray-down") {
|
|
|
|
document.getElementById("expand" + elem).className = "expand-gray-up";
|
2012-02-08 14:01:00 +00:00
|
|
|
} else {
|
2012-02-28 15:40:22 +00:00
|
|
|
document.getElementById("expand" + elem).className = "expand-gray-down";
|
2012-02-08 14:01:00 +00:00
|
|
|
}
|
|
|
|
}
|