function changebg(element) {
	if (element.className == "bg1")
	{
		element.className = "bg2";
	} else {
		element.className = "bg1";
	}
}

function VersionNav(Netscape, Explorer) {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
}

function high(wh) {
  theobject=wh;
  wh.filters.alpha.opacity=0;
  highlighting=setInterval("highlightit(theobject)",1)
}

function low(wh) {
  clearInterval(highlighting)
  wh.filters.alpha.opacity=95
}

function highlightit(cur2) {
  if (cur2.filters.alpha.opacity<100)
    cur2.filters.alpha.opacity+=5
  else if (window.highlighting)
    clearInterval(highlighting)
}

function mo(o) {
  o.className=='stateoff'?o.className='stateon': o.className=o.className;
}

function mx(o) {
  o.className=='stateon'?o.className='stateoff': o.className=o.className;
}

function mc(o) {
  o.className='stateclicked';
}

function get_object(id) {
	if (document.getElementById)
	{
		return document.getElementById(id);
	}
	else if (document.all)
	{
		return document.all[id];
	}
	else if (document.layers)
	{
		return document.layers[id];
	}
	else
	{
		return null;
	}
}

function show_hide (id) {
	object = get_object (id);
	if (object)
	{
		if (object.style.display == "none")
		{
			object.style.display = "";
		}
		else
		{
			object.style.display = "none";
		}
	}
}

function RatingIn (num, file, url, total) {
	for (var x = 1; x <= num; x++)
	{
		object = get_object ('rating_' + file + '_' + x);
		object.src = url + 'images/rating_solid.gif';
	}
	for (var x = num + 1; x <= total; x++)
	{
		object = get_object ('rating_' + file + '_' + x);
		object.src = url + 'images/rating_empty.gif';
	}
}

function RatingOut (num, file, url, total) {
	for (var x = 1; x <= num; x++)
	{
		object = get_object ('rating_' + file + '_' + x);
		object.src = url + 'images/rating_empty.gif';
	}
	RatingIn (num, file, url, total);
}

