// This is the implementation of SimpleSwap
// by Jehiah Czebotar
// Version 1.1 - June 10, 2005
// Distributed under Creative Commons
//
// Include this script on your page
// then make image rollovers simple like:
// <img src="/images/ss_img.gif" oversrc="/images/ss_img_over.gif">
//
// http://jehiah.com/archive/simple-swap
// Modified by crm

function SimpleSwap(el, src)
	{
	el.src=src;
	}

function SimpleSwapSetup()
	{
	var x=document.getElementsByTagName("img");
	for(var i=0; i<x.length; i++)
		{
		if(x[i].className=="menu")						// Dzialaj na obrazkach z klasa "menu"
			{
			var nazwa=x[i].src.slice(0, x[i].src.lastIndexOf(".")-1);
			x[i].oversrc=nazwa+"a.png";					// przed dodaj do nazwy 'a' zeby uniknac problemow ze zgodnoscia z wytycznymi w3c~ (oversrc~)
			x[i].origsrc=nazwa+".png";
			x[i].onmouseover=new Function("SimpleSwap(this, this.oversrc);");
			x[i].onmouseout=new Function("SimpleSwap(this, this.origsrc);");
			SimpleSwap(x[i], x[i].origsrc);
			}
		}
	}
setTimeout("SimpleSwapSetup()", 2000)
