// JavaScript Document



function autoIframe(frameId) {
	try{
		frame = document.getElementById(frameId);
		innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document;
		objToResize = (frame.style) ? frame.style : frame;
		objToResize.height = innerDoc.body.scrollHeight + 10;
	}
	catch(err) {
		window.status = err.message;
	}
}


/*function redimensiona() {
	
	document.getElementById('iframeMenuLat').style.height = '1px';
	docHeight = iframeMenuLat.document.body.scrollHeight;
	alert(docHeight);
	document.getElementById('iframeMenuLat').style.height = docHeight + 'px';
}*/


txtOtrasSols_es = 'Existen otras soluciones adaptadas a sus necesidades. Para m&aacute;s informaci&oacute;n contacte con nuestro Departamento T&eacute;cnico-Comercial.';

txtOtrasSols_en = 'Other solutions adapted to their needs exist. For more information get in touch with our technician-commercial department.';

txtDptoTecnico_es = 'Para más información, contacte con nuestro Servicio Técnico- Comercial.';

txtDptoTecnico_en = 'Get in touch with our Technical-Commercial Service for more information.';

indiceProdsNutri_es = 'PRODUCTOS NUTRICIONALES&gt;  <a href="nutriplantSupreme_es.html">Abonos Solubles NPK</a> | <a href="abonosFoliares_es.html">Abonos Foliares</a> | <a href="correctOligo_es.html">Correctores de Oligoelementos</a> | <a href="correctOrg_es.html">Correctores Org&aacute;nicos</a> | <a href="actBioest_es.html">Activadores y Estimulantes</a>';

indiceProdsNutri_en = 'NUTRITIONAL PRODUCTS&gt;  <a href="nutriplantSupreme_en.html">Soluble fertilizers N.P.K.</a> | <a href="abonosFoliares_en.html">Foliar Fertilizers</a> | <a href="correctOligo_en.html">Trace-elements Correctors</a> | <a href="correctOrg_en.html">Organic Correctors</a> | <a href="actBioest_en.html">Activators and Stimulants</a>';



function despliegaMenuLat() {
	
	doc = iframeMenuLat.document;
			
	doc.getElementById(tabla).style.display = 'block';
			
//	document.getElementById('iframeMenuLat').document.getElementById('tablaTurbsBalt').style.display = 'block';
		
//	doc.getElementById(apartado).style.background = '#FF6600';
	doc.getElementById(subapartado).style.background = '#FF6600';
	doc.getElementById(subapartado).style.fontWeight = 'bold';
}

function coloreaApartadoMenuLat(color) {
	
	doc = iframeMenuLat.document;
			
	doc.getElementById(subapartado).style.background = color;
	doc.getElementById(subapartado).style.fontWeight = 'bold';
}

function incrustaFlash(ruta, ancho, alto, transp) {
	
	document.write('<div class="flash">');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + ancho + '" height="' + alto + '">');
      document.write('<param name="movie" value="' + ruta + '" />');
      document.write('<param name="quality" value="high" />');
	  if(transp) {
	  	document.write('<param name="wmode" value="transparent">');
		document.write('<embed src="' + ruta + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + ancho + '" height="' + alto + '" wmode="transparent"></embed>');
	  }
	  else
     	 document.write('<embed src="' + ruta + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + ancho + '" height="' + alto + '"></embed>');
    document.write('</object>');
	document.write('</div>');
	
	
}

function traduce(idioma) {
	if(idioma != 'ct' && idioma != 'fr')
		location.href = location.href.substring(0, location.href.lastIndexOf('_') + 1) + idioma + location.href.substring(location.href.lastIndexOf('.'), location.href.length);
}
































