//******************************************************************//
<!--
// the string that should scroll
var scrlStr = "Elija siempre repuestos KGMUSA ... calidad, rendimiento, durabilidad y precio ... KGMUSA - NEW REPLACEMENT PARTS FOR HEAVY EQUIPMENT"

// the width of the scrolling area
var width = 120;

var strLen = scrlStr.length;
var pos = 1 - width;                // start far enough to the left for only
                                    // one letter to be showing
function scroll(){
    var scroll = "";                // initialize the string to be printed
    pos++;                          // move to the right in the string
    if (pos == strLen)              // start over if the string is done
        pos = 1 - width;            // scrolling

    if (pos<0) {                    // add spaces to beginning if necessary
        for (var i=1; i<=Math.abs(pos); i++)
            scroll = scroll + " ";  
       scroll = scroll + scrlStr.substring(0, width - i + 1);
    }
    else
        scroll = scroll + scrlStr.substring(pos, pos + width);

    window.status = scroll;         // print the string
    setTimeout("scroll()",100);     // recurse after 1/10 of a second
}

//-->

function mmLoadMenus() {
  if (window.mm_menu_Productos) return;
    window.mm_menu_Informacion = new Menu("Informacion",130,20,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFCC33","#626262","#000000","left","middle",5,0,100,-5,7,true,true,true,1,false,false);
    mm_menu_Informacion.addMenuItem("¿Quienes somos?","location='acerca.htm'");
    mm_menu_Informacion.addMenuItem("Nuestros Servicios","location='servicios.htm'");
    mm_menu_Informacion.addMenuItem("Contáctenos","location='contactenos.asp'");
    mm_menu_Informacion.addMenuItem("Pedidos","location='pedidos.htm'");
    mm_menu_Informacion.addMenuItem("Formas de Pago","location='pagos.htm'");
    mm_menu_Informacion.addMenuItem("Garantías","location='garantias.htm'");
    mm_menu_Informacion.fontWeight=""; 		//bold";
    mm_menu_Informacion.hideOnMouseOut=true;
    mm_menu_Informacion.childMenuIcon="arrows.gif";
    mm_menu_Informacion.bgColor='#FFFFFF';
    mm_menu_Informacion.menuBorder=0;
    mm_menu_Informacion.menuLiteBgColor='#FFFFFF';
    mm_menu_Informacion.menuBorderBgColor='';
    mm_menu_Informacion.bgImageUp="";
    mm_menu_Informacion.bgImageOver="";
    
    window.mm_menu_Productos = new Menu("Productos",210,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFCC33","#626262","#000000","left","middle",5,0,100,-5,7,true,true,true,1,false,false);
    mm_menu_Productos.addMenuItem("Componentes de Motor","location='lpMotor.htm'");
    mm_menu_Productos.addMenuItem("Inyección","location='lpInyeccion.htm'");
    mm_menu_Productos.addMenuItem("Hidráulica","location='lpHidraulica.htm'");
    mm_menu_Productos.addMenuItem("Eléctricidad","location='lpElectricidad.htm'");
    mm_menu_Productos.addMenuItem("Frenos","location='lpFrenos.htm'");
    mm_menu_Productos.addMenuItem("Estructuras","location='lpEstructuras.htm'");
    mm_menu_Productos.addMenuItem("Rodamientos","location='lpRodamientos.htm'");
    mm_menu_Productos.addMenuItem("Herrajes","location='lpHerrajes.htm'");
    mm_menu_Productos.addMenuItem("Engranajes","location='lpEngranajes.htm'");
    mm_menu_Productos.addMenuItem("Sellos y Empaquetaduras","location='lpSellos.htm'");
    mm_menu_Productos.addMenuItem("Herramientas","location='lpHerramientas.htm'");
    mm_menu_Productos.addMenuItem("Merchandise Caterpillar®","location='merchandise.htm'");
    mm_menu_Productos.fontWeight="";     //"bold";
    mm_menu_Productos.hideOnMouseOut=true;
    mm_menu_Productos.childMenuIcon="arrows.gif";
    mm_menu_Productos.bgColor='#FFFFFF';
    mm_menu_Productos.menuBorder=0;
    mm_menu_Productos.menuLiteBgColor='#FFFFFF';
    mm_menu_Productos.menuBorderBgColor='';
    mm_menu_Productos.bgImageUp="";
    mm_menu_Productos.bgImageOver="";
  
    mm_menu_Productos.writeMenus();
} // mmLoadMenus()

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

//******************************************************************//
function openContact(url, name)
{	popupWin = window.open(url, name, 'scrollbars,resizable', true);
	popupWin = window.open('mailto:cbenites@epuerto.com?Subject=Ref. KGMUSA Web Site', name, 'scrollbars,resizable,width=400,height=350',true);
}	
//******************************************************************//
function openWindow(url, name) 
{	popupWin = window.open(url,name, "toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=750, height=400");}

function openWindow2(url, name) 
{	popupWin = window.open(url, name, 'toolbar=no,location=no,directories=no,title=no,scrollbars,width=80,height=80',true)}

//******************************************************************//

function sobre(obj) {obj.style.color="#FDCE2E";}

//******************************************************************//

function fuera(obj) {	obj.style.color="white";}

//******************************************************************//

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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 flvFTLS8(){//v1.1
	if (!Array.prototype.push)
	{Array.prototype.push=function()
		{var v1=arguments;
		for(var v2=v1.length-1;v2>=0;v2--)
			{this[this.length]=v1[v2];}return this.length;}}
	if (!Array.prototype.splice)
	{Array.prototype.splice=function()
		{var v1=arguments,v3=new Array(),v4=new Array(),v5=0,v6=v1[0],v7=v1[1];
		for (v5=0;v5<v6;v5++){v3[v3.length]=this[v5];}
		for (v5=v6+v7;v5<this.length;v5++){v3[v3.length]=this[v5];}
		for (v5=0;v5<v7;v5++){v4[v4.length]=this[v6+v5];}this.length=0;
		for (v5=0;v5<v3.length;v5++){this[this.length]=v3[v5];}return v4;}}}

function flvFTLS7(){//v1.1
	var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4;
	v3.TLS6=new Array();
	for (v4=0;v4<v3.TLS4.length;v4++)
	{v3.TLS6.push(v4);}}

function flvFTLS5(){//v1.1
	var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1];
	if (v3&&v3.TLS4){flvFTLS4(v2);
	if (v4>v3.TLS4.length-1)
		{v4=v3.TLS4.length-1;}
	else if (v4<0){v4=0;}
	v3.TLS11=v4;
	if (!v3.TLS9)
	{v3.TLS5=new Image();}
	v3.TLS5.src=v3.TLS4[v4][0];
	flvFTLS3(v2,v4);}}

function flvFTLS6(){//v1.1
	this.style.filter="";}

function flvFTLS4(){//v1.1
	var v1=MM_findObj(arguments[0]);
	if (v1&&v1.TLS4&&v1.TLS2!=null)
		{clearTimeout(v1.TLS2);}}

function flvFTLS3(){//v1.1
	var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5='<div class="slideImage">',v6,v7,v8;
	if (!v3.TLS5.complete)
		{v6="flvFTLS3('"+v2+"',"+v4+")";
		setTimeout(v6,50);return;}
	if (v3.TLS4[v4][1]!="")
//		{v5+='<a href="'+v3.TLS4[v4][1]+'"';
		{v5+="<a href=javascript:openWindow('"+v3.TLS4[v4][1]+"','EMPRESA');"; ////x
//		if (v3.TLS3!=""){v5+=' target="'+v3.TLS3+'"';}
		v5+='>';}
		v5+='<img src="'+v3.TLS5.src+'" border="0" alt="'+unescape(v3.TLS4[v4][2])+'">';
		if (v3.TLS4[v4][1]!="")
			{v5+='</a>';}v5+='</div>';
		if (v3.TLS4[v4][2]!="")
////			{v5+='<div class="slideDesc">'+unescape(v3.TLS4[v4][2])+'</div>';}v7=v3.TLS4[v4][3];
			{v5+='<div class="slideDesc"></div>';}
		v7=v3.TLS4[v4][3];
		if (!v3.TLS1||v7==25)
			{if (document.layers){v3.document.open();
				v3.document.write(v5);
				v3.document.close();}
			else 
				{v3.innerHTML=v5;}}
		else 
			{v3.contentEditable=true;
		if (v3.filters[0]&&v3.filters[0].status==2)
			{v3.filters[0].Stop();}		
		if (v7==0)
			{v8="blendTrans(Duration="+v3.TLS10+")";}
		else 
			{v8="revealTrans(Duration="+v3.TLS10+",Transition="+(v7-1)+")";}
		v3.onfilterchange=flvFTLS6;v3.style.filter=v8;
		v3.filters[0].Apply();
		v3.innerHTML=v5;
		v3.filters[0].Play();
		v3.contentEditable=false;}}

function flvFTLS2(){//v1.1
	var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5=v1[2],v6,v7,v8,v9;
	if (v3&&v3.TLS4){
		flvFTLS4(v2);
		if (v5==0||v3.TLS7==0){
			if (v4==1){
				v6=v3.TLS11+1; 
				if (v6>v3.TLS4.length-1){
					v6=0;
					if (v3.TLS12==0){
						return;}
					}
				}				
		else {v6=v3.TLS11-1;
			if (v6<0){
				v6=v3.TLS4.length-1;
				if (v3.TLS12==0){
					return;}
				}
			}
		}
	else {
		v6=v3.TLS11;
		while (v6==v3.TLS11){
		v8=Math.floor(Math.random()*(v3.TLS6.length));				
			v6=v3.TLS6[v8];
			v9=v3.TLS6.splice(v8,1);
			if (v3.TLS6.length<1){
				flvFTLS7(v2);}
				}
			}
			v3.TLS11=v6;
	if (!v3.TLS9){
		v3.TLS5=new Image();}
	v3.TLS5.src=v3.TLS4[v6][0];
	flvFTLS3(v2,v6);
	if (v5==1){
		v7="flvFTLS2('"+v2+"',"+v4+","+v5+")";
		v3.TLS2=setTimeout(v7,v3.TLS8);}
		}
	}

function flvFTLS1(){//v1.1
// Copyright 2004, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
	var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4,v5,v6,v7=navigator.userAgent.toLowerCase(),v8;
	if (v3){
		flvFTLS8(); v3.TLS8=v1[1]; v5=v1[2]; v3.TLS12=v1[3]; v3.TLS3=v1[4]; v3.TLS10=v1[5]/1000;v3.TLS7=v1[6]; v3.TLS4=new Array();
		for (v6=7;v6<v1.length;v6+=4){
			v3.TLS4[v3.TLS4.length]=new Array(v1[v6],v1[v6+1],unescape(v1[v6+2]),parseInt(v1[v6+3]));
			}
		if (v3.TLS7==1){
			flvFTLS7(v2);v8=v3.TLS6.splice(0,1);
			}
		v3.TLS11=0;
		v3.TLS9=(v7.indexOf("netscape6")!=-1);
		v3.TLS5=new Image();
		v3.TLS5.src=v1[7];
		v3.TLS1=v3.filters&&(v7.indexOf("mac")<0);
		flvFTLS3(v2,0);
		if (v5){
			v4="flvFTLS2('"+v2+"',1,"+v5+")";
			v3.TLS2=setTimeout(v4,v3.TLS8);
			}
		}
	}

//******************************************************************//
function CheckEmail(field)
	{
	var smail, swc, ind1, ind2, ind3, ind4, longitud, puntoI, puntoD;

	var lsmail = field.value.toLowerCase();

	// Caracteres permitidos en una dirección Email
	smail="abcdefghijklmnopqrstuvwxyz.@-_0123456789";

	longitud = field.value.length - 1;	
	ind1 = field.value.indexOf('@');
	ind2 = field.value.indexOf('.');
	ind3 = field.value.lastIndexOf('@');
	ind4 = field.value.lastIndexOf('.');
	puntoI = field.value.charAt(ind1 - 1)
	puntoD = field.value.charAt(ind1 + 1)
	swc = 0;

	if ((ind1 <= 0) || (ind2 <= 0) || (ind3 != ind1) || (ind4 == longitud) || (puntoI == ".") || ((puntoD == ".")) || (ind3 > ind4))
		{swc = 1;}

	if (swc==0)
		{
		for(x=0;x<lsmail.length;x++)
			{
			if ((lsmail.charAt(x) == ".") && (lsmail.charAt(x-1) == "."))
				{swc = 1; break;}
			if (smail.indexOf(lsmail.substr(x,1)) == -1)
				{swc = 1; break;}
			}
		}
	if (swc == 1)
		{return false;}	
	else
		{return true;}
	}

//******************************************************************//
function WorldCounter(field, countfield, maxlimit)
	{
	worldcounter=0; 
	
	for(x=0;x<field.value.length;x++)
		{
		if (field.value.charAt(x) == " " && x == 0)
			{field.value = field.value.substring(0,x-1);}
		if (field.value.charAt(x) == " " && field.value.charAt(x-1) == " ")
			{field.value = field.value.substring(0,x);}
		if (field.value.charAt(x) == " " && field.value.charAt(x-1) != " ")
			{worldcounter++;}
		if (worldcounter > maxlimit - 1)
			{field.value = field.value.substring(0,x); countfield.value = 0;
			alert("Limite permitido: " + maxlimit); field.focus();}
		else 
			{countfield.value = maxlimit - worldcounter;}
		}
	}

//******************************************************************//
function TextCounter(field, countfield, maxlimit)
	{
	for(x=0;x<field.value.length;x++)
		{
		if (field.value.charAt(x) == " " && x == 0)
			{field.value = field.value.substring(0,x-1);}
		if (field.value.charAt(x) == " " && field.value.charAt(x-1) == " ")
			{field.value = field.value.substring(0,x);}
		}
			
	if (field.value.length > maxlimit)
		{field.value = field.value.substring(0,maxlimit); 
		alert("Limite permitido: " + maxlimit); field.focus();}
	else 
		{countfield.value = maxlimit - field.value.length;}
	}


//******************************************************************//
function TextCounterPlus(field, countfield, maxlimit, PUfield, TOTALfield, PBfield)
	{
	var nTotal;
	nTotal=0; 
	
	for(x=0;x<field.value.length;x++)
		{
		if (field.value.charAt(x) == " " && x == 0)
			{field.value = field.value.substring(0,x-1);}
		if (field.value.charAt(x) == " " && field.value.charAt(x-1) == " ")
			{field.value = field.value.substring(0,x);}
		}
			
	if (field.value.length > maxlimit)
		{field.value = field.value.substring(0,maxlimit); 
		alert("Limite permitido: " + maxlimit); field.focus();}
	else 
		{countfield.value = field.value.length;
		nTotal = parseFloat(countfield.value) * parseFloat(PUfield.value);
		nTotal += parseFloat(PBfield.value)
		TOTALfield.value = nTotal;}
	}


//******************************************************************//
function click(e) {
//'' Explorer
if (IE)
if (event.button == 2){
//accion() ;
//return false ;
}

//'' Netscape
if (NS)
if (e.which == 3) {
//accion() ;
//return false ;
}
}

function accion() {
if (IE) alert('©PROYECTA CONSULTORIA\n\nDiseñado y Desarrollado por\n\nCARLOS BENITES\ncbenites@epuerto.com');
return ;
}
var NS = (document.layers) ;
var IE = (document.all) ;
if (NS) document.captureEvents(Event.MOUSEDOWN) ;

document.onmousedown = click ;


