function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		bt_inicio_over = newImage("/images/bt_inicio-over.gif");
		bt_inicio_down = newImage("/images/bt_inicio-down.gif");
		bt_social_over = newImage("/images/bt_social-over.gif");
		bt_social_down = newImage("/images/bt_social-down.gif");
		bt_contato_over = newImage("/images/bt_contato-over.gif");
		bt_contato_down = newImage("/images/bt_contato-down.gif");
		
		bt_agencia_over = newImage("/images/bt_agencia-over.gif");
		bt_portfolio_over = newImage("/images/bt_portfolio-over.gif");
		bt_clientes_over = newImage("/images/bt_clientes-over.gif");
		bt_premios_over = newImage("/images/bt_premios-over.gif");
		bt_equipe_over = newImage("/images/bt_equipe-over.gif");
		bt_links_over = newImage("/images/bt_links-over.gif");
		preloadFlag = true;
	}
}

function mostracliente(){
if (document.clientes.select1.options[document.clientes.select1.selectedIndex].value != "none") {
frame.location = document.clientes.select1.options[document.clientes.select1.selectedIndex].value
		}
}

function mostracliente2(){
if (document.clientes.select1.options[document.clientes.select1.selectedIndex].value != "none") {
location = document.clientes.select1.options[document.clientes.select1.selectedIndex].value
		}
}

function mostrapecas(){
if (document.pecas.select2.options[document.pecas.select2.selectedIndex].value != "none") {
parent.frame.location = document.pecas.select2.options[document.pecas.select2.selectedIndex].value
		}
}

var position = 0;
function scroller() {
	if ((screen.width>=1024) && (screen.height>=768))
	{
	 // maior que 1024 - não faz nada
	}
	else
	{
	// menor que 1024

        if (position < 178)
        {
                position = position+10;
                scroll(0,position);
                clearTimeout(timer);
                var timer = setTimeout("scroller()",1); timer;
        }
	
	}
}
