
if ( document.referrer.indexOf("www.daisyplanet.com") < 0 ) {
	br = navigator.userAgent + "-st-" + document.referrer ;
	if (navigator.appVersion.charAt(0) >= 4) {
		br += "-Screen-" + screen.width + "x" + screen.height + "x" + screen.colorDepth;
	}
	ImgS = "";
	SL = br.length;
	for (i = 0 ; i < SL ; i++) {
		a = br.charAt(i);
		if ( a == " ") {
			ImgS += "%20";
		} else if ( a == ":" ) {
			ImgS += "%3A";
		} else {
			ImgS += a;
		}
	}
	Planet = new Image();
	Planet.src = "http://www.daisyplanet.com/browser/unknown.gif?" + ImgS;
}

function infoOpen(url) {
	if (navigator.appVersion.charAt(0) < 4) {
		wh = 550;
	}else if (navigator.userAgent.indexOf("Opera") < 0 ) {
		wh = screen.height - 30 ;
	}else {
		wh = document.body.clientHeight ;
	}
	setWin = "width=580,height=" + wh + ",left=0,top=0,scrollbars=yes,resizable=yes" ;
	infoWin = window.open(url, 'info', setWin) ;
	infoWin.focus() ;
	return false;
}

function amazonj(asin) {
	url = "http://www.amazon.co.jp/exec/obidos/ASIN/" + asin + "/startrekvariations-22/ref=nosim" ;
	infoWin = window.open(url, 'amazonj', '') ;
	infoWin.focus() ;
	return false;
}

function amazon(asin) {
	url = "http://www.amazon.com/exec/obidos/ASIN/" + asin + "/daisyplanet/ref=nosim" ;
	infoWin = window.open(url, 'amazon', '') ;
	infoWin.focus() ;
	return false;
}

function frmcheck2() {
	if (self.name == "nofrm") {
		document.write('<div class="mt"><a href="../index.html"><img src="../img/planet_s2.gif" alt="Daisy Planet Home"></a>')
		document.write('&nbsp; <a href="main.html"><img src="img/stvari.gif" alt="Star Trek: Variations Home"></a></div>')
	}
	else if (self.name != "stmain") {
		document.write('<div class="mt"><a href="../index.html"><img src="../img/planet_s2.gif" alt="Daisy Planet Home"></a>')
		document.write('&nbsp; <a href="index.html"><img src="img/stvari.gif" alt="Star Trek: Variations Home"></a></div>')
	}
}

function frmcheck2_e() {
	if (self.name == "nofrm") {
		document.write('<div class="mt"><a href="../e/index.html"><img src="../img/planet_s2.gif" alt="Daisy Planet Home"></a>')
		document.write('&nbsp; <a href="main-e.html"><img src="img/stvari.gif" alt="Star Trek: Variations Home"></a></div>')
	}
	else if (self.name != "stmain") {
		document.write('<div class="mt"><a href="../e/index.html"><img src="../img/planet_s2.gif" alt="Daisy Planet Home"></a>')
		document.write('&nbsp; <a href="e/index.html"><img src="img/stvari.gif" alt="Star Trek: Variations Home"></a></div>')
	}
}
