/*
function muestraPopUp(sUrl,overflow,showElement,zIndexElement){
	var overflow        = overflow      || "hidden" ;
  var showElement     = showElement   || "" ;
  var zIndexElement   = zIndexElement || 99999999;
	var objDivBackground;
	var objDivContenedor;
	var objIframe;
	var appendBackground  = false;
	var appendContenedor  = false;
	var appendIframe      = false;


	if( ! (objDivBackground = document.getElementById('divBackground')) ){
		objDivBackground	  = document.createElement('DIV');
		appendBackground = true;
	}

	objDivBackground.name 								 = "divBackground";
	objDivBackground.id 									 = "divBackground";
	objDivBackground.style.top 						 = "0px";
	objDivBackground.style.left 					 = "0px";
	objDivBackground.style.position 			 = "absolute";
	objDivBackground.style.backgroundColor = "#000000";
	objDivBackground.style.background 		 = "#000000"
	objDivBackground.style.filter 				 = "alpha (opacity=60);";
	objDivBackground.style.MozOpacity 		 = ".6";
	objDivBackground.style.Opacity 		     = ".6";
	objDivBackground.style.width 					 = "100%";
	objDivBackground.style.width 					 = document.body.offsetWidth+'px';
	objDivBackground.style.height 				 = document.body.offsetHeight+'px';
	objDivBackground.style.display         = "block";


	  if( !(objDivContenedor = document.getElementById('DivContenedor')) ){
      objDivContenedor 	= document.createElement('DIV');
      appendContenedor  = true;
	  }

    objDivContenedor.className 						 = "DivContenedor";
    objDivContenedor.id 									 = "DivContenedor";
    objDivContenedor.name 								 = "DivContenedor";
    objDivContenedor.style.backgroundColor = "#FFFFFF";
    objDivContenedor.style.border 				 = "0px none";
    objDivContenedor.style.top	 					 = "80px";
    objDivContenedor.style.left 					 = "350px";
    objDivContenedor.style.width 					 = "520px";
    objDivContenedor.style.height 				 = "615px";
    objDivContenedor.style.overflow 			 = "hidden";
    objDivContenedor.style.display         = 'block';

    if( !(objIframe = document.getElementById('iFrameContenedor')) ){
      objIframe = document.createElement('IFRAME');
      appendIframe = true;
    }

  	objIframe.name 						= "iFrameContenedor";
  	objIframe.id	 						= "iFrameContenedor";
  	objIframe.width 					= "100%";
  	objIframe.height					= "100%";
  	objIframe.frameBorder 		= "none";
  	objIframe.overflow 				= overflow;
  	objIframe.style.overflow 	= overflow;
  	objIframe.style.display   = 'block';

  if(appendBackground){
	  document.body.appendChild(objDivBackground);
	}


	if(appendContenedor){
	  document.body.appendChild(objDivContenedor);
	}

	if(appendIframe){
	  document.getElementById('DivContenedor').appendChild(objIframe);
	}

	if(showElement){
	  document.getElementById(showElement).style.display = "block";
	  document.getElementById(showElement).style.zIndex  = zIndexElement;
	}
  //block();
	window.scrollBy(0,-1000);
}

function ocultaPopUp() {
	if(document.getElementById('divBackground')   ) { document.getElementById('divBackground').style.display = 'none';    }
	if(document.getElementById('DivContenedor')   ) { document.getElementById('DivContenedor').style.display = 'none';    }
	if(document.getElementById('iFrameContenedor')) { document.getElementById('iFrameContenedor').style.display = 'none'; }
	//unblock();
}
*/

function runSWF(archivo, ancho, alto, version, bgcolor, id,idm, menu, FlashVars, quality, allowScriptAccess , writeScript, wmode ) {
	
	  if(version!=""){
	  	var version_data=version;
	  }else{
	  	var version_data="6,0,0,0";
	  }
	  if(menu!=""){
	  	menu_data=menu;
	  }else{
	  	menu_data=false;
	  }
	  if(bgcolor!=""){
	  	var bgcolor_data=bgcolor;
	  }else{
	  	var bgcolor_data="#FFFFFF";
	  }
	  if(id!=""){
	  	id_data=id;
	  }else{
	  	id_data="flashMovie";
	  }
	  if(quality!=""){
	  	quality_data=quality;
	  }else{
	  	quality_data="high";
	  }
	  if(allowScriptAccess!=""){
	  	allowScriptAccess_data=allowScriptAccess;
	  }else{
	  	allowScriptAccess_data="always";
	  }
	  if( typeof(writeScript) == "undefined" || writeScript == ''){
	    writeScript = "1" ;
	  }
	  if( typeof(wmode) == "undefined" ){
	    wmode = "transparent" ;
	  }
	  	
	  var quality="high"; // calidad de visualización de la peli
	  html  = "";
	  html += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version_data+'" width='+ancho+' height='+alto+' id='+id_data+'>\n';
	  html += '<param name="movie" value='+archivo+'>\n';
	  html += '<param name="allowScriptAccess" value='+allowScriptAccess_data+'>\n';
	  html += '<param name="quality" value='+quality_data+'>\n';
	  html += '<param name="FlashVars" value='+FlashVars+'>\n';
	  html += '<param name="bgcolor" value='+bgcolor_data+'>\n';
	  html += '<param name="menu" value='+menu_data+' >\n';
	  html += '<param name="wmode" value="'+wmode+'">\n';
	  html += '<param name="allowFullScreen" value="true">\n';
	  html += '<embed wmode="'+wmode+'" src='+archivo+' allowFullScreen="true" bgcolor='+bgcolor_data+' FlashVars='+FlashVars+' menu='+menu_data+' allowScriptAccess='+allowScriptAccess_data+' quality='+quality_data+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+ancho+' height='+alto+' swLiveConnect="true" id='+idm+' ></embed>';
	  html += '</object>\n';

		if(document.readyState)
		{
			//ie
		  switch(document.readyState) {
		  	case 'interactive':
		  	case 'complete':
		      if(writeScript == "1"){
	        	document.write(html);
	        }else{
	        	return html;
	        }
		  	  break;
		  }	
		}else { 

			//ff
			
			if(writeScript == "1"){
	    	document.write(html);
	    }else{
	    	return html;
	    }	
		}	
		
}
