<!--
  var DHTML = (document.getElementById || document.all || document.layers);
  
  function getObj(name)
  {
    if (document.getElementById)
    {
   	this.obj = document.getElementById(name);
  	this.style = document.getElementById(name).style;
    }
    else if (document.all)
    {
  	this.obj = document.all[name];
  	this.style = document.all[name].style;
    }
    else if (document.layers)
    {
     	this.obj = document.layers[name];
     	this.style = document.layers[name];
    }
  }
  
  function toggle(id)
  {
  	if (!DHTML) return;
  	var x = new getObj(id);
  	x.style.display = (x.style.display == 'block') ? 'none' : 'block'
  }

  function toggle_page(id,total)
  {
  	if (!DHTML) return;
  	
  	for (var i=1;i<=total;i++){
		  var x = new getObj('page_'+i);
		  x.style.display = 'none';
	   	var x = new getObj('link_page_'+i);
     	x.style.backgroundColor='FFFFFF';
	   	var x = new getObj('blink_page_'+i);
    	x.style.backgroundColor='FFFFFF';
	  }
	  
   	var x = new getObj('link_'+id);
  	x.style.backgroundColor='BBCCEE';
  	
   	var x = new getObj('blink_'+id);
  	x.style.backgroundColor='BBCCEE';

  	var x = new getObj(id);
  	x.style.display = 'block';
  }
  
  var texttop = 400;
  
  function move(amount)
  {
  	if (!DHTML) return;
  	var x = new getObj('text');
  	texttop += amount;
  	x.style.top = texttop;
  }
  
  function changeCol(col)
  {
  	if (!DHTML) return;
  	var x = new getObj('text');
  	x.style.color = col;
  }

	function onColor(blah)
	{
		blah.style.backgroundColor='EA92B7';
	}

	function offColor(blah)
	{
		blah.style.backgroundColor='F2BCD1';
	}

	function bilde(dir_bilde,lwidth,lheight)
	{
		window.open(dir_bilde,'new_window', 'scrollbars=yes,resizable=yes,width='+lwidth+',height='+lheight);
	}

  function openImage(fails, virsraksts, platums, garums, dir){
  	windowwidth = screen.availWidth;windowheight = screen.availHeight;
  	contents="<html><head><title>"+virsraksts+"</title></head>";
  	contents=contents+"<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>";
  	contents=contents+'<a href="javascript:window.close();">';
  	contents=contents+"<img src="+fails+" border=0><br><br>";
  	contents=contents+'<a href="http://web.top.lv/index.php"; title="Top.Lv Rating system" target="_blank"><img src="http://hits.top.lv/counter.php?sid=6976&;type=1" width="88" height="31" alt="Top.LV" border="0"></a>';
  	contents=contents+'<a href="http://puls.lv/" title="PULS.LV Professional statistical system" target="_blank"><img src="http://u4875.puls.lv/?cid=5672&lang=l" width="81" height="39"  alt="PULS.LV Professional statistical system" border="0"></a>';
  	contents=contents+"</body></html>";
  	dummy = window.open("",virsraksts,"resizable=no,status=no,toolbar=no,scrollbars=no,width="+platums+",height="+garums+",left="+(windowwidth-platums)/2+",top="+(windowheight-garums)/2);
  	dummy.document.writeln(contents);
  	dummy.document.close();
  }

-->

