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] = '134';
produto['prod']['title'][0] = 'IMPRESSORA MATRICIAL EPSON FX-2190 - 136 COLUNAS';
produto['prod']['cat_id'][0] = '75';
produto['prod']['preco'][0] = '0.00';
produto['prod']['image'][0] = 'fx-2190.jpg';
produto['prod']['product'][1] = '1361';
produto['prod']['title'][1] = 'IMPRESSORA MULTIFUNCIONAL HP F4480';
produto['prod']['cat_id'][1] = '76';
produto['prod']['preco'][1] = '378.00';
produto['prod']['image'][1] = '4480.jpg';
produto['prod']['product'][2] = '2112';
produto['prod']['title'][2] = 'PLACA MAE GIGABYTE GA-H55M-S2H P/ i3,i5ei7 (LGA1156/8Ch/GbE/DDR3) ';
produto['prod']['cat_id'][2] = '24';
produto['prod']['preco'][2] = '0.00';
produto['prod']['image'][2] = '12742796711.jpg';
produto['prod']['product'][3] = '2128';
produto['prod']['title'][3] = 'TECLADO ABNT PS2 BÁSICO';
produto['prod']['cat_id'][3] = '182';
produto['prod']['preco'][3] = '0.00';
produto['prod']['image'][3] = '';
produto['prod']['product'][4] = '751';
produto['prod']['title'][4] = 'IMPRESSORA DE EMISSÃO DIÁRIA ED CUPOM / EPSON - TM-U220D';
produto['prod']['cat_id'][4] = '126';
produto['prod']['preco'][4] = '0.00';
produto['prod']['image'][4] = 'epson_tmu200d.jpg';
promo_num = '5';
promo_num2 = '5';
produto['promo']['product'][0] = '2137';
produto['promo']['title'][0] = 'MONITOR 21.5 LED LG E2250V';
produto['promo']['cat_id'][0] = '162';
produto['promo']['preco'][0] = '0.00';
produto['promo']['preco_desc'][0] = '0.00';
produto['promo']['image'][0] = 'monitor-led-21-5-lg-e2250v-1.jpg';
produto['promo']['product'][1] = '1629';
produto['promo']['title'][1] = 'Pendrive Kingston 4GB USB 2.0 DTI/4GB';
produto['promo']['cat_id'][1] = '18';
produto['promo']['preco'][1] = '0.00';
produto['promo']['preco_desc'][1] = '0.00';
produto['promo']['image'][1] = 'pen4gb.jpg';
produto['promo']['product'][2] = '1607';
produto['promo']['title'][2] = 'Impressora HP Laserjet Color 3600N';
produto['promo']['cat_id'][2] = '110';
produto['promo']['preco'][2] = '0.00';
produto['promo']['preco_desc'][2] = '0.00';
produto['promo']['image'][2] = 'hp3600n.jpg';
produto['promo']['product'][3] = '2156';
produto['promo']['title'][3] = 'PLACA DE VÍDEO 2GB GTS450 128BITS DDR3 PCIE GEFORCE ';
produto['promo']['cat_id'][3] = '23';
produto['promo']['preco'][3] = '0.00';
produto['promo']['preco_desc'][3] = '0.00';
produto['promo']['image'][3] = '';
produto['promo']['product'][4] = '2110';
produto['promo']['title'][4] = 'MEMORIA 2GB DDR3 1333Mhz KINGSTON';
produto['promo']['cat_id'][4] = '15';
produto['promo']['preco'][4] = '110.00';
produto['promo']['preco_desc'][4] = '99.00';
produto['promo']['image'][4] = 'imgcaf6li1d.jpg';
lanca_num = '5';
lanca_num2 = '5';
lanca_num3 = '5';
produto['lanca']['product'][0] = '1623';
produto['lanca']['title'][0] = 'X - Consulte outros modelos!';
produto['lanca']['cat_id'][0] = '206';
produto['lanca']['preco'][0] = '0.00';
produto['lanca']['image'][0] = '1185287491consulte.jpg';
produto['lanca']['product'][1] = '1629';
produto['lanca']['title'][1] = 'Pendrive Kingston 4GB USB 2.0 DTI/4GB';
produto['lanca']['cat_id'][1] = '18';
produto['lanca']['preco'][1] = '0.00';
produto['lanca']['image'][1] = 'pen4gb.jpg';
produto['lanca']['product'][2] = '1604';
produto['lanca']['title'][2] = 'Impressora Lexmark E250D';
produto['lanca']['cat_id'][2] = '110';
produto['lanca']['preco'][2] = '0.00';
produto['lanca']['image'][2] = 'lexmarke250d.jpg';
produto['lanca']['product'][3] = '2157';
produto['lanca']['title'][3] = 'PLACA MAE GIGABYTE Z68MA-D2H-B3 DDR3 LGA 1155';
produto['lanca']['cat_id'][3] = '24';
produto['lanca']['preco'][3] = '0.00';
produto['lanca']['image'][3] = 'z68.jpg';
produto['lanca']['product'][4] = '1624';
produto['lanca']['title'][4] = 'X - Consulte outros modelos!';
produto['lanca']['cat_id'][4] = '110';
produto['lanca']['preco'][4] = '0.00';
produto['lanca']['image'][4] = '1185287586consulte.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);
}
}