//FUNCION CAMBIO DE COLOR EN RESULTADOS 
function cambia_color(src, evnt, backColor) {

	if (evnt == '1') {
		src.style.backgroundColor='#FAFAEF'; 
		src.style.cursor='hand';
	} else {
		src.style.backgroundColor= backColor;
	}
		
}


//FUNCION CAMBIO DE COLOR EN RESULTADOS 
function cambia_color2(src, evnt, backColor) {

	if (evnt == '1') {
		src.style.backgroundColor='#F5DB1F'; 
		src.style.cursor='hand';
	} else {
		src.style.backgroundColor= backColor;
	}
		
}



// ABRE VENTANAS
        function OpenWin(URL) 
        { 
	aWindow=window.open(URL,"Large","toolbar=no,width=750,height=630,status=no,scrollbars=yes,resize=no,menubars=no");
        }

        function openWinphoto(URL) 
        { 
	aWindow=window.open(URL,"Large","toolbar=no,width=621,height=600,status=no,scrollbars=yes,resize=no,menubars=no");
        }


// GRABAR EN FAVORITOS
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}


// COLORES DE MENU

function m1(menuElement, cL) {

	if(cL == 1) {
		menuElement.style.backgroundColor='#C83300';
	} else if(cL == 2) { 
		menuElement.style.backgroundColor='blue';
	} else {
		menuElement.style.backgroundColor='yellow';
	}

	menuElement.style.cursor='hand'; 

	if(cL != 3) {
		menuElement.style.color='#FFFFFF';
	}
	
}

function m2(menuElement) {
	
	menuElement.style.backgroundColor=''; 
	menuElement.style.color='#000000';
	
}

function m3(menuLink) {

	location.href = menuLink;

}

function po(page)
{ 
   w=window.open(page,'se','scrollbars=yes,width=600,height=450,resizable=no');
   w.focus();
}

function po2(page)
{
   w=window.open(page,'se','scrollbars=yes,width=650,height=500,resizable=yes');
   w.focus();
}

function po3(page)
{
   w=window.open(page,'se','scrollbars=yes,width=567,height=480,resizable=yes');
   w.focus();
	
}

function po4(page)
{
   w=window.open(page,'se','scrollbars=no,width=400,height=360,resizable=no');
   w.focus();
	
}


function printdeal(page)
{ 
   w=window.open(page,'se','scrollbars=no,width=650,height=500,resizable=no');
   w.focus();
}

