var oldsel = "";
var oc = "";
function omo(wat) {
 var d;
 if (wat) {
  if (oldsel!="") {
   d = document.getElementById(oldsel);
   d.style.backgroundColor = "";
   d.style.borderColor = oc;
   oc = "";
  }
  d = document.getElementById(wat);
  d.style.backgroundColor = "#C00000";
  oc = d.style.borderColor;
  // d.style.borderColor = "#7F0303";
  oldsel = wat;
 } else {
  if (oldsel!="") {
   d = document.getElementById(oldsel);
   d.style.backgroundColor = "";
   d.style.borderColor = oc;
   oldsel = "";
   oc = "";
  }
 }
}

function bomo(wat) {
 var d;
 if (wat) {
  if (oldsel!="") {
   d = document.getElementById(oldsel);
   d.style.backgroundColor = "";
   d.style.borderColor = oc;
   oc = "";
  }
  d = document.getElementById(wat);
  d.style.backgroundColor = "#DDD";
  oc = d.style.borderColor;
  // d.style.borderColor = "#7F0303";
  oldsel = wat;
 } else {
  if (oldsel!="") {
   d = document.getElementById(oldsel);
   d.style.backgroundColor = "";
   d.style.borderColor = oc;
   oldsel = "";
   oc = "";
  }
 }
}

var curpagina = 1;

function getPage(wat) {
 var d;
 var x;

 d = document.getElementById("pp"+curpagina);
 d.className = "";

 d = document.getElementById("ppd"+curpagina);
 d.className = "";

 d = document.getElementById("pp"+wat);
 d.className = "pagsel";

 d = document.getElementById("ppd"+wat);
 d.className = "pagsel";

 d = document.getElementById("pagina"+curpagina);
 d.className = "pagina";

 d = document.getElementById("pagina"+wat);
 d.className = "paginaA";
 curpagina = wat;
}


String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}


var tag='/php/stats.php?page=1';
var agt=navigator.userAgent.toLowerCase();
var minor = parseFloat(navigator.appVersion);
if(window.screen) { 
 tag+=('&screen='+screen.width+'x'+screen.height+'c'+screen.colorDepth);
 } 
if(!((parseFloat(navigator.appVersion) > 4.5) && (navigator.appName.indexOf("Netscape") != -1))) {
 if(((""+window.top.location+"").toString() == "") || ((""+window.top.location+"").toString() == "[object Location]")) {
  topref = document.referrer;
  } else {
  topref = top.document.referrer;
  }
 } else {
 topref = document.referrer;
 }
tag+=('&referrer='+escape(topref));
tag+=('&platform='+navigator.platform);
tag+=('&browser='+minor);
statlog = new Image();
statlog.src = tag;
