	function TsAutoHover() {
		if (!document.getElementsByTagName) {
			return;
		}
		var imgs = document.getElementsByTagName('img');
		var i, l = imgs.length;
		var j, m;
		var reSwapme = /autoswap|auto-swap/;
		var reIsActive = /_a\.[a-z]+/;
		var reFileParts = /(.*)\.([a-z]+$)/;
		var srcParts;
		for (i = 0; i < l; i++) {
			if (reSwapme.test(imgs[i].className) && !reIsActive.test(imgs[i].src)) {
				srcParts = imgs[i].src.match(reFileParts)
				imgs[i]._srcNormal = imgs[i].src;
				imgs[i]._srcActive = srcParts[1] + '_a.' + srcParts[2];
				imgs[i].onmouseover = function() {
					this.src = this._srcActive;
				}
				imgs[i].onmouseout = function() {
					this.src = this._srcNormal;
				}
			}
		}

		if (window.oldOnload) {
			oldOnload();
		}
	}
	function TsAutoHoverInstall() {
		if (window.addEventListener) {
			window.addEventListener('load', TsAutoHover, true);
		} else if (window.attachEvent) {
			window.attachEvent('onload', TsAutoHover);
		} else {
			if (window.onload) {
				window.oldOnload = window.onload;
			}
			window.onload = TsAutoHover;
		}
	}
	/* General function for Popup windows */

	function popupCenter(url, name, attributes, width, height) {
		topx = (screen.height - height) / 2;
		leftx = (screen.width - width) / 2;
		if (attributes.length > 0)
			if (attributes.substr(attributes.length-1,1) != ',')
				attributes += ','
		var w = window.open(url, name, attributes + 'width='+width+',height='+height+',screenx='+leftx+',screeny='+topx+',top='+topx+',left='+leftx+',status=yes,resizable=no,scrollbars=no');
		w.focus();
	}
	function popupabout(url) {
		popupCenter(url, 'popupabout', '', 700, 500);
		return false;
	}
	function popupbilder(url) {
		popupCenter(url, 'popupbilder', '', 600, 465);
		return false;
	}