// Consumer Electronics
// General Navigation '‘hameleon Engine' v.1.04
// ---------------------------------
// (C) 2000 Andrew Chernyavsky for Solar Unity

if (document.images) {
prev0 = new Image(); prev0.src = "../img/k_prev.gif";
prev3 = new Image(); prev3.src = "../img/k_prev3.gif";
stop0 = new Image(); stop0.src = "../img/k_stop.gif";
stop3 = new Image(); stop3.src = "../img/k_stop3.gif";
next0 = new Image(); next0.src = "../img/k_next.gif";
next3 = new Image(); next3.src = "../img/k_next3.gif";
}

var mediate = location.href.substring(0, location.href.lastIndexOf("/"));
var firm = mediate.substring(mediate.lastIndexOf("/")+1, mediate.length);
var thispathfile = lastEnd2_pathFile();
var Review = popCookie("Review");
if (Review == null) Review = "general";


function buttons(Prev, Next) {
var AltPrev = "Previous Product - "+altMessage(Prev);
var AltNext = "Next Product - "+altMessage(Next);
	document.write(
	"<p align='center'>&nbsp;<br>"+
	"<a href='"+Prev+".htm' onmousedown='prev.src=prev3.src' onmouseout='prev.src=prev0.src'>"+
	"<img src='../img/k_prev.gif' name='prev' border='0' alt='"+AltPrev+"'>"+
	"</a>"+
	"<a href='./' onmousedown='stop.src=stop3.src' onmouseout='stop.src=stop0.src'>"+
	"<img src='../img/k_stop.gif' name='stop' border='0' alt='Products in Section "+firm.toUpperCase()+"'>"+
	"</a>"+
	"<a href='"+Next+".htm' onmousedown='next.src=next3.src' onmouseout='next.src=next0.src'>"+
	"<img src='../img/k_next.gif' name='next' border='0' alt='"+AltNext+"'>"+
	"</a></p>");
}


function modelsHeader() {
	document.write(
	"<table border='0' cellpadding='0' cellspacing='0' width='775'>"+
	"<tr>"+
	"<td width='380'>"+
//		"<MAP NAME='Header01'>"+
//		"<AREA SHAPE='CIRCLE' COORDS='38, 32, 26' HREF='../../'>"+
//		"</MAP>"+
//		"<img src='../img/head1_"+firm+".gif' width='380' height='60' border='0' usemap='#Header01'><br>"+
		"<img src='../img/head1_"+firm+".gif' width='380' height='60' border='0'><br>"+
		"<img src='../img/head2_"+firm+".gif' width='145' height='27'>"+
	"</td>"+
	"<td width='370' valign='top' background='../img/bg_review.gif'>"+
	    "<img src='../img/head3_"+firm+".gif' width='370' height='20'><br>");
	    document.write(
	      "<img src='../img/rv_general.gif' width='370' height='40'>"+
	"</td>"+
	"<td width='370' valign='top'>"+
	    "<img src='../img/trailer.gif' width='25' height='20'>"+
	"</td>"+
	"</tr>"+
	"</table>");
}


function leftpanel() {
document.write(
  "<table border='0' cellpadding='0' cellspacing='0' width='120' height='520' background='../img/bar_"+firm+".gif'>"+
  "<tr>"+
  "<td valign='top'>");
	if (Review == "general") {
		leftpanel_general();
	} else {
		leftpanel_change();
	}
document.write(
  "</td>"+
  "</tr>"+
  "</table>");
}


function lastEnd2_pathFile() {
var mediatepath2 = location.href.substring(0, location.href.lastIndexOf("/"));
var nlastEnd2 = mediatepath2.lastIndexOf("/");
var mediatepath3 = ".."+location.href.substring(nlastEnd2, location.href.length-4);
return mediatepath3;
}


function altMessage(AltMsg) {
var prodname = AltMsg.substring(AltMsg.lastIndexOf("/")+1, AltMsg.length);
AltMsg = AltMsg.substring(0, AltMsg.lastIndexOf("/"));
AltMsg = AltMsg.substring(AltMsg.lastIndexOf("/")+1, AltMsg.length);
AltMsg += "  "+prodname;
return AltMsg.toUpperCase()+" ";
}
