function popMapa(){ w = window.open("http://www.manrich.com.br/mapa.php","produto","top=0,scrollbars=yes,left=0,resizable=yes,width=500,height=430"); w.focus(); } function popAtendimento(){ w = window.open('http://www.manrich.com.br/suporte/index.php',"atendimetno","width=250,height=250,scrollbars=yes,left=0,resizable=yes"); w.focus(); } function popWallpaper(tam){ w = window.open('http://www.manrich.com.br/wallpaper.php?tam='+tam,"atendimetno","width=800,height=600,scrollbars=yes,left=0,resizable=yes"); w.focus(); } function popLink(link){ w = window.open('http://www.manrich.com.br/'+link,"link","width=600,height=360,scrollbars=yes,left=0,resizable=yes"); w.focus(); } function popDownloadDesc( id ){ if($('downloadItem_' + id).visible()){ $('downloadItem_' + id).toggle(); }else{ $$('.downloadItemDesc').invoke("hide"); $('downloadItem_' + id).toggle(); new Effect.ScrollTo( $('downloadItem_' + id) , {queue: 'end', offset: -150, duration: 0.3}); } } function categoria(_cat){ if($('cat'+_cat).visible()){ $('cat'+_cat).hide() }else{ $$('.listaEstampas').invoke('hide'); new Ajax.Updater($( 'cat'+_cat ),'http://www.manrich.com.br/_ajax.php?acao=atualizaCategoria&id='+_cat, { evalScripts: true, onComplete: function(transport) { new Effect.toggle($( 'cat'+_cat )); myLightbox.updateImageList(); } }); } /* var arrayPageSize = getPageSize(); l = (arrayPageSize[0]/2)-400; t = (arrayPageSize[1]/2)-300; w = window.open('http://www.manrich.com.br/categoria.php?id='+_cat,"categorias","width=800,height=600,scrollbars=yes,left="+l+",top="+t+",resizable=no"); w.focus();*/ } function flashPutHref( _v ){ } function menu(_div){ y = parseInt(-$('content').offsetTop) - parseInt($('div'+_div).offsetTop); new Effect.MoveBy( $('content'),y, 0); pageTracker._trackPageview(_div); } function menuDir( dir ){ if(dir == 'up') y = +100; if( dir == 'down') y = -100; new Effect.MoveBy( $('content'),y, 0); } var valid; function sendWindowForm(){ if(valid.validate()){ new Effect.Appear($('emailResponse')); $('emailResponse').update('Enviando...'); new Ajax.Updater($('emailResponse'),'http://www.manrich.com.br/_ajax.php?'+$('formulario').serialize()); } return false; }