// JavaScript Document
function abreflash(src,wi,he){
	document.write('<oject type="application/x-shockwave-flash" data="' + src + '" width="' + wi + '" height="' + he + '">');
	document.write('<param name="movie" value="' + src + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="/' + src + '" width="' + wi + '" height="' + he + '" quality="high" wmode="transparent"  pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
}
function centraLayers(){
  
  if( typeof( window.innerWidth ) == 'number' ) {
	// Non-IE
	myWidth = window.innerWidth;
	myHeight = window.innerHeight;
	document.getElementById('Layer1').style.left = ((myWidth - 740)/2) + 580 + 'px';	
  	document.getElementById('Layer1').style.top = (mozillaT + 2) + 'px';	
	document.getElementById('Layer2').style.left = ((myWidth - 740)/2) + 350 + 'px';	
  	document.getElementById('Layer2').style.top = (mozillaT + 5) + 'px';	
  } else if( document.documentElement &&
	  ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	// IE 6+ in 'standards compliant mode'
	myWidth = document.documentElement.clientWidth;
	myHeight = document.documentElement.clientHeight;
	document.getElementById('Layer1').style.left = ((myWidth - 740)/2) + 580 + 'px';	
  	document.getElementById('Layer1').style.top = (ieT + 2) + 'px';
	document.getElementById('Layer2').style.left = ((myWidth - 740)/2) + 350 + 'px';	
  	document.getElementById('Layer2').style.top = (ieT + 5) + 'px';	
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	// IE 4 compatible
	myWidth = document.body.clientWidth;
	myHeight = document.body.clientHeight;
	document.getElementById('Layer1').style.left = ((myWidth - 740)/2) +580 + 'px';
  	document.getElementById('Layer1').style.top = (ieT + 2) + 'px';	
	document.getElementById('Layer2').style.left = ((myWidth - 740)/2) +350 + 'px';
  	document.getElementById('Layer2').style.top = (ieT + 5) + 'px';	
  }
}		

function centraLayer3(){
  
  if( typeof( window.innerWidth ) == 'number' ) {
	// Non-IE
	myWidth = window.innerWidth;
	myHeight = window.innerHeight;
	document.getElementById('Layer3').style.left = ((myWidth - 740)/2) + 45 + 'px';	
  	document.getElementById('Layer3').style.top = '125px';	

  } else if( document.documentElement &&
	  ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	// IE 6+ in 'standards compliant mode'
	myWidth = document.documentElement.clientWidth;
	myHeight = document.documentElement.clientHeight;
	document.getElementById('Layer3').style.left = ((myWidth - 740)/2) + 45 + 'px';	
  	document.getElementById('Layer3').style.top = '125px';

  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	// IE 4 compatible
	myWidth = document.body.clientWidth;
	myHeight = document.body.clientHeight;
	document.getElementById('Layer3').style.left = ((myWidth - 740)/2) + 45 + 'px';
  	document.getElementById('Layer3').style.top = '125px';	

  }
}	
function centraModulos(){
  
  if( typeof( window.innerWidth ) == 'number' ) {
	// Non-IE
	myWidth = window.innerWidth;
	myHeight = window.innerHeight;
	document.getElementById('modulos').style.left = ((myWidth - 740)/2) + 125 + 'px';	
  	document.getElementById('modulos').style.top = '107px';	
	document.getElementById('carac').style.left = ((myWidth - 740)/2) + 25 + 'px';	
  	document.getElementById('carac').style.top = '107px';
	document.getElementById('tarifas').style.left = ((myWidth - 740)/2) + 325 + 'px';	
  	document.getElementById('tarifas').style.top = '107px';		

  } else if( document.documentElement &&
	  ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	// IE 6+ in 'standards compliant mode'
	myWidth = document.documentElement.clientWidth;
	myHeight = document.documentElement.clientHeight;
	document.getElementById('modulos').style.left = ((myWidth - 740)/2) + 125 + 'px';	
  	document.getElementById('modulos').style.top = '115px';
	document.getElementById('carac').style.left = ((myWidth - 740)/2) + 25 + 'px';	
  	document.getElementById('carac').style.top = '115px';	
	document.getElementById('tarifas').style.left = ((myWidth - 740)/2) + 325 + 'px';	
  	document.getElementById('tarifas').style.top = '115px';		

  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	// IE 4 compatible
	myWidth = document.body.clientWidth;
	myHeight = document.body.clientHeight;
	document.getElementById('modulos').style.left = ((myWidth - 740)/2) + 125 + 'px';
	document.getElementById('modulos').style.top = '107px';	
	document.getElementById('carac').style.left = ((myWidth - 740)/2) + 25 + 'px';	
  	document.getElementById('carac').style.top = '107px';	
	document.getElementById('tarifas').style.left = ((myWidth - 740)/2) + 325 + 'px';	
  	document.getElementById('tarifas').style.top = '107px';		
  }
  CentraContacto();
}	

function volver(){
	history.back();
}
function CentraContacto()
{
	if( typeof( window.innerWidth ) == 'number' )
	{
		// Non-IE
		myWidth = window.innerWidth;
		document.getElementById('contact').style.left = (myWidth/2) + 270 + 'px';
		document.getElementById('contact').style.top = '115px';	
	}
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
		// IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		document.getElementById('contact').style.left = (myWidth/2) + 270 + 'px';
		document.getElementById('contact').style.top = '115px';	
	}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
	{
		// IE 4 compatible
		myWidth = document.body.clientWidth;
		document.getElementById('contact').style.left = (myWidth/2) + 270 + 'px';
		document.getElementById('contact').style.top = '115px';	
	}
}