var W3CDOM = (document.createElement && document.getElementsByTagName);

		
		var mouseOvers = new Array();
		var mouseOuts = new Array();
		
		window.onload = init;

		function init()
		{
			if (!W3CDOM) return;
			
			var imgs = document.getElementsByTagName('img');
			for (var i=0;i<imgs.length;i++)
			{
				if(imgs[i].alt == 'hover') {
					imgs[i].onmouseover = mouseGoesOver;
					imgs[i].onmouseout = mouseGoesOut;
					var suffix = imgs[i].src.substring(imgs[i].src.lastIndexOf('.'));
					mouseOuts[i] = new Image();
					mouseOuts[i].src = imgs[i].src;
					mouseOvers[i] = new Image();
					mouseOvers[i].src = imgs[i].src.substring(0,imgs[i].src.lastIndexOf('.')) + "_omo" + suffix;
					imgs[i].number = i;
					
					preload 	= new Image();			// call the Image constructor and
					preload.src = mouseOvers[i].src;	// set src property by referencing a
														// location, causing image to load
				}
			}
		}

		function mouseGoesOver()
		{
			this.src = mouseOvers[this.number].src;
		}

		function mouseGoesOut()
		{
			this.src = mouseOuts[this.number].src;
		}
		
		function popup(bildSrc,storBildName)
		{

			var storBildSrc		= bildSrc.replace(/omo/,'omc');
			storBildSrc			= storBildSrc.replace(/.gif/,'.jpg');
			storBildName		= new Image();
			storBildName.src	= storBildSrc;

			posWidth			= ((screen.width)/2)-232;
			posHeight			= '0';

			sizeWidth			= storBildName.width;
			sizeHeight			= storBildName.height;
			
			if(sizeWidth < 400) {
			sizeWidth = 635;
			sizeHeight = 800;
			}

			newWindow=window.open(storBildSrc,'newWin','toolbar=no, width='+sizeWidth+',height='+sizeHeight+', left='+posWidth+', top='+posHeight+'')
			newWindow.document.write('<html><head><title>High Resolution<\/title><\/head><body style="margin: 0px; padding: 0px;"><center><img src='+storBildSrc+'><\/center><\/body><\/html>')
			newWindow.focus();
			newWindow.resizeBy(sizeWidth-newWindow.document.body.clientWidth,sizeHeight-newWindow.document.body.clientHeight);
			newWindow.focus();
		}
		
		function maxaWin() {

			//resizeBy(x-offset,y-offset) Resizes the window by moving the bottom-right corner of the window by the specified amount. 
			//moveBy(0,0);
			//moveTo(0,0); 
			//resizeTo(screen.width, screen.height); 
		}
