var cCastellano='0';
var cIngles='1';
var cPortugues='2';

function openURL(wPag){
var wPath='';
var wDoc=document.URL;
if (wDoc.indexOf('sitio2')==-1)
{
wPath='sitio2/';
}
var wAbrir=wPath+wPag;
window.open(wAbrir, "_parent", "");
}


function oldopenURL(wPag){
   window.open(wPag, "_parent", "");
}
//*****

function opensector(cual){
	file = "CanchadeBoca360-foto.htm?ipix;boca"+cual+"_hires.ipx;boca "+cual;
	file = "CanchadeBoca360-foto.htm?qtvr;boca"+cual+"_qtvr.mov;boca "+cual;
	win1 = window.open(file,"qtvr","");
}


var progwinfoto360;
function openVentanaFoto360(wIpix, wLenguaje) {	
 		closeVentanaFoto360();
		switch (wIpix){
		case 'oficina':
	        progwinfoto360 = window.open('020505/shfoto360.htm?oficina;oficina01.ipx;Oficina;' + wLenguaje, 'Oficina', 'height=375,width=406,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0');
			break;
		case 'confiteria':
	        progwinfoto360 = window.open('020505/shfoto360qvr.htm?richmond;confiz_qtvr.mov;Confiterķa Richmond;' + wLenguaje, 'Richmond', 'height=480,width=640,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0');
			break;
		case 'boca':
	        progwinfoto360 = window.open('020505/boca/index.htm', 'Boca', 'height=540,width=500,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0');
			break;
		case 'sia':
		default:
	        progwinfoto360 = window.open('020505/shfoto360qvr.htm?sia;SIA_Oficina_vrqt.mov;SIA Interactive;' + wLenguaje, 'SIAI', 'height=480,width=640,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0');
			break;	
		}
}
function closeVentanaFoto360() {
    if (progwinfoto360 != null && window.close) {
        progwinfoto360.close();
    }
}
//*****



//Obtencion de link para menues reiterados en diferentes puntos de la estructura del site (ej:juegos internet, promoman)

function GetLink(wParam){

	if (gLenguaje==cCastellano)	{
		var axPag=gcurrpag.substring (0, gcurrpag.length-4);
	}
	else
	{
		var axPag=gcurrpageng.substring (0, gcurrpageng.length-4);
	}

	var axLink=axPag + wParam +  '.htm';
	//return axPag;
	window.location.href=axLink;
}





// apertura de ventana con juego para internet
var progwinjuego;
function openVentanaJuego(wParam,wTitVentana) {	
	closeVentanaJuego();
	progwinjuego = window.open(wParam, wTitVentana, 'height=560,width=780,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0');		
}

function closeVentanaJuego() {
    if (progwinjuego != null && window.close) {
        progwinjuego.close();
    }
}

function openVentanaJuegoScroll(wParam,wTitVentana) {	
	closeVentanaJuego();
	progwinjuego = window.open(wParam, wTitVentana, 'height=560,width=780,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0');		
}

// cierre de guias y navegacion a la pagina actual
function closeGuia() {		
	if (parent.frames['main'].gLenguaje==cIngles){
		parent.location=(parent.frames['main'].gcurrpageng);			
	}
	else
	{
		parent.location=(parent.frames['main'].gcurrpag);			
	}
}

// mostrar video
var progwinvideo;

function shVideo(wVideo,wModo,wLenguaje){
	closeVideo()
	var wTamanio='';
		switch (wModo){
		case 'audio':
        	wTamanio='width=250 height=130';
        	wTamanio='width=310 height=180';
			break;
		case 'wmv':
			//220x166 310x400 
			wTamanio='width=310 height=400';
			break
		case 'wmv320':
			//320x240  350x 430
			wTamanio='width=350 height=475';
			break

		case 'wmv352':
			//352x288  
			wTamanio='width=382 height=520';
			break

		case 'quicktime':
		default:
			wTamanio='width=310 height=315';
			break;

		}
	wTamanio='width=770,height=550';

	progwinvideo = window.open("../films/shvideo.htm?" + wVideo +';'+ wModo +';'+ wLenguaje, "shVideo", wTamanio);
}


function shVideo2(wVideo,wModo,wLenguaje){
	closeVideo()
	var wTamanio='';
		switch (wModo){
		case 'audio':
        	wTamanio='width=250 height=130';
        	wTamanio='width=310 height=180';
			break;
		case 'wmv':
			//220x166 310x400 
			wTamanio='width=310 height=400';
			break
		case 'wmv320':
			//320x240  350x 430
			wTamanio='width=350 height=475';
			break

		case 'quicktime':
		default:
			wTamanio='width=310 height=315';
			break;

		}

	wTamanio='width=770,height=540';

	progwinvideo = window.open("films/shvideo.htm?" + wVideo +';'+ wModo +';'+ wLenguaje, "shVideo", wTamanio);
}

function closeVideo() {
    if (progwinvideo != null && window.close) {
        progwinvideo.close();
    }
}


var progwinfoto;
function shFoto(wFoto,wDesc, wOrientacion){
	var wTamanio='';
	var wVentana='';
	var incx=20;
	var incy=43;
	var incy=73;

	closeVentanaFoto();

		switch (wOrientacion){
		case 'v':
			//375x500
			wWidth = 375 + incx; 
			wHeight= 500 + incy;	
			break;

		case 'h210':
			// 320x210 coca penales
			wWidth = 320 + incx; 
			wHeight= 210 + incy;	
			break;

		case 'h240':
			// 240x320 
			wWidth = 240 + incx; 
			wHeight= 320 + incy;	
			break;

		case 'h320':
			// 320x240 coca penales
			wWidth = 320 + incx; 
			wHeight= 240 + incy;	
			break;

		case 'h320cua':
			// 320x320 omint
			wWidth = 320 + incx; 
			wHeight= 320 + incy;	
			break;

		case 'h349':
			// 349x242 coca penales
			wWidth = 349 + incx; 
			wHeight= 242 + incy;	
			break;

		case 'h444':
			// 640x444 RV			
			wWidth = 640 + incx; 
			wHeight= 444 + incy;	
			break;

		case 'h630':
			// 630x430 RV			
			wWidth = 630 + incx; 
			wHeight= 430 + incy;	
			break;

		case 'h640x430':
			// 640x430 RV			
			wWidth = 640 + incx; 
			wHeight= 430 + incy;	

			break;
		case 'h600':
			// 600x370 family fun house
			wWidth = 600 + incx; 
			wHeight= 370 + incy;	
			break;

		case 'h360':
			// 360x480 family fun house
			wWidth = 360 + incx; 
			wHeight= 480 + incy;	
			break;

		case 'h320x480':
			// 320x480 
			wWidth = 320 + incx; 
			wHeight= 480 + incy;	
			break;

		case 'h480':
			// 480x480 foto cuadrada grande. ej: futbolcenter
			wTamanio='width=488 height=518';
			wWidth = 480 + incx; 
			wHeight= 480 + incy;	
			break;

		case 'h420':
			// 420x420 foto cuadrada grande. podios
			wWidth = 420 + incx; 
			wHeight= 420 + incy;	
			break;

		case 'h388':
			// 388x289 foto cuadrada grande. podios
			wWidth = 388 + incx; 
			wHeight= 289 + incy;	
			break;

		case 'v420':
			// 640 x 420 captura flash
			wWidth = 640 + incx; 
			wHeight= 420 + incy;	
			break;

		case 'pano':
			// n x 570 panoramica
			wWidth = 780 + incx; 
			wHeight= 590 + incy;	
            wHeight= wHeight  + ',scrollbars=1';

		case 'pano2':
			// n x 570 panoramica
			wWidth = 780 + incx; 
			wHeight= 240 + incy;	

            wHeight= wHeight  + ',scrollbars=1';
			break;

		case 'pano300':
			// n x 300 panoramica
			wWidth = 780 + incx; 
			wHeight= 300 + incy;	

            wHeight= wHeight  + ',scrollbars=1';
			break;

  		case 'h700':
			// fotos grandes     700 x 525
			wWidth = 720 + incx; 
			wHeight= 525 + incy;	
            wHeight= wHeight  + ',scrollbars=1';
			break;

		case 'h':

		default:
			// 640x480
			wWidth = 680 + incx; 
			wHeight= 500 + incy;	
			break;
		}

	wTamanio='width=' + wWidth + ', height=' + wHeight ;	
	
	progwinfoto = window.open("shfoto.htm?" + wFoto +';'+ wDesc, 'shfoto', wTamanio);
//	progwinfoto = window.open("shfoto.htm?" + wFoto +';'+ gcurrpag, 'shfoto', wTamanio);
	
}

function Newsletter_shFoto(wFoto,wDesc, wOrientacion){
	var wTamanio='';
	var wVentana='';
	var incx=20;
	var incy=43;
	closeVentanaFoto();

		switch (wOrientacion){
		case 'v':
			//375x500
			wWidth = 375 + incx; 
			wHeight= 500 + incy;	
			break;

		case 'h210':
			// 320x210 coca penales
			wWidth = 320 + incx; 
			wHeight= 210 + incy;	
			break;

		case 'h240':
			// 240x320 
			wWidth = 240 + incx; 
			wHeight= 320 + incy;	
			break;

		case 'h320':
			// 320x240 coca penales
			wWidth = 320 + incx; 
			wHeight= 240 + incy;	
			break;

		case 'h320cua':
			// 320x320 omint
			wWidth = 320 + incx; 
			wHeight= 320 + incy;	
			break;

		case 'h349':
			// 349x242 coca penales
			wWidth = 349 + incx; 
			wHeight= 242 + incy;	
			break;

		case 'h444':
			// 640x444 RV			
			wWidth = 640 + incx; 
			wHeight= 444 + incy;	
			break;

		case 'h630':
			// 630x430 RV			
			wWidth = 630 + incx; 
			wHeight= 430 + incy;	
			break;

		case 'h640x430':
			// 640x430 RV			
			wWidth = 640 + incx; 
			wHeight= 430 + incy;	

			break;
		case 'h600':
			// 600x370 family fun house
			wWidth = 600 + incx; 
			wHeight= 370 + incy;	
			break;

		case 'h360':
			// 360x480 family fun house
			wWidth = 360 + incx; 
			wHeight= 480 + incy;	
			break;

		case 'h320x480':
			// 320x480 
			wWidth = 320 + incx; 
			wHeight= 480 + incy;	
			break;

		case 'h480':
			// 480x480 foto cuadrada grande. ej: futbolcenter
			wTamanio='width=488 height=518';
			wWidth = 480 + incx; 
			wHeight= 480 + incy;	
			break;

		case 'h420':
			// 420x420 foto cuadrada grande. podios
			wWidth = 420 + incx; 
			wHeight= 420 + incy;	
			break;

		case 'h388':
			// 388x289 foto cuadrada grande. podios
			wWidth = 388 + incx; 
			wHeight= 289 + incy;	
			break;

		case 'v420':
			// 640 x 420 captura flash
			wWidth = 640 + incx; 
			wHeight= 420 + incy;	
			break;

		case 'pano':
			// n x 570 panoramica
			wWidth = 780 + incx; 
			wHeight= 590 + incy;	
            wHeight= wHeight  + ',scrollbars=1';

		case 'pano2':
			// n x 570 panoramica
			wWidth = 780 + incx; 
			wHeight= 240 + incy;	

            wHeight= wHeight  + ',scrollbars=1';
			break;

		case 'pano300':
			// n x 300 panoramica
			wWidth = 780 + incx; 
			wHeight= 300 + incy;	

            wHeight= wHeight  + ',scrollbars=1';
			break;

  		case 'h700':
			// fotos grandes     700 x 525
			wWidth = 720 + incx; 
			wHeight= 525 + incy;	
            wHeight= wHeight  + ',scrollbars=1';
			break;

		case 'h':

		default:
			// 640x480
			wWidth = 680 + incx; 
			wHeight= 500 + incy;	
			break;
		}

	wTamanio='width=' + wWidth + ', height=' + wHeight ;	
	
	progwinfoto = window.open("../shfoto.htm?" + wFoto +';'+ wDesc, 'shfoto', wTamanio);
	
}

function closeVentanaFoto() {
    if (progwinfoto != null && window.close) {
        progwinfoto.close();
    }
}


var progwinzoom;
function shZoom(wFoto,wDesc, wOrientacion){
	var wTamanio='';
	var wVentana='';

	closeVentanaZoom();

		switch (wOrientacion){

		case 'h400':
			// 400x400 foto cuadrada grande. ej: futbolcenter
			wTamanio='width=408, height=468';
			break;

		case 'h':
		default:
			// 640x480
			wTamanio='width=648, height=518';	
			break;
		}

	progwinzoom = window.open("shZoom.htm?" + wFoto +';'+ wDesc, 'shzoom', wTamanio);
}


function closeVentanaZoom() {
    if (progwinzoom != null && window.close) {
        progwinzoom.close();
    }
}
//---------------------------------  utilizado en pienext.htm
function shGo(wPag){
	window.open(wPag, "_self", "");
}

function shln(wtxt){document.writeln(wtxt);}

function shl(wtxt){document.write(wtxt);}

function shPieNext(){
	var wAncho=480;
	var wCols=4;
//	if (wPagPrev==''){wCols-=1}
//	if (wPagNext==''){wCols-=1}
	if (wPagUp==''){wCols-=1}
	if (wPagDn==''){wCols-=1}
	var wAnchoCol=wAncho/wCols;
	wCols=wCols+2;

	shl('<CENTER>');
	shl('<TABLE bgcolor=#ffffff border=0 cellPadding=0 cellSpacing=0 width=490>');
	shl('<tr>');
	shl('<td colspan='+ wCols + ' align=center height=1><img src="SIAgral/lincel490-1.gif" width="490" height="1" border="0"></td></tr>');	
	shl('<td colspan='+ wCols + ' align=center height=7><img src="SIAgral/space.gif" width="490" height="1" border="0"></td></tr>');	

	shl('<TR height=26 valign=top>');
	shl('<td width=5><img src="SIAgral/space.gif" width="1" height="1" border="0"></td>');


		shl('<td width='+ wAnchoCol +' align=left >');
	if (wPagPrev != ''){
		shl('<a align=center class=contactopag href=javascript:shGo(wPagPrev)><img src="SIAgral/flechi-prev.gif" width=25 height=25 border=0>');
		shl('<br>'+ wPagPrevTxt +'</a>');
	}
		shl('</td>');
	
	if (wPagUp != ''){
		shl('<td width=' + wAnchoCol + ' align="center" >');
		shl('<a align=center class=contactopag href=javascript:shGo(wPagUp)><img src="SIAgral/flechi-up.gif" width=25 height=25 border=0>');
		shl('<br>'+ wPagUpTxt +'</a>');
		shl('</td>');
	}
	if (wPagDn != ''){
		shl('<td width=' + wAnchoCol + ' align=center >');
		shl('<a align=center class=contactopag href=javascript:shGo(wPagDn)><img src="SIAgral/flechi-dn.gif" width=25 height=25 border=0>');
		shl('<br>'+ wPagDnTxt +'</a>');
		shl('</td>');
	}
	
		shl('<td width='+ wAnchoCol +' align=right>');
	if (wPagNext != ''){
		shl('<a class=contactopag href=javascript:shGo(wPagNext)><img src="SIAgral/flechi-next.gif" width=25 height=25 border=0>');
		shl('<br>'+ wPagNextTxt +'</a>');
	}
		shl('</td>');
	

	shl('<td width=5><img src="SIAgral/space.gif" width="1" height="1" border="0"></td>');
	shl('</TR>');
	shl('<tr><td width=490 colspan='+ wCols +' height=5><img src="SIAgral/space.gif" width="1" height="1" border="0"></td></tr>');
	shl('</TABLE>');
	shl('</CENTER>');
}
//---------------------------------  FIN utilizado en pienext.htm

// apertura de barra de navegacion
var progwinnavegacion;

function openNavegacion2(){
	closeNavegacion();
	var x=250;
	var y=580;
	var wFile = 'sitio2/shnavegacion.htm';
	var tamanio='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0, maximizable=0'
	tamanio=tamanio+', width='+x+', height='+y;
	progwinnavegacion = window.open(wFile,"navegador",tamanio);
}
function openNavegacion(){
	closeNavegacion();
	var x=250;
	var y=580;
	var wFile = 'shnavegacion.htm';
	var tamanio='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0, maximizable=0'
	tamanio=tamanio+', width='+x+', height='+y;
	progwinnavegacion = window.open(wFile,"navegador",tamanio);
}
function closeNavegacion() {
    if (progwinnavegacion != null && window.close) {
        progwinnavegacion.close();
    }
}

//---- Busqueda en google
function fBusquedaGoogle()
{
	if (frmGoogle.q2.value.length>0)
	{
		frmGoogle.q.value="site:www.siainteractive.com " + frmGoogle.q2.value;
		return true;
	}
	return false;
}


//----- Formato Moneda
<!-- Original:  Cyanide_7 (leo7278@hotmail.com) -->
<!-- Web Site:  http://www7.ewebcity.com/cyanide7 -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));

//evitar centavos--- return (((sign)?'':'-') + '$' + num + '.' + cents);
return (((sign)?'':'-') + '$ ' + num );
}

//---- Ventana de Video Player

function GenerateFlash8Object( DivID, ObjectID, WIDTH, HEIGHT, FILE)
{
	the_loc= document.location+"";	
	var wComando = 'autoplay';
    var wValor = 'false';

	if (the_loc.indexOf('?')>0){	

		wComando= the_loc.substring (the_loc.indexOf('?')+1, the_loc.length);
		wValor= wComando.substring (wComando.indexOf('=')+1, the_loc.length);
		wComando=wComando.substring (0,wComando.indexOf('='));
	
		if (wComando!='autoplay') {
			wComando='autoplay';
			wValor='false';
		}
		else
		{
			if (wValor!='true') {
				wValor='false';
			}
		}
	}
	
//shl('autoplay=' + wValor);

	var BGCOLOR = "#FFFFFF";

if (wValor == 'true')
	wValor = 1;
else
	wValor = 0;


//        '   <param name="autoplay" value="' + wValor + '" />' +
//shl('	param name="movie" value="' + FILE + '?wautoplay=12345"');	
  var d = document.getElementById(DivID);

d.innerHTML =
		'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"' +
		'id="' + ObjectID + '" name="' + ObjectID + '" width="' + WIDTH + '" height="' + HEIGHT + '"' +
		'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">' +
		'	<param name="movie" value="' + FILE + '&wautoplay=' + wValor + '"/>' +		
		'	<param name="allowScriptAccess" value="sameDomain" />' +
		'	<param name="quality" value="high" />' +
		'	<param name="bgcolor" value="' + BGCOLOR + '" />' +
        '   <param name="wmode" value="transparent" />' +
		'	<embed' +
		'		src="' + FILE + '&wautoplay=' + wValor + '"' + 		
		'		type="application/x-shockwave-flash"' +
		'		pluginspage="http://www.macromedia.com/go/getflashplayer"' +
		'		width="' + WIDTH + '" height="' + HEIGHT + '"' +
		'		allowscriptaccess="sameDomain"' +
        '       wmode="transparent"' + 
		'		quality="high"' +
		'		bgcolor="' + BGCOLOR + '"' +
		'		name="' + ObjectID + '">' +
		'	</embed>' +
		'</object>';
		
/*d.innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' +
'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="600"' +
'id="flvplayer" align="middle">' +
'<param name="allowScriptAccess" value="sameDomain" />' +
'<param name="movie" value="flvplayer.swf?archivo=nedi.flv" /><param name="quality" value="high" />' +
'<param name="bgcolor" value="#FFFFFF" /><embed src="flvplayer.swf?archivo=nedi.flv" quality="high" bgcolor="#FFFFFF"' +
'width="800" height="600" name="flvplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"' +
'pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
'</object>		';*/
}


function playFlashVideo2(nroID, width, height, flvFile)
{
var DivID="video_" + nroID;
var ObjectID="flvplayer_" + nroID;
var file="flvplayer.swf?archivo=films/" + flvFile;
	/*width=width+7;*/
	shl('<DIV  class=videoplayer style="width:'+ width +'px;" id=' + DivID + '></DIV>'); 
    shl('<SCRIPT language=JavaScript type=text/javascript>');
	shl('GenerateFlash8Object("' + DivID + '","' + ObjectID + '",' + width + ',' + height + ',"' + file + '")');
	shl('</SCRIPT>');

}

function playFlashVideo(nroID, width, height, flvFile, sinDownload)
{
var DivID="video_" + nroID;
var ObjectID="flvplayer_" + nroID;
var file="flvplayer.swf?archivo=../films/" + flvFile;
	/*width=width+7;*/
	shl('<DIV  class=videoplayer style="width:'+ width +'px;" id=' + DivID + '></DIV>'); 

if (gLenguaje==cCastellano)	{
		var axLeyenda="Download Video";
	}
	else
	{
		var axLeyenda="Download Video";
}
var wDownloadFile="../filmsrar/" + flvFile.substring (0, flvFile.length-4) + ".zip";
var wLineaHtml='<a href="' + wDownloadFile + '">' + axLeyenda + '</a>';

var wLineaHtml='<div style="width:'+ width +'px; text-align:right;margin:0px;padding:0px;border:0px #000 solid;padding-top:.8em;padding-left:5px;"><a href="' + wDownloadFile + '">' + axLeyenda + '</a></div>';


if (sinDownload==undefined){
shl(wLineaHtml);
}

    shl('<SCRIPT language=JavaScript type=text/javascript>');
	shl('GenerateFlash8Object("' + DivID + '","' + ObjectID + '",' + width + ',' + height + ',"' + file + '")');
	shl('</SCRIPT>');

}

function Newsletter_playFlashVideo(nroID, width, height, flvFile)
{
var DivID="video_" + nroID;
var ObjectID="flvplayer_" + nroID;
var file="../../films/flvplayer.swf?archivo=../../films/" + flvFile;

/*var file="flvplayer.swf?archivo=films/" + flvFile;
/*width=width+7;*/

	shl('<DIV  class=videoplayer style="width:'+ width +'px;" id=' + DivID + '></DIV>'); 
    
/*	shl('<DIV  style="border:1px #1f1f1f solid; width:'+ width +'px;">' + file + '</DIV>'); 	*/
    
	shl('<SCRIPT language=JavaScript type=text/javascript>');
	shl('GenerateFlash8Object("' + DivID + '","' + ObjectID + '",' + width + ',' + height + ',"' + file + '")');
	shl('</SCRIPT>');

}