/*--- Avanquest WebEasy External Script ---*/

/* -------------------------------------------- */
/* Embed Video from YouTube.com                 */
/* -------------------------------------------- */

function weAddYouTubeVideo(vid, dmx, dmy, ply) 
{ 
  var url = 'http://www.youtube.com/v/' + vid;
  if (ply) url += '&autoplay='+ply;
  document.writeln( 
    '<object width="' + dmx + '" height="' + dmy + '">' + 
    '  <param name="movie" value="' + url + '">' + 
    '  <param name="wmode" value="transparent">' + 
    '    <embed src="' + url + '"' + 
    '     type="application/x-shockwave-flash" wmode="transparent"' + 
    '     width="' + dmx + '" height="' + dmy + '"></embed>' + 
    '</object>'); 
} 



/* -------------------------------------------- */
/* Flash Play Folder List                       */
/* Used with permission -  Jeroen Wijering (c)  */
/* License is required for commercial websites  */
/* for more information: www.jeroenwijering.com */
/* -------------------------------------------- */

function weAddFlashPlayFolder(url,dmx,dmy,ply,lop,mnu,thm,nri,sbr,fgc,bgc,hlc)
{
    var vid='flvplayer.swf';
    var htm = (thm)?40:22; 
    var top=dmy-1-(nri*htm);
    if(mnu) top -= 20; 
    if(top < 0) top=0;
    vid += '?file='              +url;
    vid += '&autostart='         +ply.toString();
    vid += '&repeat='            +lop.toString();
    vid += '&shownavigation='    +mnu.toString();
    vid += '&thumbsinplaylist='  +thm.toString();
    vid += '&autoscroll='        +sbr.toString();
    vid += '&frontcolor='        +fgc;
    vid += '&backcolor='         +bgc;
    vid += '&lightcolor='        +hlc;
    if(nri > 0) vid += '&displayheight='+top;
    document.write('<object type="application/x-shockwave-flash"'); 
    document.write(' data="'+vid+'"');
    document.write(' width="'+dmx+'" height="'+dmy+'"');
    document.write(' wmode="transparent"'+'>');    
    document.write('<param name="movie" value="'+vid+'">');    
    document.write('<param name="wmode" value="transparent">');
    document.write('<embed pluginspage="http://www.macromedia.com/go/getflashplayer"');
    document.write(' type="application/x-shockwave-flash"');
    document.write(' src="'+vid+'"');
    document.write(' width="'+dmx+'"');
    document.write(' height="'+dmy+'"');
    document.write(' wmode="transparent">');
    document.write('<a href="http://www.macromedia.com/downloads/" target="_blank">');
    document.write('Plugins not found,</a>&nbsp;&nbsp;<A href="'+url+'" target="_blank">play</a>');
    document.write('</embed>');
    document.writeln('</object>');
}




/*--- EndOfFile ---*/

