/* Lets start with loading the chloros css document into the head element. */

var head = document.getElementsByTagName("head")[0];         
var node = document.createElement('link');
node.type = 'text/css';
node.rel = 'stylesheet';
node.href = 'http://cdn.chloros.co.uk/keypoint/presenter.css';
node.media = 'screen';
head.appendChild(node);

/* Ok great, now lets create the flash player code, it's pretty long... I know I had to type it all! */

document.write("\n");
document.write("\n<!-- //////////////////////////////////////////////////////////// -->");
document.write("\n<!-- ////////////// Web Presenter created by Chloros //////////// -->");
document.write("\n<!-- ////////////// Info: http://www.chloros.co.uk   //////////// -->");
document.write("\n<!-- //////////////////////////////////////////////////////////// -->");
document.write("\n");
document.write("\n<div id='chloros-player'></div>");
document.write("\n");
document.write("\n<script type='text/javascript'>");
document.write("\n// <![CDATA[");
document.write("\nvar soFlash = new SWFObject('http://cdn.chloros.co.uk/player.swf', 'theVars', '180', '494', '10', '#FFFFFF');");
document.write("\nsoFlash.addParam('wmode', 'transparent');");
document.write("\nsoFlash.addVariable('fadein', '1');");
document.write("\nsoFlash.addVariable('fadeout', '2');");
document.write("\nsoFlash.addVariable('stream', 'chloros/keypoint/presenter.flv');");
document.write("\nsoFlash.addVariable('clicklink', '');");
document.write("\nsoFlash.addVariable('autolink', '');");
document.write("\nsoFlash.addVariable('autoplay', '');");
document.write("\nsoFlash.addVariable('preroll', '');");
document.write("\nsoFlash.addVariable('height', '494');");
document.write("\nsoFlash.addVariable('width', '180');");
document.write("\nsoFlash.addVariable('colour', '0xE51F6D');");
document.write("\nsoFlash.addVariable('logo', '');");
document.write("\nsoFlash.addVariable('logolink', 'http://www.chloros.co.uk/?utm_source=website&utm_medium=presenter&utm_campaign=keypointclaims');");
document.write("\nsoFlash.write('chloros-player');");
document.write("\n// ]]>");
document.write("\n</script>");

/* That's it, we're all done! Take a bow, and don't forget to tip your waitresses. */

