
function Is ()
{
	var agt = navigator.userAgent.toLowerCase();

	this.created = true;

	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);

	this.nav = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));
	this.nav2 = (this.nav && (this.major == 2));
	this.nav3 = (this.nav && (this.major == 3));
	this.nav4 = (this.nav && (this.major == 4));

	//Netscape 6
	this.nav5 = (this.nav && (this.major == 5));
	this.nav6 = (this.nav && (this.major == 5));
	this.gecko = (this.nav && (this.major >= 5));

	this.ie	= (agt.indexOf('msie') != -1);
	this.ie3 = (this.ie && (this.major == 3));
	this.ie4 = (this.ie && (this.major == 4));
	this.ie5 = (this.ie && (this.major == 5));

	this.opera = (agt.indexOf('opera') != -1);

	this.nav4up = this.nav && (this.major >= 4);
	this.ie4up = this.ie  && (this.major >= 4);
}

var is = new Is();
var loaded = 1;

function showdescription (lay)
{
	if (loaded == 0) return false;
	if (is.ie4up)
		document.all(lay).style.visibility = 'visible';
	else if (is.gecko)
		document.getElementById(lay).style.visibility = 'visible';
	return true;
}

function hidedescription (lay)
{
	if (loaded==0) return false;
	if (is.ie4up)
		document.all(lay).style.visibility = 'hidden';
	else if (is.gecko)
		document.getElementById(lay).style.visibility = 'hidden';
	return true;
}

function openDynamicDiv (id)
{
	var div = document.getElementById(id);

	if (div.className == 'opened')
	{
		div.className = 'closed';
	}
	else
	{
		div.className = 'opened';
	}
}

function open_div (num)
{
	var obj;

	for (var i = 1; i <= 3; i++)
	{
		if (i != num)
		{
			obj = document.getElementById('step_' + i);
			obj.className = 'closed';

			obj = document.getElementById('tab_' + i);
			obj.className = 'ads_section_label';
		}
	}

	obj = document.getElementById('step_' + num);
	obj.className = 'opened';

	obj = document.getElementById('tab_' + num);
	obj.className = 'ads_section_label_1';
}

function open_index_div (num)
{
	var obj;

	for (var i = 1; i <= 2; i++)
	{
		if (i != num)
		{
			obj = document.getElementById('step_' + i);
			obj.className = 'closed';

			obj = document.getElementById('tab_' + i);
			obj.className = 'ads_section_label_index';
		}
	}

	obj = document.getElementById('step_' + num);
	obj.className = 'opened';

	obj = document.getElementById('tab_' + num);
	obj.className = 'ads_section_label_index_1';
}

function save_click (store_id, url)
{
	if (document.images)
	{
		(new Image).src='/cgi-bin/catalog/click.cgi?sid=' + store_id + '&url=' + url;
	}

	return true;
}

function bkm_open_index_div (num,col)
{
	var obj;

	for (var i = 1; i <= col; i++)
	{
		if (i != num)
		{
			obj = document.getElementById('step_' + i);
			obj.className = 'closed';

			obj = document.getElementById('tab_' + i);
			obj.className = 'ads_section_label_index';
		}
	}

	obj = document.getElementById('step_' + num);
	obj.className = 'opened';

	obj = document.getElementById('tab_' + num);
	obj.className = 'ads_section_label_index_1';
}

