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 on (img)
{	if (ver >= 3 )	{	document.getElementById(img).src = "img/" + img + "b.gif";	}}

function off (img)
{	if (ver >= 3 )	{	document.getElementById(img).src = "img/" + img + "a.gif";	}}
/*********************************************************************/
function on2 (img,id)
{	if (ver >= 3 )	{	document[id].src = "img/" + img + "b.gif";	}}

function off2 (img,id)
{	if (ver >= 3 )	{	document[id].src = "img/" + img + "a.gif";	}}
/*********************************************************************/
function on3 (img,id)
{	if (ver >= 3 )	{	document[id].src = "partner_news/img/" + img + "b.gif";	}}

function off3 (img,id)
{	if (ver >= 3 )	{	document[id].src = "partner_news/img/" + img + "a.gif";	}}
/*********************************************************************/
function agr_flip (id,src)
{	if (ver >= 3 )	{	document[id].src = "img/" + src;	}}
/*********************************************************************/
 function classon() {
	var args = classon.arguments;
	for (var i = 0; i < args.length;  i++) {
		var o = document.getElementById(args[i]);
		o.className = o.className + "_on";
	}
}
function classoff() {
	var args = classoff.arguments;
	for (var i = 0; i < args.length;  i++) {
		var o = document.getElementById(args[i]);
		o.className = o.className.replace(/_on$/, '');
	}
}
/*********************************************************************/

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];
		}
	}
}

