<!--


var n;
var ie;

function mouseDown(e) {

	if (parseInt(navigator.appVersion)>3) {
		var clickType=1;
		if (navigator.appName=="Netscape") clickType=e.which;
		else clickType=event.button;
		if (clickType!=1) {
			if(event.srcElement.id=='ImagenPrincipal' ){
				alert("Toda la obra fotográfica, \ntextos y códigos HTML son propiedad intelectual de esta compañia.");
			}
		}
	}
	return true;
}


if (parseInt(navigator.appVersion)>3) {
	document.onmousedown = mouseDown;
 	if (navigator.appName=="Netscape") 
  		document.captureEvents(Event.MOUSEDOWN);
}

if(document.layers){
	n=1;
	ie=0;
}
    
if(document.all){
	n=0;
	ie=1;
}
        
scrollLimit = -2600
scrollContentShown = "elem1"
scrollLimitvi = -2600
scrollLimitvd = -2600
scrollContentShownvi = "capaDocumentos"
scrollContentShownvd = "capaEnlaces"

scrollLimitC1 = -2600
scrollContentShownC1 = "capa1Interior"
scrollLimitC2 = -2600
scrollContentShownC2 = "capa2Interior"
scrollLimitC3 = -2600
scrollContentShownC3 = "capa3Interior"


function scrollvC1(direction) {
	
	//alert(document.getElementById('pruebatabla').offsetHeight);
	//alert(document.getElementById('prueba').offsetHeight);
	//alert(document.getElementById('prueba2').offsetHeight);
	//alert(document.getElementById('prueba3').offsetHeight);
	var top;

    //scrollActive = 1
    if (scrollActive) {

		if (n) { 
		  top = eval("document.principal.document.capa1.document." + scrollContentShownC1 + ".top")
		 }
		if (ie) { 
		  top = eval(scrollContentShownC1 + ".style.pixelTop") 
		}
		
		
	
		if (direction == "arriba" && top < 0) {             
			var inc = 3   
			if (n) 
				eval("document.principal.document.capa1.document." + scrollContentShownC1 + ".top += inc")
			if (ie) 
				eval(scrollContentShownC1 + ".style.pixelTop += inc")
			
			setTimeout("scrollvC1('arriba')",20)
		}
	
		if (direction == "abajo" && top > scrollLimitC1) {  
			var inc = -3 
			if (n) 
				eval("document.principal.document.capa1.document." + scrollContentShownC1 + ".top += inc")
			if (ie) 
				eval(scrollContentShownC1 + ".style.pixelTop += inc")
			setTimeout("scrollvC1('abajo')",20)
		}
	}
}

function scrollvC2(direction) {
	
	var top;

    //scrollActive = 1
    if (scrollActive) {

		if (n) { 
		  top = eval("document.principal.document.capa2.document." + scrollContentShownC2 + ".top")
		 }
		if (ie) { 
		  top = eval(scrollContentShownC2 + ".style.pixelTop") 
		}
		
		
	
		if (direction == "arriba" && top < 0) {             
			var inc = 3   
			if (n) 
				eval("document.principal.document.capa2.document." + scrollContentShownC2 + ".top += inc")
			if (ie) 
				eval(scrollContentShownC2 + ".style.pixelTop += inc")
			
			setTimeout("scrollvC2('arriba')",20)
		}
	
		if (direction == "abajo" && top > scrollLimitC2) {  
			var inc = -3 
			if (n) 
				eval("document.principal.document.capa2.document." + scrollContentShownC2 + ".top += inc")
			if (ie) 
				eval(scrollContentShownC2 + ".style.pixelTop += inc")
			setTimeout("scrollvC2('abajo')",20)
		}
	}
}

function scrollvC3(direction) {
	
	var top;

    //scrollActive = 1
    if (scrollActive) {

		if (n) { 
		  top = eval("document.principal.document.capa3.document." + scrollContentShownC3 + ".top")
		 }
		if (ie) { 
		  top = eval(scrollContentShownC3 + ".style.pixelTop") 
		}
		
		
	
		if (direction == "arriba" && top < 0) {             
			var inc = 3   
			if (n) 
				eval("document.principal.document.capa3.document." + scrollContentShownC3 + ".top += inc")
			if (ie) 
				eval(scrollContentShownC3 + ".style.pixelTop += inc")
			
			setTimeout("scrollvC3('arriba')",20)
		}
	
		if (direction == "abajo" && top > scrollLimitC3) {  
			var inc = -3 
			if (n) 
				eval("document.principal.document.capa3.document." + scrollContentShownC3 + ".top += inc")
			if (ie) 
				eval(scrollContentShownC3 + ".style.pixelTop += inc")
			setTimeout("scrollvC1('abajo')",20)
		}
	}
}

function scroll(direction) {


    //scrollActive = 1
    if (scrollActive) {

    if (n) 
      var top = eval("document.principal.document.elementos.document." + scrollContentShown + ".left")
    if (ie) 
	
      var top = eval(scrollContentShown + ".style.pixelLeft") 

    if (direction == "izquierda" && top < 0) {             
      var inc = 10   
      if (n) 
        eval("document.principal.document.elementos.document." + scrollContentShown + ".left += inc")
          if (ie) 
        eval(scrollContentShown + ".style.pixelLeft += inc")

          setTimeout("scroll('izquierda')",20)
        }

        if (direction == "derecha" && top > scrollLimit) {  
          var inc = -10  
          if (n) 
         eval("document.principal.document.elementos.document." + scrollContentShown + ".left += inc")
          if (ie) 
        eval(scrollContentShown + ".style.pixelLeft += inc")

          setTimeout("scroll('derecha')",20)
        }
    }
}


function scrollvi(direction) {
	
	var top;

    //scrollActive = 1
    if (scrollActive) {

		if (n) { 
		  top = eval("document.principal.document.capaAdjuntos.document." + scrollContentShownvi + ".top")
		 }
		if (ie) { 
		  top = eval(scrollContentShownvi + ".style.pixelTop") 
		}
		
		
	
		if (direction == "arriba" && top < 0) {             
			var inc = 3   
			if (n) 
				eval("document.principal.document.capaAdjuntos.document." + scrollContentShownvi + ".top += inc")
			if (ie) 
				eval(scrollContentShownvi + ".style.pixelTop += inc")
			
			setTimeout("scrollvi('arriba')",20)
		}
	
		if (direction == "abajo" && top > scrollLimitvi) {  
			var inc = -3 
			if (n) 
				eval("document.principal.document.capaAdjuntos.document." + scrollContentShownvi + ".top += inc")
			if (ie) 
				eval(scrollContentShownvi + ".style.pixelTop += inc")
			setTimeout("scrollvi('abajo')",20)
		}
	}
}

function scrollvd(direction) {
	
	var top;

    //scrollActive = 1
    if (scrollActive) {

		if (n) { 
		  top = eval("document.principal.document.capaAdjuntos.document." + scrollContentShownvd + ".top")
		 }
		if (ie) { 
		  top = eval(scrollContentShownvd + ".style.pixelTop") 
		}
		
			
		if (direction == "arriba" && top < 0) {             
			var inc = 3  
			if (n) 
				eval("document.principal.document.capaAdjuntos.document." + scrollContentShownvd + ".top += inc")
			if (ie) 
				eval(scrollContentShownvd + ".style.pixelTop += inc")
			
			setTimeout("scrollvd('arriba')",20)
		}
	
		if (direction == "abajo" && top > scrollLimitvd) {  
			var inc = -3  
			if (n) 
				eval("document.principal.document.capaAdjuntos.document." + scrollContentShownvd + ".top += inc")
			if (ie) 
				eval(scrollContentShownvd + ".style.pixelTop += inc")
			setTimeout("scrollvd('abajo')",20)
		}
	}
}

function scrollChange(which,limit) {
    if (n) {
       eval("document.principal.document.elementos.document." + scrollContentShown + ".visibility = 'hide'")
       eval("document.principal.document.elementos.document." + which + ".visibility = 'show'")
    }

    if (ie) {
       eval(scrollContentShown + ".style.visibility = 'hidden'")
       eval(which + ".style.visibility = 'visible'")
    }

    scrollContentShown = which
    scrollLimit = limit
}

function showobj(showobj) {
        if (n) eval("document." + showobj + ".visibility = 'show'")
        if (ie) eval(showobj + ".style.visibility = 'visible'")
}
function hideobj(hideobj) {
        if (n) eval("document." + hideobj + ".visibility = 'hide'")
        if (ie) eval(hideobj + ".style.visibility = 'hidden'")
}

function VerCapa(numero) {
	
		document.getElementById('capaMenu').style.visibility='Visible';	
		document.getElementById('capaMenu').style.zIndex=13;
		document.getElementById('CapaGeneral').style.zIndex=12;
		document.getElementById('capasecciones').style.zIndex=12;
    
 
		document.getElementById('capa1').style.visibility='hidden';
		document.getElementById('capa2').style.visibility='hidden';
		document.getElementById('capa3').style.visibility='hidden';
		document.getElementById('capa'+numero).style.visibility='visible';

		document.getElementById('CapaGeneral').style.visibility='hidden';
		document.getElementById('FrameCapaGeneral').style.visibility='hidden';	
		document.getElementById('capasecciones').style.visibility='hidden';
		document.getElementById('framecapasecciones').style.visibility='hidden';	

    document.getElementById('lblCapa1').style.backgroundColor  = "#000000";
    document.getElementById('lblCapa2').style.backgroundColor  = "#000000";
    document.getElementById('lblCapa3').style.backgroundColor  = "#000000";
    document.getElementById('lblCapa1').style.color = "#ffeeee";
    document.getElementById('lblCapa2').style.color = "#ffeeee";
    document.getElementById('lblCapa3').style.color = "#ffeeee";

    //document.getElementById('lblCapa'+numero).style.backgroundColor = "#E7B51F";
    document.getElementById('lblCapa'+numero).style.backgroundColor = "#E29116";
    
    document.getElementById('lblCapa'+numero).style.color = "#666666";
    document.getElementById('capaMenu').style.visibility='visible';	
	

}



function VerEmision() {

	try {
	document.getElementById('capa1').style.visibility='hidden';
	document.getElementById('capa2').style.visibility='hidden';
	document.getElementById('capa3').style.visibility='hidden';
	} catch(e) {
	
	}	
		
	//document.getElementById('capaMenu').style.visibility='hidden';		
	document.getElementById('capasecciones').style.visibility='Visible';
	document.getElementById('capaMenu').style.zIndex=11;
	document.getElementById('framecapasecciones').style.visibility='Visible';	

}

function VerPrincipal() {
	
	document.getElementById('capaMenu').style.visibility='Visible';		
	try{
	document.getElementById('capa1').style.visibility='visible';
	document.getElementById('capa2').style.visibility='hidden';
	document.getElementById('capa3').style.visibility='hidden';
	} catch(e) {
	
	
	}	

}




function VerBuscador() {


	try {
	document.getElementById('capa1').style.visibility='hidden';
	document.getElementById('capa2').style.visibility='hidden';
	document.getElementById('capa3').style.visibility='hidden';
	}  catch(e) { }
	
	document.getElementById('CapaGeneral').style.visibility='Visible';
	document.getElementById('CapaGeneral').style.zIndex='20';
	document.getElementById('FrameCapaGeneral').style.visibility='Visible';
	try {
	//document.getElementById('capaMenu').style.visibility='Visible';	
	document.getElementById('elementos').style.visibility='hidden';
	}  catch(e) { }
	
	
	document.getElementById('FrameCapaGeneral').src ='Buscador2_B.asp?MULTICANAL=MOT';
	

}





var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{
			string: navigator.userAgent,
			subString: "Chrome",
			identity: "Chrome"
		},
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari",
			versionSearch: "Version"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};

BrowserDetect.init();





//-->