var produto = new Array()
produto.prod = new Array()
produto.prod.product = new Array()
produto.prod.cat_id = new Array()
produto.prod.title = new Array()
produto.prod.image = new Array()
produto.prod.preco = new Array()
produto.prod.preco_desc = new Array()
produto.promo = new Array()
produto.promo.product = new Array()
produto.promo.cat_id = new Array()
produto.promo.title = new Array()
produto.promo.image = new Array()
produto.promo.preco = new Array()
produto.promo.preco_desc = new Array()
produto.lanca = new Array()
produto.lanca.product = new Array()
produto.lanca.cat_id = new Array()
produto.lanca.title = new Array()
produto.lanca.image = new Array()
produto.lanca.preco = new Array()
produto.lanca.preco_desc = new Array()
prod_num = '5';
produto['prod']['product'][0] = '1667';
produto['prod']['title'][0] = 'PROCESSADOR INTEL CELERON 420 1.6GHz 800Mhz 512K 64b 775pin';
produto['prod']['cat_id'][0] = '112';
produto['prod']['preco'][0] = '0.00';
produto['prod']['image'][0] = '1186750709celeron430.jpg';
produto['prod']['product'][1] = '57';
produto['prod']['title'][1] = 'JOYPAD 8 BOTÕES LEADERSHIP';
produto['prod']['cat_id'][1] = '51';
produto['prod']['preco'][1] = '0.00';
produto['prod']['image'][1] = '095.jpg';
produto['prod']['product'][2] = '157';
produto['prod']['title'][2] = 'CART. C6614N PRETO';
produto['prod']['cat_id'][2] = '85';
produto['prod']['preco'][2] = '0.00';
produto['prod']['image'][2] = '20.jpg';
produto['prod']['product'][3] = '46';
produto['prod']['title'][3] = 'ETIQUETA ME A21/25 BRANCA MULTILASER';
produto['prod']['cat_id'][3] = '67';
produto['prod']['preco'][3] = '0.00';
produto['prod']['image'][3] = '';
produto['prod']['product'][4] = '720';
produto['prod']['title'][4] = 'COLETOR DE DADOS COM LEITOR LASER / METROLOGIC - SCANPAL2 LE';
produto['prod']['cat_id'][4] = '120';
produto['prod']['preco'][4] = '0.00';
produto['prod']['image'][4] = 'le.jpg';
promo_num = '5';
promo_num2 = '5';
produto['promo']['product'][0] = '1594';
produto['promo']['title'][0] = 'Monitor Waytec 15 LCD Touch Screen';
produto['promo']['cat_id'][0] = '162';
produto['promo']['preco'][0] = '0.00';
produto['promo']['preco_desc'][0] = '0.00';
produto['promo']['image'][0] = 'waytec.jpg';
produto['promo']['product'][1] = '1598';
produto['promo']['title'][1] = 'Impressora HP Laserjet 1018';
produto['promo']['cat_id'][1] = '110';
produto['promo']['preco'][1] = '0.00';
produto['promo']['preco_desc'][1] = '0.00';
produto['promo']['image'][1] = 'hp1018.jpg';
produto['promo']['product'][2] = '1615';
produto['promo']['title'][2] = 'Impressora EPSON LX-300 Usada';
produto['promo']['cat_id'][2] = '71';
produto['promo']['preco'][2] = '0.00';
produto['promo']['preco_desc'][2] = '0.00';
produto['promo']['image'][2] = 'lx300usada.jpg';
produto['promo']['product'][3] = '1625';
produto['promo']['title'][3] = 'X - Solicite a configuração desejada!';
produto['promo']['cat_id'][3] = '1';
produto['promo']['preco'][3] = '0.00';
produto['promo']['preco_desc'][3] = '0.00';
produto['promo']['image'][3] = '1185287695consulte.jpg';
produto['promo']['product'][4] = '1612';
produto['promo']['title'][4] = 'Estabilizador SMS 1000VA µap 5.0';
produto['promo']['cat_id'][4] = '213';
produto['promo']['preco'][4] = '0.00';
produto['promo']['preco_desc'][4] = '0.00';
produto['promo']['image'][4] = 'sms1kva.jpg';
lanca_num = '5';
lanca_num2 = '5';
lanca_num3 = '5';
produto['lanca']['product'][0] = '1873';
produto['lanca']['title'][0] = 'MULTIFUNCIONAL HP PHOTOSMART C4280';
produto['lanca']['cat_id'][0] = '76';
produto['lanca']['preco'][0] = '0.00';
produto['lanca']['image'][0] = 'hp4280.jpg';
produto['lanca']['product'][1] = '1603';
produto['lanca']['title'][1] = 'Impressora Lexmark E120';
produto['lanca']['cat_id'][1] = '110';
produto['lanca']['preco'][1] = '0.00';
produto['lanca']['image'][1] = 'lexmarke120.jpg';
produto['lanca']['product'][2] = '1593';
produto['lanca']['title'][2] = 'Monitor Samsung 17 LCD 732N Preto Piano';
produto['lanca']['cat_id'][2] = '162';
produto['lanca']['preco'][2] = '0.00';
produto['lanca']['image'][2] = 'samsung732n.jpg';
produto['lanca']['product'][3] = '1605';
produto['lanca']['title'][3] = 'Impressora Lexmark C500N';
produto['lanca']['cat_id'][3] = '110';
produto['lanca']['preco'][3] = '0.00';
produto['lanca']['image'][3] = 'lexmarkc500n.jpg';
produto['lanca']['product'][4] = '1600';
produto['lanca']['title'][4] = 'Impressora HP Laserjet P2015';
produto['lanca']['cat_id'][4] = '110';
produto['lanca']['preco'][4] = '0.00';
produto['lanca']['image'][4] = 'hpp2015.jpg';
var navegador = navigator.appName;
col_on=0;
function show_on(id,tipo)
{
if (col_on == 0)
{
num = promo_num-1;
prd = Math.floor(Math.random() * (parseInt(num) + 1));
document.getElementById(id+'_nome').innerHTML = ""+produto['promo']['title'][prd]+"";
document.getElementById(id+'_img').innerHTML = "
";
//document.getElementById(id+'_info').innerHTML = "R$"+produto['promo']['preco_desc'][prd];
}
if(navegador == "Microsoft Internet Explorer")
document.getElementById(id).filters.alpha.opacity = col_on;
col_on = col_on + 10;
if(col_on < 100)
setTimeout("show_on('"+id+"')", 50);
}
function troca_clip(id,tipo)
{
show_on(id,tipo,promo_num);
col_on = 0;
setTimeout("troca_clip('"+ id +"','"+ tipo +"')", 10000);
}
function monta_clip(id,tipo)
{
if (tipo == 'promo' && promo_num > 0)
{
setTimeout("troca_clip('"+ id +"','"+ tipo +"')", 500);
}
else
if (tipo == 'promo' && promo_num >= 0)
{
troca_clip(id,tipo);
}
}
col_on3=0;
function show_on3(id,tipo)
{
if (col_on3 == 0)
{
lnum = lanca_num-1;
prd3 = Math.floor(Math.random() * (parseInt(lnum) + 1));
document.getElementById(id+'_nome').innerHTML = ""+produto['lanca']['title'][prd3]+"";
document.getElementById(id+'_img').innerHTML = "
";
//document.getElementById(id+'_info').innerHTML = "R$"+produto['lanca']['preco'][prd3];
}
if(navegador == "Microsoft Internet Explorer")
document.getElementById(id).filters.alpha.opacity = col_on3;
col_on3 = col_on3 + 10;
if(col_on3 < 100)
setTimeout("show_on3('"+id+"')", 50);
}
function troca_clip3(id,tipo)
{
show_on3(id,tipo);
col_on3 = 0;
setTimeout("troca_clip3('"+ id +"','"+ tipo +"')", 10000);
}
function monta_clip3(id,tipo)
{
if (tipo == 'lanca' && lanca_num > 0)
{
setTimeout("troca_clip3('"+ id +"','"+ tipo +"')", 500);
}
else
if (tipo == 'lanca' && lanca_num >= 0)
{
troca_clip3(id,tipo);
}
}