var version=navigator.appVersion;
var ver=version.substring(0,1);
if (navigator.appName == 'Microsoft Internet Explorer')	{	net = 1;	}
else	{	net = 0;	}

/******************** THE ONLY ONE TO USE ;) *************************/
function agr_on(id,img,ext) {
	if (ver >= 3 ) {
		if (typeof(id) == "object") {
			ext = /[^.]+$/.exec(id.attributes.src);
			id = id.attributes.name;
		}
		if (typeof(img) == "undefined") img = id;
		if (typeof(ext) == "undefined") ext = "gif";
		document[id].src = document[id].src.replace(eval("/" + img + "a\." + ext + "/gi"),img + "b." + ext);
	}
}
function agr_off(id,img,ext) {
	if (ver >= 3 ) {
		if (typeof(id) == "object") {
			ext = /[^.]+$/.exec(id.attributes.src);
			id = id.attributes.name;
		}
		if (typeof(img) == "undefined") img = id;
		if (typeof(ext) == "undefined") ext = "gif";
		document[id].src = document[id].src.replace(eval("/" + img + "b\." + ext + "/gi"),img + "a." + ext);
	}
}


function preload()
{
	if (document.images)
	{
		myargs = preload.arguments;
		mypreload= new Array();
		for (var i=1; i<myargs.length; i++)
		{
			mypreload[i] = new Image;
			mypreload[i].src = myargs[i] + 'b.' + myargs[0];
		}
	}
}
