function show_bigpict(obj, act, x, y)
{
- var big;
+ var big, sfx;
- // alert("offsetTop: "+obj.offsetTop+" offsetLeft: "+obj.offsetLeft+"obj.id: "+obj.id);
- big = $(obj.id+"_big");
+ if (arguments.length > 4)
+ sfx = arguments[4];
+ else
+ sfx = '';
+
+ big = $(obj.id+"_big"+sfx);
if (act == "over") {
big.style.left = obj.offsetLeft + x+"px";
big.style.top = obj.offsetTop + y+"px";
function send_mesg(mesg)
{
var xhr_wr = createXMLHttpRequest();
-
+ var is_conn = (sess == "not_connected" ? false : true);
- xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+mesg, true);
+ xhr_wr.open('GET', 'index_wr.php?'+(is_conn ? 'sess='+sess+'&' : '')+'mesg='+mesg, (is_conn ? true : false));
xhr_wr.onreadystatechange = function() { return; };
xhr_wr.send(null);
+ if (!is_conn) {
+ if (xhr_wr.responseText != null) {
+ eval(xhr_wr.responseText);
+ }
+ }
}
/* Stat: CHAT and TABLE */
send_mesg("about");
}
+function act_roadmap()
+{
+ send_mesg("roadmap");
+}
+
+function act_whysupport()
+{
+ send_mesg("whysupport");
+}
+
function act_exitlock()
{
send_mesg("exitlock");
if (this.step_n * this.deltat == this.time) {
this.step_n--;
}
- this.step_free = parseInt(this.step_n * this.free);
+ if (this.free < 1) {
+ this.step_free = parseInt(this.step_n * this.free);
+ }
},
start: function(st)
this.step_cur++;
setTimeout(function(obj){ obj.animate(); }, this.deltat, this);
if (this.step_cur == this.step_free && this.st != null) {
- if (this.st != null && this.st.st_loc < this.st.st_loc_new) {
+ if (this.st.st_loc < this.st.st_loc_new) {
// alert("QUI1 " + this.step_cur + " ZZ "+ this.step_free);
this.st.st_loc++;
this.st = null;
// $("logz").innerHTML += "xxxxxxxxxxxxxxxCLEAR<br>";
var date = new Date();
// $("logz").innerHTML += "Timestop: " + date + "<br>";
+
+ if (this.action != null) {
+ eval(this.action);
+ }
+
if (this.st != null && this.st.st_loc < this.st.st_loc_new) {
// alert("QUI2");
this.st.st_loc++;
this.st = null;
}
- if (this.action != null) {
- eval(this.action);
- }
if (this.srcend != null) {
this.img.src = this.srcend;
}
function table_init() {
var sux = new Array("", "_ea", "_ne", "_nw", "_we");
+ // console.log("table_init");
+
remark_off();
$("asta").style.visibility = "hidden";
$("caller").style.visibility = "hidden";
$("card"+sux[e]+i).style.visibility = "hidden";
}
for (i=0 ; i < PLAYERS_N ; i++) {
+ // console.log("shut: "+"takes"+sux[i]);
$("takes"+sux[i]).style.visibility = "hidden";
}