//Chequeo de Usuarios Registrados
var bIsNotUser = ((getCookieValue("orgnickp")==''||getCookieValue("orgnickp")==null||getCookieValue("orgnickp")=='0') && getCookieValue("member")!='1');
if (bIsNotUser){
	//nothing
}
else{
	if(getCookieValue("oasLoConoce")=='Y'){
		// ya lo conoce
		}else{
			document.write("<scr" + "ipt src='http://oas.adservingml.com/RealMedia/ads/adstream.cap?c=REG_MCO&dv=1&e=180d&s=1'></scr" + "ipt>");
			setCookie("oasLoConoce","Y",179);
		} // fin del Segundo if
}
//Fin chequeo


var today = new Date();
var day = today.getDate();
var month = today.getMonth()+1;
var year = today.getFullYear();
var newMonth;

function setExpireMonth() {
	if (month == 12) {
		newMonth = 3;
	}	else if (month == 11) {
		newMonth = 2;
	} else if (month == 10) {
		newMonth = 1;
	} else {
		newMonth = month + 3;
	}		
}

	
var ml1 = getCookieValue("ml1");
if ( ml1 != null && ( ml1 == '1' || ml1 == '2' ) ) {
	var newYear = year+1;
	document.write("<scr" + "ipt src='http://oas.adservingml.com/RealMedia/ads/Creatives/mercadolibre/includes/wc.php?COOKIEID=1MCO="+ml1+"&COOKIEEXP="+newYear+"-"+month+"-"+day+"'></scr" + "ipt>");	
	setCookie("ml1","",-1);
} else if ( ml1 != null ) {
		document.write("<scr" + "ipt src='http://oas.adservingml.com/RealMedia/ads/Creatives/mercadolibre/includes/wc.php?COOKIEID=1MCO=N&COOKIEEXP="+year+"-"+month+"-"+day+"'></scr" + "ipt>");
		setCookie("ml1","",-1);	
}


setExpireMonth();

var ml2 = getCookieValue("ml2");
if ( ml2 != null ) {
	document.write("<scr" + "ipt src='http://oas.adservingml.com/RealMedia/ads/Creatives/mercadolibre/includes/wc.php?COOKIEID=2MCO="+ml2+"&COOKIEEXP="+year+"-"+newMonth+"-"+day+"'></scr" + "ipt>");
	setCookie("ml2","",-1);
}

var ml3 = getCookieValue("ml3");
if ( ml3 != null ) {
	document.write("<scr" + "ipt src='http://oas.adservingml.com/RealMedia/ads/Creatives/mercadolibre/includes/wc.php?COOKIEID=3MCO="+ml3+"&COOKIEEXP="+year+"-"+newMonth+"-"+day+"'></scr" + "ipt>");
	setCookie("ml3","",-1);
}


//Chequeo de Posiciones
var OAS_listpos = "";
var OAS_query = "";

OASpos = 'Top,Right,Right2,Right3,Left,Top1,x30,Bottom';
OASposArr = OASpos.split(",");

for(i=0; i < OASposArr.length; i++){
	if( document.getElementById("oas" + OASposArr[i].toUpperCase()) != null ){
		if(OAS_listpos != ""){
			OAS_listpos += ",";
		}
		OAS_listpos += OASposArr[i];
	}
}
//Fin chequeo

//Seteo de variables
OAS_sitepage = 'ML_COLOMBIA/HC/1798';
/* Esta variable se está usando exclusivamente para MClics!: De todas maneras se detalla cuál es su contenido por si puede ser útil para otro:
		Si se está navegando por categorías, es la categ navegada, si es por búsqueda, se levanta la primera del qcat. */
var categID = '1798'; /* El path hasta llegar a la categ primera del qcat (o la categ navegada) */
var toks = categID.split('/'); 
categID = toks[toks.length-1]; /* Acá queda la última del path levantado */

var OASposToShow = new Array();
var OASposToShow2 = new Array();
if (window.searchQuery != undefined) {
	OAS_query = appendQcatFilters(searchQuery);
}


//Funciones Mostrar 1
function OASmostrarTOP(){
	if( !isGoogleAds() ){
		OASposToShow[OASposToShow.length] = "oasTOP";
		OAS_AD('Top');
	}
}

function OASmostrarBOTTOM(){
	if(document.getElementById("oasBOTTOM") == null) return;
	OASposToShow[OASposToShow.length] = "oasBOTTOM";
	OAS_AD('Bottom');
}

function OASmostrarRIGHT3(){
	if(document.getElementById("oasRIGHT3") == null) return;
	OASposToShow[OASposToShow.length] = "oasRIGHT3";
	OAS_AD('Right3');
}

function OASmostrarX01(){
	if(document.getElementById("oasX01") == null) return;
	OAS_AD('x01');
}

function isGoogleAds(){
	return (window.googleAds != undefined && window.googleAds);
}
//Fin Mostrar 1

//Funciones Mostrar 2
function OASmostrarRIGHT(){
	if(document.getElementById("oasRIGHT") == null) return;
	OASposToShow2[OASposToShow2.length] = "oasRIGHT";
	OAS_AD('Right');
}
function OASmostrarRIGHT2(){
	if(document.getElementById("oasRIGHT2") == null) return;
	OASposToShow2[OASposToShow2.length] = "oasRIGHT2";
	OAS_AD('Right2');
}
function OASmostrarLEFT(){
	if(document.getElementById("oasLEFT") == null) return;
	OASposToShow2[OASposToShow2.length] = "oasLEFT";
	OAS_AD('Left');
}
function OASmostrarTOP1(){
	if(document.getElementById("oasTOP1") == null) return;
	OASposToShow2[OASposToShow2.length] = "oasTOP1";
	OAS_AD('Top1');
}
function OASmostrarX30(){
	if(document.getElementById("oasX30") == null) return;
	OASposToShow2[OASposToShow2.length] = "oasX30";
	OAS_AD('x30');
}
//Fin Mostrar 2

//Funciones de Inicio
function OASstart(){
	if (document.all) window.attachEvent('onload', setPos);
	else window.addEventListener('load', setPos, false);
}

function setPos() {
	for(i=0; i < OASposToShow.length; i++){
		document.getElementById(OASposToShow[i]).appendChild(document.getElementById(OASposToShow[i]+"src"));
    document.getElementById(OASposToShow[i]+"src").style.display='inline';
  }
}

function OASstart2(){
	if (document.all) window.attachEvent('onload', setPos2);
	else window.addEventListener('load', setPos2, false);
}

function setPos2() {
	for(i=0; i < OASposToShow2.length; i++){
		document.getElementById(OASposToShow2[i]).appendChild(document.getElementById(OASposToShow2[i]+"src"));
    document.getElementById(OASposToShow2[i]+"src").style.display='inline';
  }
}
<!--Gen:1-->
