
//---[ javascript file for the main page				]---
//---[ revised last: 16.06.2004						]---
//---[ copyright: littlegreenman					]---


//---[ auxiliar variables for code parsing ]---

var ie = (document.all) ? 1 : 0;
var n = (document.layers) ? 1 : 0;


//---[ auxiliar variable for completion tests ]---

var loaded = false;


//--- [ mouseover functions ]---

directory = 'images/';

function createImage(file)
{
	image = new Image();
	image.src = directory+file+'.gif';
	return image;
}

function changeImage(image, extension)
{
	document.images[image].src = eval(image+extension+'.src');
}


//--- [ pre-loading of the mouseover images (so many!) ]---

//top navigation bar (english):
company_en_off = createImage('company_en_off');
company_en_on = createImage('company_en_on');

products_en_off = createImage('products_en_off');
products_en_on = createImage('products_en_on');

application_en_off = createImage('application_en_off');
application_en_on = createImage('application_en_on');

rd_en_off = createImage('rd_en_off');
rd_en_on = createImage('rd_en_on');

support_en_off = createImage('support_en_off');
support_en_on = createImage('support_en_on');

home_en_off = createImage('home_en_off');
home_en_on = createImage('home_en_on');

//top navigation bar (portuguese):
company_pt_off = createImage('company_pt_off');
company_pt_on = createImage('company_pt_on');

products_pt_off = createImage('products_pt_off');
products_pt_on = createImage('products_pt_on');

application_pt_off = createImage('application_pt_off');
application_pt_on = createImage('application_pt_on');

rd_pt_off = createImage('rd_pt_off');
rd_pt_on = createImage('rd_pt_on');

support_pt_off = createImage('support_pt_off');
support_pt_on = createImage('support_pt_on');

home_pt_off = createImage('home_pt_off');
home_pt_on = createImage('home_pt_on');


//---[ changing the center page ]---

//function changePage(newadress, newpage)
function changePage(newadress)
{
//	changeButtons(newpage);
//	changeImage(newpage, '_on');
	parent.frames.mainframe.location.href = newadress;
}

function refreshCenter()
{
	frames.center.location.reload();
}


//---[ handling resizes ]---

function recenterElipse()
{
	if (loaded)
		centerElipse();
}

//window.onresize = recenterElipse;
	