// JavaScript Document
      
function busqueda_ml(formpalabra)
         {
          if (formpalabra.palabra.value == "")
                    window.open("http://pmstrk.mercadolivre.com.br/jm/PmsTrk?tool=284145&go=http://www.mercadolivre.com.br");
                 else
                    window.open("http://pmstrk.mercadolivre.com.br/jm/PmsTrk?tool=284145&go=http://www.mercadolivre.com.br/jm/search?as_display_type=G$$noQCat=Y$$as_price_min=10$$as_order_id=MAS_OFERTADOS$$as_filtro_id=MPAGO$$as_word=" +
                                escape(formpalabra.palabra.value.replace(/\+/g,'%2B').replace(/\"/g,'%22')) , "result");
                    return false;
			   
}

function busqueda_ml_ar(formpalabra)
         {
          if (formpalabra.palabra.value == "")
                    window.open("http://pmstrk.mercadolibre.com.ar/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.ar");
                 else
                    window.open("http://pmstrk.mercadolibre.com.ar/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.ar/jm/search?as_display_type=G$$noQCat=Y$$as_price_min=10$$as_order_id=MAS_OFERTADOS$$as_filtro_id=MPAGO$$as_word=" +
                                escape(formpalabra.palabra.value.replace(/\+/g,'%2B').replace(/\"/g,'%22')) , "result");
                    return false;
			   
}

function busqueda_ml_co(formpalabra)
         {
          if (formpalabra.palabra.value == "")
                    window.open("http://pmstrk.mercadolibre.com.co/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.co");
                 else
                    window.open("http://pmstrk.mercadolibre.com.co/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.co/jm/search?as_display_type=G$$noQCat=Y$$as_price_min=10$$as_order_id=MAS_OFERTADOS$$as_filtro_id=MPAGO$$as_word=" +
                                escape(formpalabra.palabra.value.replace(/\+/g,'%2B').replace(/\"/g,'%22')) , "result");
                    return false;
			   
}

function busqueda_ml_cl(formpalabra)
         {
          if (formpalabra.palabra.value == "")
                    window.open("http://pmstrk.mercadolibre.cl/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.cl");
                 else
                    window.open("http://pmstrk.mercadolibre.cl/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.cl/jm/search?as_display_type=G$$noQCat=Y$$as_price_min=10$$as_order_id=MAS_OFERTADOS$$as_filtro_id=MPAGO$$as_word=" +
                                escape(formpalabra.palabra.value.replace(/\+/g,'%2B').replace(/\"/g,'%22')) , "result");
                    return false;
			   
}

function busqueda_ml_ec(formpalabra)
         {
          if (formpalabra.palabra.value == "")
                    window.open("http://pmstrk.mercadolibre.com.ec/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.ec");
                 else
                    window.open("http://pmstrk.mercadolibre.com.ec/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.ec/jm/search?as_display_type=G$$noQCat=Y$$as_price_min=10$$as_order_id=MAS_OFERTADOS$$as_filtro_id=MPAGO$$as_word=" +
                                escape(formpalabra.palabra.value.replace(/\+/g,'%2B').replace(/\"/g,'%22')) , "result");
                    return false;
			   
}

function busqueda_ml_pe(formpalabra)
         {
          if (formpalabra.palabra.value == "")
                    window.open("http://pmstrk.mercadolibre.com.pe/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.pe");
                 else
                    window.open("http://pmstrk.mercadolibre.com.pe/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.pe/jm/search?as_display_type=G$$noQCat=Y$$as_price_min=10$$as_order_id=MAS_OFERTADOS$$as_filtro_id=MPAGO$$as_word=" +
                                escape(formpalabra.palabra.value.replace(/\+/g,'%2B').replace(/\"/g,'%22')) , "result");
                    return false;
			   
}

function busqueda_ml_mx(formpalabra)
         {
          if (formpalabra.palabra.value == "")
                    window.open("http://pmstrk.mercadolibre.com.mx/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.mx");
                 else
                    window.open("http://pmstrk.mercadolibre.com.mx/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.mx/jm/search?as_display_type=G$$noQCat=Y$$as_price_min=10$$as_order_id=MAS_OFERTADOS$$as_filtro_id=MPAGO$$as_word=" +
                                escape(formpalabra.palabra.value.replace(/\+/g,'%2B').replace(/\"/g,'%22')) , "result");
                    return false;
		   
}

function busqueda_ml_ve(formpalabra)
         {
          if (formpalabra.palabra.value == "")
                    window.open("http://pmstrk.mercadolibre.com.ve/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.ve");
                 else
                    window.open("http://pmstrk.mercadolibre.com.ve/jm/PmsTrk?tool=284145&go=http://www.mercadolibre.com.ve/jm/search?as_display_type=G$$noQCat=Y$$as_price_min=10$$as_order_id=MAS_OFERTADOS$$as_filtro_id=MPAGO$$as_word=" +
                                escape(formpalabra.palabra.value.replace(/\+/g,'%2B').replace(/\"/g,'%22')) , "result");
                    return false;
			   
}

/*
if (window.screen.width >= 1024) {
document.write ('<div style="position:absolute; margin-left: 828px; _margin-left: 822px; margin-top: 0px; _margin-top: 0px; background: url(../shopping_xhtml/img/publi_1024.gif) no-repeat center top; padding-top: 10px;"><iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:168px; height:630px; margintop:0;" src="http://www.pegacifras.com.br/shop/ban_10024.html"></iframe></div>');
}
*/

//if (screen.width >=1024) {document.write('<div id="all_1024">');}
//-->


function mostra(evt, url){
    if(navigator.appName == 'Netscape'){ x =(evt.layerX); y=(evt.layerY);}
     else { x = (evt.x+document.body.scrollLeft); y = (evt.y+document.body.scrollTop);}
    var obj = document.getElementById('title');
    if(obj != undefined){
        obj.style.visibility = 'visible';
        obj.style.top = y-70;
        obj.style.left = x+20;
        obj.innerHTML = "<img src='"+url+"' name='image'>";
    }
}
function tira(){
    var obj = document.getElementById('title');
if(obj != undefined) obj.style.visibility = 'hidden';

}


var auto = true;
var imgatual = 0;

function imgant() {
	auto = false;
	imgatual--;
	imgmuda();
}
function imgpro() {
	auto = false;
	imgatual++;
	imgmuda();
}
function imgmuda() {
	if (imgatual == imgtotal) imgatual = 0; 
	else if (imgatual < 0) imgatual = imgtotal - 1;

	document.foto.src = imagens[imgatual].src;
}
function imgauto() {
	if (auto) {
		if (imagens[(((imgatual + 1) == imgtotal) ? 0 : (imgatual + 1))].complete) {
			imgatual++;
			imgmuda();
		}
		setTimeout ("imgauto()", 2000);
	}
}

function pop_fc(vURL) {
if (navigator.appName == "Netscape") { sec=window.open(vURL,'_blank','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,height=457,width=321,top=0,left=0'); window.sec.focus(); } 
else { window.open(vURL,'_blank','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,height=457,width=321,top=0,left=0'); }
}

function pop_is(vURL) {
if (navigator.appName == "Netscape") { sec=window.open(vURL,'_blank','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,height=465,width=321,top=0,left=0'); window.sec.focus(); }
else { window.open(vURL,'_blank','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,height=465,width=321,top=0,left=0'); }
}




function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function ss(t){window.status=t;return true;}