/**
 * @(#) $RCSfile$ $Revision$ $Date$
 *
 * Copyright 2005 Orgdot AS. All Rights Reserved.
 * http://dev.swfit.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

/**
 * Use of Javascript to embed quicktime movies in a browser.
 *
 * @author      Olaf Havnes
 * @version     $Revision$ $Date$
 * @since       SWFIT2.0
 */



/**
 * Quicktime code
 */
function quickTimeCode (mov_src, mov_href, mov_wdt, mov_hgt, mov_col)
{
    var code = '<object \n';
    code += '  classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" \n';
    code += '  codebase="http://www.apple.com/qtactivex/qtplugin.cab" \n';
    code += '  width="' + mov_wdt + '" height="' + mov_hgt + '">\n';
    code += '  <param name="src" value="' + mov_src + '">\n';
    code += '  <param name="href" value="' + mov_href + '">\n';
    code += '  <param name="bgcolor" value="' + mov_col + '">\n';
    code += '  <param name="controller" value="false">\n';
    code += '  <param name="target" value="myself">\n';
    code += '  <param name="pluginspage" value="http://www.apple.com/quicktime/download/indext.html">';
    code += '<embed \n';
    code += '  width="' + mov_wdt + '" \n';
    code += '  height="' + mov_hgt + '" \n';
    code += '  src="' + mov_src + '" \n';
    code += '  href="' + mov_href + '" \n';
    code += '  bgcolor="' + mov_col + '" \n';
    code += '  controller="false" target="myself" border="0" \n';
    code += '  pluginspage="http://www.apple.com/quicktime/download/indext.html">\n';
    code += '</embed></object>';
    return code;
}
