var is_nav4up;
var is_ie4up;

// DETECT BROWSER
function detectBrowser() {
	var agt=navigator.userAgent.toLowerCase();
	var is_major = parseInt(navigator.appVersion);
	var is_minor = parseFloat(navigator.appVersion);
	var is_ie   = (agt.indexOf("msie") != -1);
	is_ie4up  = (is_ie  && (is_major >= 4) && (navigator.appVersion.indexOf("PPC") == -1) );
}
// PULL SMALL STAR PHOTO
function star_icon(starname,e) {
	detectBrowser()
	filename = starname;

	var html = "<img src=\"http://filebase.mallcom.com/filebase/stars-small/" + filename + ".jpg\" width=\"45\" height=\"70\" border=\"1\" name=\"JS"  + filename + "\" OnError=\"ImageStarSmallFailed('JS" + filename + "');return true;\">"
	if (is_ie4up) {
		document.all.staricon.style.left = window.event.clientX;
		document.all.staricon.style.top = window.event.clientY + document.body.scrollTop;
		document.all.staricon.style.visibility = "visible";
		document.all.staricon.innerHTML = html;
	}
	else {
		ben = document.getElementById('staricon');
		ben.style.visibility = "visible";
		ben.innerHTML = html;
		ben.style.left = e.clientX;
		ben.style.top = e.clientY + document.body.scrollTop;
	}
}
// REMOVE POPUP
function star_out(e) {
	if (is_ie4up) {
		document.all.staricon.style.visibility="hidden";
	}
	else {
		ben = document.getElementById('staricon');
		ben.style.visibility="hidden";
	}
}
// EVENT HANDLER
function star_show(e,current) {
	ben = document.getElementById('staricon');
	if (document.all) { // for IE5+ only
		ben.style.pixelTop = (document.body.scrollTop + event.clientY) + 15;
		ben.style.pixelLeft = (document.body.scrollLeft + event.clientX) + 12;
	}
	else {
		ben.style.top = (document.body.scrollTop + e.clientY) + 15;
		ben.style.left = (document.body.scrollLeft + e.clientX) + 12;
	}
}