*
*/
+var __mop_commons_vers="0.1.0"
+
var PLAYERS_N = 3;
var EXIT_BAN_TIME = 3600;
var cookiepath = "/brisk/";
return hex;
}
+function ends_with(s, suffix)
+{
+ if (s.indexOf(suffix, s.length - suffix.length) !== -1) {
+ return true;
+ }
+ return false;
+}
+
function getStyle(x,IEstyleProp, MozStyleProp)
{
if (x.currentStyle) {
function class_add(item, cls_name)
{
- if (! class_check(item, cls_name)) {
- item.className = item.className + " " + cls_name;
+ for (i = 1 ; i < arguments.length ; i++) {
+ if (! class_check(item, arguments[i])) {
+ item.className = item.className + " " + arguments[i];
+ }
}
}
function class_rem(item, cls_name)
{
- var item_spc = " " + item.className + " ";
- var cls_spc = " " + cls_name + " ";
- var cls_out;
+ for (i = 1 ; i < arguments.length ; i++) {
+ var item_spc = " " + item.className + " ";
+ var cls_spc = " " + arguments[i] + " ";
+ var cls_out;
- var pos = item_spc.indexOf(cls_spc);
- if (pos != -1) {
- cls_out = item_spc.substring(0, pos) + item_spc.substring(pos + cls_spc.length - 1);
- if (cls_out == " ") {
- item.className = "";
+ var pos = item_spc.indexOf(cls_spc);
+ if (pos != -1) {
+ cls_out = item_spc.substring(0, pos) + item_spc.substring(pos + cls_spc.length - 1);
+ if (cls_out == " ") {
+ item.className = "";
+ }
+ else {
+ item.className = cls_out.substring(1, cls_out.length - 1);
}
- else {
- item.className = cls_out.substring(1, cls_out.length - 1);
}
}
}