<?php

if (!defined('MODULE_FILE')) {
    die ("You can't access this file directly...");
}
global $db, $user, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
// Yahoo Media Player-peliweb
/////////////////////////////////////////////
$url = "".$row['url']."&autoplay=1"; // yahoo url
//$width = "".$row['width']."";
//$height = "".$row['height']."";
///// or these /////
$width = "100%";
$height = "480";
/////////////////////////////////////////////
$embedcode .= "<object width='$width' height='$height'>\n";
$embedcode .= "<param name='movie' value='$url'>\n";
$embedcode .= "<param name='allowFullScreen' value='true'>\n";
$embedcode .= "<param name='AllowScriptAccess' VALUE='always'>\n";
$embedcode .= "<param name='bgcolor' value='#000000'>\n";
$embedcode .= "<param name='flashVars' value='id=17792073&vid=6841231&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/video01/6841231_rndd26128a1_19.jpg&embed=1&ap=9460582'>\n";
$embedcode .= "<embed src='$url' type='application/x-shockwave-flash' width='$width' height='$height' allowFullScreen='true' AllowScriptAccess='always' bgcolor='#000000' flashVars='id=17792073&vid=6841231&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/video01/6841231_rndd26128a1_19.jpg&embed=1&ap=9460582' ></embed>\n";
$embedcode .= "</object>\n";

?>