﻿// JScript File


function Mostrar(){
    var oPopup;   
    oPopup = window.createPopup();
    var oPopBody = oPopup.document.body;			
    oPopBody.innerHTML =  Get_Texto_Flyer();
    
    //oPopup.show(0, 0, 260, 400, document.body);
    oPopup.show(1, 100, 300, 310, document.body);
}

function Get_Texto_Flyer(){
//style='border-color:Black' border='3'>   

var MiTexto= 
"<div width='300px' height='600px'   style='background-color:AliceBlue; '  >  " +
     "<table id='tbl_flyer' border='2' cellpadding=0 cellspacing=0  bordercolor='Black'  align='center' width='300px'>   " +
      "<tr> " +
          "<td width='300px'  valign='top'><br>" +
            "<a style='font-family: Arial, Helvetica, sans-serif;font-size: 10px;	font-weight:normal;	color:Black;	text-decoration: none;	font-weight: bold;'>Tag para imagen</a><br><textarea id='txtIMG' " + Estilo() + " readonly='readonly' >" +
            "<img src='FCKeditor/UserFiles/Image/cronica_XX/XXXX.jpg' width='300px' height='200px' /></textarea>" +
          "</td>" +
      "</tr>" +   
     "<tr> " +
          "<td width='300px'  valign='top'>" +
            "<a style='font-family: Arial, Helvetica, sans-serif;font-size: 10px;	font-weight:normal;	color:Black;	text-decoration: none;	font-weight: bold;'>Tag para YouTube</a><textarea id='txtYouTube' " + Estilo() + " readonly='readonly' >" +
              "<object width='300' height='200'>" +
                      "<param name='movie' value='http://www.youtube.com/v/_RAB96S7BAw&hl=en'></param> " +
                      "<param name='wmode' value='transparent'></param> " +
                      "<embed src='http://www.youtube.com/v/_RAB96S7BAw&hl=en' type='application/x-shockwave-flash' " +
                      "wmode='transparent' width='300' height='200'></embed> " +
                  "</object>" +
                "</textarea>" +
          "</td>" +
      "</tr>" +   
      "<tr> " +
          "<td width='300px'  valign='top'>" +
            "<a style='font-family: Arial, Helvetica, sans-serif;font-size: 10px;	font-weight:normal;	color:Black;	text-decoration: none;	font-weight: bold;'>Tag para Video QuickTime</a><textarea id='txtQuickTime' " + Estilo() + " readonly='readonly' >" +
              "<object width='300' height='200'>" +
                      "<EMBED SRC='FCKeditor/UserFiles/Image/mymovie.mov' WIDTH=300 HEIGHT = 200 AUTOPLAY=true CONTROLLER=true LOOP=false PLUGINSPAGE='http://www.apple.com/quicktime/'>" +                      
                "</textarea>" +
          "</td>" +
      "</tr>" +   
       "<tr> " +
          "<td width='300px'  valign='top'>" +
            "<a style='font-family: Arial, Helvetica, sans-serif;font-size: 10px;	font-weight:normal;	color:Black;	text-decoration: none;	font-weight: bold;'>Tag para Video Flickr</a><textarea id='txtFlick' " + Estilo() + " readonly='readonly' >" +              
                      "NOT READY YET" +                      
                "</textarea>" +
          "</td>" +
      "</tr>" +  
      "<tr><td><br><br></td> </tr>" 
   "</table>";


return MiTexto;
}

function Estilo()
{
 var sESTILO= 'style="font-family: Arial, Helvetica, sans-serif;font-size: 10px;	border: 1px solid White;	color:White;	background-color: #F26921;	resize:none;width: 284px; height: 46px"' + Copiar();
 
 return sESTILO;
}

function Copiar()
{
 return " onmouseover='try{ this.focus(); this.select();} catch(err){}'  "
}



