<!-- 

function URLDecode(encoded)
{
   // Replace + with ' '
   // Replace %xx with equivalent character
   // Put [ERROR] in output if %xx is invalid.
   var HEXCHARS = "0123456789ABCDEFabcdef"; 
   var plaintext = "";
   var i = 0;
   while (i < encoded.length) {
       var ch = encoded.charAt(i);
	   if (ch == "+") {
	       plaintext += " ";
		   i++;
	   } else if (ch == "%") {
			if (i < (encoded.length-2) 
					&& HEXCHARS.indexOf(encoded.charAt(i+1)) != -1 
					&& HEXCHARS.indexOf(encoded.charAt(i+2)) != -1 ) {
				plaintext += unescape( encoded.substr(i,3) );
				i += 3;
			} else {
				alert( 'Bad escape combination near ...' + encoded.substr(i) );
				plaintext += "%[ERROR]";
				i++;
			}
		} else {
		   plaintext += ch;
		   i++;
		}
	} // while
   return plaintext;
}

function replaceText(text){
  while(text.lastIndexOf("&") > 0){
      text = text.replace('&', '[i-Stats]');
  }
  return text;
}

var web_referrer = replaceText(document.referrer);
      
istat = new Image(1,1);
istat.src = "/fwstats/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&referer="+web_referrer+"&page="+location.href;

var dragobj = null;

// obj
var dragx = 0;
var dragy = 0;

// muis
var posx = 0;
var posy = 0;

function draginit() {
 // Init events
  document.onmousemove = drag;
  document.onmouseup = dragstop;
}


function dragstart(element) {
  dragobj = element;
  dragx = posx - dragobj.offsetLeft;
  dragy = posy - dragobj.offsetTop;
}

function dragstop() {
  dragobj=null;
}

function drag(obj) {
  posx = document.all ? window.event.clientX : obj.pageX;
  posy = document.all ? window.event.clientY : obj.pageY;
  if(dragobj != null) {
    dragobj.style.left = (posx - dragx) + "px";
    dragobj.style.top = (posy - dragy) + "px";
  }
}

//
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//
function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}

var slideshowContent = new Array();

function addSlideshowContent(offset, img) {
	
	slideshowContent[offset] = img;
}

function showSlideshowOffset(offset) {
	
	var target = document.getElementById('slideshow-main');
	target.innerHTML = slideshowContent[offset];
	//$('#' + target).find('img').animate({ opacity: 'hide' }, 'slow');
	//$('#' + target).html(slideshowContent[offset]);
	//$('#' + target).find('img').animate({ opacity: 'show' }, 'slow');
	
	curOffset = offset;
}

var curOffset = 0;
function slideshowNext() {
	
	curOffset++;
	if (curOffset > slideshowMaxOffset) curOffset = 0;
	
	showSlideshowOffset(curOffset);
}

function slideshowPrev() {
	
	curOffset--;
	if (curOffset < 0) curOffset = slideshowMaxOffset;
	
	showSlideshowOffset(curOffset);
}


addLoadEvent(draginit);
-->
