function viewTube(triggerID,movieURL,movieWth,movieHt) {
  var embedcode = "<object type='application/x-shockwave-flash' width='" + movieWth + "' height='" + movieHt + "' data='" + movieURL + "&autoplay=1&buffer=7&buffershowbg=0&buffermessage='>";
  embedcode += "<param name='movie' value='" + movieURL + "&autoplay=1&buffer=7&buffershowbg=0&buffermessage='></param>";
  embedcode += "<param name='allowFullScreen' value='true'></param></object>";
//  embedcode += "<param name='autoplay' value='1'></param>";
//  embedcode += "<embed src='" + movieURL + "' type='application/x-shockwave-flash' width='" + movieWth + "' height='" + movieHt + "' allowFullScreen='true' autoplay='true'></embed></object>";
  document.getElementById(triggerID).innerHTML=embedcode;
//  embedcode += "<param name='wmode' value='transparent'></param>"; wmode='transparent'

 }

function viewTube1(triggerID,movieURL,movieWth,movieHt) {
  var embedcode = "<object type='application/x-shockwave-flash' width='" + movieWth + "' height='" + movieHt + "' data='" + movieURL + "'>";
  embedcode += "<param name='movie' value='" + movieURL + "'></param>";
  embedcode += "<param name='allowFullScreen' value='true'></param></object>";
//  embedcode += "<param name='autoplay' value='1'></param>";
//  embedcode += "<embed src='" + movieURL + "' type='application/x-shockwave-flash' width='" + movieWth + "' height='" + movieHt + "' allowFullScreen='true' autoplay='true'></embed></object>";
  document.getElementById(triggerID).innerHTML=embedcode;
//  embedcode += "<param name='wmode' value='transparent'></param>"; wmode='transparent'
}

function flash_write(divID, flashFile, width, height) {
document.write("<object style='margin:0px;' z-index=-1 bgcolor='#000000' class='playerpreview' type='application/x-shockwave-flash' data='media/flvplayer.swf?flv="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' width='"+width+"' height='"+height+"'><param name='movie' value='media/flvplayer.swf?flv="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' /><param name='allowFullScreen' value='true' /><param name='bgcolor' value='#000000' /></object>");
}

function ieblah(divID, flashFile, width, height) {
document.getElementByID(divID).innerHTML="<object z-index=-1 bgcolor='#000000' class='playerpreview' type='application/x-shockwave-flash' data='media/flvplayer.swf?flv="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' width='"+width+"' height='"+height+"'><param name='movie' value='media/flvplayer.swf?flv="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' /><param name='allowFullScreen' value='true' /><param name='bgcolor' value='#000000' /></object>";
}

function audioEmbedWrite(filePath)
{
document.write("<embed type=\"audio/mpeg\" src=\""+filePath+"\" loop=\"false\" autoplay=\"false\" width=\"145\" height=\"40\" bgcolor=\"#000044\"/>");
}


function admin_flash_write(divID, flashFile, width, height) {
document.write("<object z-index=-1 bgcolor='#000000' class='playerpreview' type='application/x-shockwave-flash' data='media/flvplayer.swf?flv="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' width='"+width+"' height='"+height+"'><param name='movie' value='media/flvplayer.swf?flv="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' /><param name='allowFullScreen' value='true' /><param name='bgcolor' value='#000000' /></object><br><br>");
}


function admin_flash_simple_write(divID, flashFile, width, height) {
document.write("<object z-index=-1 bgcolor='#000000' class='playerpreview' type='application/x-shockwave-flash' data='media/flvplayer.swf?file="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' width='"+width+"' height='"+height+"'><param name='movie' value='media/flvplayer.swf?file="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' /><param name='allowFullScreen' value='true' /><param name='bgcolor' value='#000000' /></object><br><br>");
}


function admin_flash_write2(divID, flashFile, width, height) {
document.write("<object z-index=-1 bgcolor='#000000' class='playerpreview' type='application/x-shockwave-flash' data='media/flvplayer.swf?flv="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' width='"+width+"' height='"+height+"'><param name='movie' value='media/flvplayer.swf?flv="+flashFile+
"&width="+width+
"&height="+height+
"&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=000000&bgcolor2=000000&playercolor=000000' /><param name='allowFullScreen' value='true' /><param name='bgcolor' value='#000000' /></object><br><br>");
}
