var the_colours = new Array(6);
the_colours[0] = '#E4E4E2'; /* light grey */
the_colours[1] = '#999999'; /* dark grey */
the_colours[2] = '#000000'; /* black */
the_colours[3] = '#999999'; /* dark grey */
the_colours[4] = '#ff6600'; /* orange */
the_colours[5] = '#007D5D'; /* e-green */
var the_image = '
';
var htmlstring = "";
var backcolour = "";
onresize = function()
{
if (agent.ns) {
//foo();
document.location.href = document.location.href;
}
}
function hide_layers(arg)
{
var pieces = new Array();
if (arg == '') {
return;
}
pieces = arg.split(" ");
create_objects();
for (var nr = 0; nr < pieces.length; nr++) {
objects[pieces[nr]].hide();
}
}
function handle_mouse_over(arg, which_colour, white_text)
{
create_objects();
objects[arg].set_bgcolor(the_colours[which_colour]);
}
function handle_mouse_out(arg, which_colour, black_text)
{
create_objects();
objects[arg].set_bgcolor(the_colours[which_colour]);
}
function foo()
{
alert('foo');
}
function init_navigation(t_id, b_id)
{
var DEBUG = 0;
create_objects();
for (var nr = 0; nr < tlyrs.length; nr++) {
if (tlyrs[nr] == t_id) {
htmlstring = the_image + '' + tdesc[nr] + '' + the_image;
backcolour = the_colours[2];
} else {
htmlstring = the_image + '' + tdesc[nr] + '' + the_image;
backcolour = the_colours[0];
}
if (DEBUG == 1) {
alert(htmlstring);
}
if (agent.ns) {
objects[tlyrs[nr]].set_height(17);
}
objects[tlyrs[nr]].set_html(htmlstring);
objects[tlyrs[nr]].move(top_x_arr[nr], y_arr[0]);
objects[tlyrs[nr]].set_bgcolor(backcolour);
}
for (nr = 0; nr < blyrs.length; nr++) {
//the check for "FindCar" must be here since Car Sales requires it to be "clickable" even though it's "selected"
if (blyrs[nr]!='FindCar' && blyrs[nr] == b_id) {
htmlstring = the_image + '' + bdesc[nr] + '' + the_image;
backcolour = the_colours[2];
} else {
htmlstring = the_image + '' + bdesc[nr] + '' + the_image;
backcolour = the_colours[2];
}
if (DEBUG == 1) {
alert(htmlstring);
}
if (agent.ns) {
objects[blyrs[nr]].set_height(17);
}
objects[blyrs[nr]].set_html(htmlstring);
objects[blyrs[nr]].move(bot_x_arr[nr], y_arr[1]);
objects[blyrs[nr]].set_bgcolor(backcolour);
if (blyrs[nr] == b_id) {
objects["WhiteDot"].move(bot_x_arr[nr] - 2, y_arr[1] + 3);
objects["WhiteDot"].show();
}
}
}
// onLoad = page_load();