// JavaScript Document

function temporal()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="984" height="599">\n');
    document.write('<param name="movie" value="images/temporal.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="wmode" value="transparent">\n');
	document.write('<embed src="images/temporal.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="984" height="599" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}

function home(idioma)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="984" height="599">\n');
    document.write('<param name="movie" value="images/home_' + idioma + '.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="wmode" value="transparent">\n');
	document.write('<embed src="images/home_' + idioma + '.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="984" height="599" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}

function cabecera()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="984" height="96">\n');
    document.write('<param name="movie" value="images/cabecera.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="wmode" value="transparent">\n');
	document.write('<embed src="images/cabecera.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="984" height="96" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}

function pie()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="790" height="28">\n');
    document.write('<param name="movie" value="images/pie.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="wmode" value="transparent">\n');
	document.write('<embed src="images/pie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="790" height="28" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}

function banner(seccion)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="285" height="371">\n');
    document.write('<param name="movie" value="images/banner' + seccion + '.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="images/banner' + seccion + '.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="285" height="371"></embed>\n');
    document.write('</object>\n');
}

function contenido(seccion,idioma)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="371" height="371">\n');
    document.write('<param name="movie" value="images/contenido' + seccion + '_' + idioma + '.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="images/contenido' + seccion + '_' + idioma + '.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="371" height="371"></embed>\n');
    document.write('</object>\n');
}

function menu(idioma)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="984" height="26">\n');
    document.write('<param name="movie" value="images/menu_' + idioma + '.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="wmode" value="transparent">\n');
	document.write('<embed src="images/menu_' + idioma + '.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="984" height="26" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}

function noticias(idioma)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="700" height="371">\n');
    document.write('<param name="movie" value="images/noticias_' + idioma + '.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="images/noticias_' + idioma + '.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="371"></embed>\n');
    document.write('</object>\n');
}

function lineas(idioma)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="700" height="371">\n');
    document.write('<param name="movie" value="images/lineas_' + idioma + '.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="images/lineas_' + idioma + '.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="371"></embed>\n');
    document.write('</object>\n');
}

function linea(idioma,codigo)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="700" height="371">\n');
    document.write('<param name="movie" value="images/contenidolinea_' + idioma + '.swf?cod=' + codigo + '">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="images/contenidolinea_' + idioma + '.swf?cod=' + codigo + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="371"></embed>\n');
    document.write('</object>\n');
}

function distribucion(idioma)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="700" height="371">\n');
    document.write('<param name="movie" value="images/distribuciones_' + idioma + '.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="images/distribuciones_' + idioma + '.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="371"></embed>\n');
    document.write('</object>\n');
}

PositionX = 100;
PositionY = 100;
defaultWidth  = 500;
defaultHeight = 500;

var AutoClose = true;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=yes,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=yes,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Espere...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
//writeln('if (document.images[0].height>500){')
//writeln('		height = 500;')
//writeln('}')
//writeln('else{')
writeln('		height = 100-(document.body.clientHeight-document.images[0].height);')
//writeln('}')
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["UfO"].width;');writeln('window.innerHeight=document.images["UfO"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="UfO" src='+imageURL+'></body></html>');
close();		
}}
