var version=navigator.appVersion;
var ver=version.substring(0,1);

/******************** 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") var img = id;
		if (typeof(ext) == "undefined") var 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") var img = id;
		if (typeof(ext) == "undefined") var ext = "gif";
		document[id].src = document[id].src.replace(eval("/" + img + "b\." + ext + "/gi"),img + "a." + ext);
	}
}
function agr_roll(id,src) { if (ver >= 3 ) { document[id].src = src; } }
/*********************************************************************/

function agr_preload()
{
	if (document.images) {
		myargs = agr_preload.arguments;
		mypreload= new Array();
		for (var i=1; i<myargs.length; i++) {
			mypreload[i] = new Image;
			mypreload[i].src = myargs[0] + myargs[i];
		}
	}
}
