﻿
function CargaIngles()
  {
//	alert("llamando");  
    pag = self.location.href;
	Iact="p";
    if (pag.indexOf("espaniol")!=-1) {Iact="espaniol"};	
    if (pag.indexOf("ingles")!=-1) {Iact="ingles"};	
	pag01 = pag.substring(0,pag.indexOf(Iact));
	//8 se suma es la longitud de espaniol	
	pag02 = pag.substring(pag.indexOf(Iact)+8,pag.length);	
	pag=pag01+"ingles"+pag02;
    if (Iact=="espaniol") {self.location.href=pag;}
	if (Iact=="p") {self.location.href="IndexIn.html"}
  }  

function AltoIframeFormulario() {     
   var Cuerpo=window.frames.Formulario.document.body;
   var Alto=Cuerpo.clientHeight;
   var Marco=document.getElementById("Formulario");  
   Marco.height=Alto;
};


function CargaEspaniol()
  {
    pag = self.location.href;
	Iact="p";
    if (pag.indexOf("espaniol")!=-1) {Iact="espaniol"};	
    if (pag.indexOf("ingles")!=-1) {Iact="ingles"};    	
	pag01 = pag.substring(0,pag.indexOf(Iact));
	//6 se suma es la longitud de ingles
	pag02 = pag.substring(pag.indexOf(Iact)+6,pag.length);	
	pag=pag01+"espaniol"+pag02;
    if (Iact=="ingles") {self.location.href=pag;}
    if (Iact=="p") {self.location.href="Index.html"}
  }
      
var bo_noscript_id = 0;

function isIE() {
  var strBrowser = navigator.userAgent.toLowerCase();
  return (strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 0);
}

function startIeFix() {
  if (isIE()) {
   document.write('<div style="display: none;" id="bo_noscript_id_' + bo_noscript_id + '">');
  }
}

function endIeFix() {
  if (isIE()) {
   document.write('</div>');
   var theObject = document.getElementById("bo_noscript_id_" + bo_noscript_id++);
   theObject.outerHTML = theObject.innerHTML;
  }
}

function escribirpag()
  {
    pag = top.location.href;
    cad1='<input name="Pagina" type="hidden" value="'+pag+'" />';
    document.write(cad1);
  }

function escribiriframe()
  {
    pag = top.location.href;    
    cad1='<iframe name="Formulario" id="Formulario" border="0" onload="AltoIframeFormulario()" frameborder="0" height="300" scrolling="No" width="590"  src="../../../../ComSug-Ap.php?parent=';
    cad2='"></iframe>'    
    document.write(cad1+pag+cad2);
  }
  
function PubRotAmazon125x125A()
  {
      op=Math.floor((Math.random()*7+1)); //desde 1 a 7	 
      cad1='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=amazonvideoondemand&banner=19KNSW35VBKYVRD23Z02&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';
      cad2='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=amazonvideoondemand&banner=1Y1F8N9K2D8307TPWKG2&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad3='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=books&banner=1PBGJ6MX362TVT8X9P82&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad4='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=wireless&banner=1F1MX6Q2GAJVVP30CEG2&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad5='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=computers_accesories&banner=0Q1FJ9TBD13SA09DSMR2&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad6='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=dvd&banner=0MNHJED60HJGNV2ETXG2&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';
      cad7='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=software&banner=0VAG050ZHCP1M0DQC0R2&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
	  switch(op) {
	    case 1 : document.write(cad1);break;
		  case 2 : document.write(cad2);break;
		  case 3 : document.write(cad3);break;
     	case 4 : document.write(cad4);break;
    	case 5 : document.write(cad5);break;
    	case 6 : document.write(cad6);break;
    	case 7 : document.write(cad7);break;
    };				
  }
  
  
  function PubRotAmazon125x125B()
  {
      op=Math.floor((Math.random()*4+1)); //desde 1 a 7	 
     /* cad1='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=software&banner=0EKB16H43VSXSREGP002&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';
      cad2='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=videogames&banner=0Q2WJJ0MSEXZ94KBEZR2&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad3='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=textbooks&banner=0V5YRDJ06EARGSE31YG2&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad4='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=officeschoolsupplies&banner=16DD7GCHQ09XYS0CC582&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad5='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=school&banner=1060N2WGXBPVN6CQAYG2&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad6='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=green&banner=0T62WT1Y8X3X6DQ39K82&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';
      cad7='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=game_downloads&banner=13PTQH69Q2290VF8SR82&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';*/
      cad1='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=holiday&banner=0KE8CHRDBZMRRV77S002&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';
      cad2='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=holiday&banner=0X9490MWWY7CMGAY8G82&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad3='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=holiday&banner=0X9PNJSQ9JC4EK773Y82&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';			
      cad4='<iframe src="http://rcm.amazon.com/e/cm?t=conoce3000-20&o=1&p=21&l=ur1&category=holidaytoylist&banner=0H66TQC4MMMGVNV061G2&f=ifr" width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';      			
	  switch(op) {
	    case 1 : document.write(cad1);break;
		  case 2 : document.write(cad2);break;
		  case 3 : document.write(cad3);break;
     	case 4 : document.write(cad4);break;
    	/*case 5 : document.write(cad5);break;
    	case 6 : document.write(cad6);break;
    	case 7 : document.write(cad7);break;*/
    };				
  }