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] = '1224'; produto['prod']['title'][0] = 'MINI FONE DE OUVIDO COM MICROFONE'; produto['prod']['cat_id'][0] = '154'; produto['prod']['preco'][0] = '10.00'; produto['prod']['image'][0] = 'Minifone.jpg'; produto['prod']['product'][1] = '42'; produto['prod']['title'][1] = 'CONVERSOR USB/SERIAL'; produto['prod']['cat_id'][1] = '70'; produto['prod']['preco'][1] = '70.00'; produto['prod']['image'][1] = '561.jpg'; produto['prod']['product'][2] = '1775'; produto['prod']['title'][2] = 'Fita Citizen 1269'; produto['prod']['cat_id'][2] = '139'; produto['prod']['preco'][2] = '4.50'; produto['prod']['image'][2] = '15898.jpg'; produto['prod']['product'][3] = '1383'; produto['prod']['title'][3] = 'Memória 512MB DDR Kingston'; produto['prod']['cat_id'][3] = '15'; produto['prod']['preco'][3] = '198.00'; produto['prod']['image'][3] = ''; produto['prod']['product'][4] = '300'; produto['prod']['title'][4] = 'CART. MULTILASER MJ-4076 PRETO RECON.'; produto['prod']['cat_id'][4] = '89'; produto['prod']['preco'][4] = '53.70'; produto['prod']['image'][4] = '11554169467.gif'; promo_num = '5'; promo_num2 = '5'; produto['promo']['product'][0] = '1776'; produto['promo']['title'][0] = 'Toner Kyocera TK-17'; produto['promo']['cat_id'][0] = '68'; produto['promo']['preco'][0] = '119.00'; produto['promo']['preco_desc'][0] = '119.00'; produto['promo']['image'][0] = 'tk-17.jpg'; produto['promo']['product'][1] = '1343'; produto['promo']['title'][1] = 'MULTIFUNCIONAL HP C3180 (Impressora+Copiadora+Scanner) 22ppm 1200dpi'; produto['promo']['cat_id'][1] = '76'; produto['promo']['preco'][1] = '395.00'; produto['promo']['preco_desc'][1] = '375.00'; produto['promo']['image'][1] = 'c3180.jpg'; produto['promo']['product'][2] = '1721'; produto['promo']['title'][2] = 'C9362wl 92 5ml Preto'; produto['promo']['cat_id'][2] = '85'; produto['promo']['preco'][2] = '48.00'; produto['promo']['preco_desc'][2] = '45.00'; produto['promo']['image'][2] = '92.jpg'; produto['promo']['product'][3] = '1627'; produto['promo']['title'][3] = 'Pendrive Kingston 2GB USB 2.0 DTI/2GB'; produto['promo']['cat_id'][3] = '18'; produto['promo']['preco'][3] = '68.00'; produto['promo']['preco_desc'][3] = '0.00'; produto['promo']['image'][3] = 'pen2gb.jpg'; produto['promo']['product'][4] = '1729'; produto['promo']['title'][4] = 'Multifuncional HP 4355'; produto['promo']['cat_id'][4] = '0'; produto['promo']['preco'][4] = '499.00'; produto['promo']['preco_desc'][4] = '476.00'; produto['promo']['image'][4] = 'impressora_.jpg'; lanca_num = '4'; lanca_num2 = '4'; lanca_num3 = '4'; produto['lanca']['product'][0] = '1722'; produto['lanca']['title'][0] = 'C9361wl 93 5ml Tricolor'; produto['lanca']['cat_id'][0] = '85'; produto['lanca']['preco'][0] = '58.00'; produto['lanca']['image'][0] = '93.jpg'; produto['lanca']['product'][1] = '1721'; produto['lanca']['title'][1] = 'C9362wl 92 5ml Preto'; produto['lanca']['cat_id'][1] = '85'; produto['lanca']['preco'][1] = '48.00'; produto['lanca']['image'][1] = '92.jpg'; produto['lanca']['product'][2] = '1563'; produto['lanca']['title'][2] = 'PLACA MAE ASUS P5VD2-X CORE 2 DUO DDR2 PCI-E'; produto['lanca']['cat_id'][2] = '24'; produto['lanca']['preco'][2] = '288.00'; produto['lanca']['image'][2] = 'p5vd2x.gif'; produto['lanca']['product'][3] = '1048'; produto['lanca']['title'][3] = 'GRAVADOR DE DVD - DVDRW PRETO'; produto['lanca']['cat_id'][3] = '158'; produto['lanca']['preco'][3] = '115.00'; produto['lanca']['image'][3] = 'phpThumb.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); } }