// Function to embed a quicktime movie into a document. Used to route around annoying eolas patent crap // Copyright (c) 2006 Thought Equity. All Rights Reserved // Embed a QuickTime Movie // // src - source URL of movie // width - Width or zero if unknown // height - Height, or zero if unknown function embedQuicktime(src,width,height) { var str = ' 0) { str += 'width="' + width + '" '; if (height > 0) { str += 'height="' + height + '" '; } } str += 'AUTOPLAY="true" scale="TOFIT" CONTROLLER="true" LOOP="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/" >'; document.write(str); } // Embeds a Windows Media movie // src - URL of movie // width - Width, or zero if unknown // height - Height or zero if unknown function embedWindowsMedia(src,width,height) { embedWindowsMediaInternal(src,false,width,height); } // Embeds a Windows Media Stream // src - URL of movie // width - Width, or zero if unknown // height - Height or zero if unknown function embedWindowsMediaStream(src,width,height) { embedWindowsMediaInternal(src,true,width,height); } // Swiss-army knife to embed a Windows Media thingy function embedWindowsMediaInternal(src,isStream,width,height) { var str = ' 0) { str += 'width="' + width + '" '; if (height > 0) { str += 'height="' + height + '" '; } } str += '>'; if (isStream) { str += ''; str += ''; str += ''; } else { str += ''; } str += ''; str += ''; str += ''; str += ''; str += ''; str += ' 0) { str += 'width="' + width + '" '; if (height > 0) { str += 'height="' + height + '" '; } } str += 'autostart="1" '; str += 'showcontrols="1" '; str += 'animationatstart="1" '; str += 'volume="-450">'; str += ''; str += ''; document.write(str); } // Embeds a Flash SWF // resource_name - name of movie // rendition_size // div_to_embed - area to embed player // width - Width, or zero if unknown // height - Height or zero if unknown // watermarkUrl - URL of watermark function embedSWFObject(resource_name, rendition_size, div_to_embed, width, height, watermarkUrl) { var flashVars = {clip:resource_name, rendition:rendition_size, logo:watermarkUrl, autoPlay:true, fps:29.97 }; var params = {autoPlay:true, allowScriptAccess:'always', allowFullScreen:true, base:'http://static.thoughtequity.com/video/etc/', wmode:'transparent'}; var attributes = {}; swfobject.embedSWF("http://static.thoughtequity.com/video/etc/TePlayer.swf", div_to_embed, width, height, "9.0.0", null, flashVars, params, attributes); }