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] = '1758'; produto['prod']['title'][0] = 'PROCESSADOR INTEL CORE 2 DUO 2.33 GHz 4Mb 64bits BOX 775pin E6550 1333Mhz'; produto['prod']['cat_id'][0] = '112'; produto['prod']['preco'][0] = '0.00'; produto['prod']['image'][0] = '2duo.jpg'; produto['prod']['product'][1] = '459'; produto['prod']['title'][1] = 'MEMÓRIA 2048MB DDR2 800 PC2 5300 (2Gb) - Kingston'; produto['prod']['cat_id'][1] = '15'; produto['prod']['preco'][1] = '0.00'; produto['prod']['image'][1] = '2gb800.jpg'; produto['prod']['product'][2] = '854'; produto['prod']['title'][2] = 'PLACA PCI COM UMA PORTA SERIAL/NAXOS'; produto['prod']['cat_id'][2] = '143'; produto['prod']['preco'][2] = '0.00'; produto['prod']['image'][2] = 'naxos_nx1s_pci.jpg'; produto['prod']['product'][3] = '791'; produto['prod']['title'][3] = 'LEITOR MANUAL DE DOCUMENTOS COM INFRARED / CIS'; produto['prod']['cat_id'][3] = '135'; produto['prod']['preco'][3] = '0.00'; produto['prod']['image'][3] = 'cis_minyscanI.jpg'; produto['prod']['product'][4] = '461'; produto['prod']['title'][4] = 'MEMÓRIA 512MB DDR266 PC2100'; produto['prod']['cat_id'][4] = '15'; produto['prod']['preco'][4] = '0.00'; produto['prod']['image'][4] = 'mem512mbddr266pv2100.png'; promo_num = '5'; promo_num2 = '5'; produto['promo']['product'][0] = '2021'; produto['promo']['title'][0] = 'POSITIVO MOBILE W68'; produto['promo']['cat_id'][0] = '99'; produto['promo']['preco'][0] = '0.00'; produto['promo']['preco_desc'][0] = '1950.00'; produto['promo']['image'][0] = '1240249831positivo_mobile_w68.jpg'; produto['promo']['product'][1] = '1619'; produto['promo']['title'][1] = 'X Consulte outros modelos.'; produto['promo']['cat_id'][1] = '162'; produto['promo']['preco'][1] = '0.00'; produto['promo']['preco_desc'][1] = '0.00'; produto['promo']['image'][1] = 'consulte.jpg'; produto['promo']['product'][2] = '1594'; produto['promo']['title'][2] = 'Monitor Waytec 15 LCD Touch Screen'; produto['promo']['cat_id'][2] = '162'; produto['promo']['preco'][2] = '0.00'; produto['promo']['preco_desc'][2] = '0.00'; produto['promo']['image'][2] = 'waytec.jpg'; produto['promo']['product'][3] = '1623'; produto['promo']['title'][3] = 'X - Consulte outros modelos!'; produto['promo']['cat_id'][3] = '206'; produto['promo']['preco'][3] = '0.00'; produto['promo']['preco_desc'][3] = '0.00'; produto['promo']['image'][3] = '1185287491consulte.jpg'; produto['promo']['product'][4] = '1964'; produto['promo']['title'][4] = 'MONITOR 22 LCD - TELA FINA E PLANA (LG,SAMSUNG OU AOC)'; produto['promo']['cat_id'][4] = '162'; produto['promo']['preco'][4] = '1090.00'; produto['promo']['preco_desc'][4] = '960.00'; produto['promo']['image'][4] = 'aoc22.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] = '1602'; produto['lanca']['title'][1] = 'Impressora Samsung ML-2010'; produto['lanca']['cat_id'][1] = '110'; produto['lanca']['preco'][1] = '0.00'; produto['lanca']['image'][1] = 'samsungml2010.jpg'; produto['lanca']['product'][2] = '1624'; produto['lanca']['title'][2] = 'X - Consulte outros modelos!'; produto['lanca']['cat_id'][2] = '110'; produto['lanca']['preco'][2] = '0.00'; produto['lanca']['image'][2] = '1185287586consulte.jpg'; produto['lanca']['product'][3] = '1612'; produto['lanca']['title'][3] = 'Estabilizador SMS 1000VA µap 5.0'; produto['lanca']['cat_id'][3] = '213'; produto['lanca']['preco'][3] = '0.00'; produto['lanca']['image'][3] = 'sms1kva.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); } }