<!--
function chequear(){
	if(buscar.criterio_1.value.length <= 2){
	alert("Debe colocar al menos 3 caracteres para realizar la busqueda de empresa, producto o rubro.");
		buscar.criterio_1.focus();
		return false;
	}else{
		buscar.submit();
		return true;
	}
}

function chequear_buscador(){
	if(buscar.criterio_4.value.length <= 2){
	alert("Debe colocar al menos 3 caracteres para realizar la busqueda de empresa, producto o rubro.");
		buscar.criterio_4.focus();
		return false;
	}else{
		buscar.submit();
		return true;
	}
}


function sobre(src,Color) {
if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = Color;}
}
function fuera(src,Color2) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = Color2;}
}
function pulsar(src) {
if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();}
}
function activar (variable) {
	document.location = variable;
}

function Inicio(){
setVariables();
checkLocation();
MM_preloadImages('/IMAGENES/botones/buscar 2.gif','/IMAGENES/botones index/arte 2.gif','/IMAGENES/botones index/compu2.gif','/IMAGENES/botones index/depor2.gif','/IMAGENES/botones index/edu2.gif','/IMAGENES/botones index/hogar2.gif','/IMAGENES/botones index/moda2.gif','/IMAGENES/botones index/ocio2.gif','/IMAGENES/botones index/oficios2.gif','/IMAGENES/botones index/prof2.gif','/IMAGENES/botones index/salud2.gif','/IMAGENES/botones index/transp+.gif','/IMAGENES/botones index/varios2.gif');
}

// Formateo de FECHAS version 1.1

function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "01"
monthNames[2] = "02"
monthNames[3] = "03"
monthNames[4] = "04"
monthNames[5] = "05"
monthNames[6] = "06"
monthNames[7] = "07"
monthNames[8] = "08"
monthNames[9] = "09"
monthNames[10] = "10"
monthNames[11] = "11"
monthNames[12] = "12"

dayNames = new MakeArray(7)
dayNames[1] = "Domingo"
dayNames[2] = "Lunes"
dayNames[3] = "Martes"
dayNames[4] = "Miércoles"
dayNames[5] = "Jueves"
dayNames[6] = "Viernes"
dayNames[7] = "Sábado"

function Dia_Num(oneDate) {
	var theDay = dayNames[oneDate.getDay() + 1];
	return oneDate.getDate();
}

function Mes_Any(oneDate) {
	var theMonth = monthNames[oneDate.getMonth() + 1];
	var theYear = oneDate.getFullYear();
	return theMonth + " | " + theYear;
}

function Day_Nom(oneDate) {
	var theDay = dayNames[oneDate.getDay() + 1];
	return theDay;
}

function ventanaSecundaria (url) { 
   window.open(url,"ventana","width=350,height=400,scrollbars=YES") 
}
function ventanaMapa (url) { 
   window.open(url,"ventana","width=700,height=525,scrollbars=YES") 
}

function ventanaplano (url) { 
   window.open(url,"ventana","width=800,height=1300,scrollbars=NO") 
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=362,height=430,left = 100,top = 100');");
}

function ventanaplanos (url) { 
   window.open(url,"ventana","width=450,height=675,scrollbars=NO") 
}

function galeria (url) { 
   window.open(url,"ventana","width=800,height=675,scrollbars=NO") 
}

function verImagen (url) { 
   window.open(url,"ventana","width=500,height=400,scrollbars=no") 
}


/* ------------------------------------- FOTOS TOP */

function slideSwitch() {
var $active = $('#slideshow IMG.active');
if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
var $next =  $active.next().length ? $active.next()
: $('#slideshow IMG:first');
$active.addClass('last-active');
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 1000, function() {
$active.removeClass('active last-active');
	});
	}
	$(function() {
setInterval( "slideSwitch()", 3500 );
	});

function fotosSwitch() {
var $active = $('#fotos IMG.active');
if ( $active.length == 0 ) $active = $('#fotos IMG:last');
var $next =  $active.next().length ? $active.next()
: $('#fotos IMG:first');
$active.addClass('last-active');
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 1000, function() {
$active.removeClass('active last-active');
	});
	}
	$(function() {
setInterval( "fotosSwitch()", 3500 );
	});


-->
