
var gArgCountErr='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...';var gTagAttrs=null;var gQTGeneratorVersion=1;function AC_QuickTimeVersion(){return gQTGeneratorVersion}function _QTComplain(b,a){a=a.replace("%%",b);alert(a)}function _QTAddAttribute(d,a,b){var c;c=gTagAttrs[d+a];if(null==c){c=gTagAttrs[a]}if(null!=c){if(0==a.indexOf(d)&&(null==b)){b=a.substring(d.length)}if(null==b){b=a}return""+b+'="'+c+'"'}else{return""}}function _QTAddObjectAttr(a,b){if(0==a.indexOf("emb#")){return""}if(0==a.indexOf("obj#")&&(null==b)){b=a.substring(4)}return _QTAddAttribute("obj#",a,b)}function _QTAddEmbedAttr(a,b){if(0==a.indexOf("obj#")){return""}if(0==a.indexOf("emb#")&&(null==b)){b=a.substring(4)}return _QTAddAttribute("emb#",a,b)}function _QTAddObjectParam(a,d){var e;var c="";var b=(d)?" />":">";if(-1==a.indexOf("emb#")){e=gTagAttrs["obj#"+a];if(null==e){e=gTagAttrs[a]}if(0==a.indexOf("obj#")){a=a.substring(4)}if(null!=e){c='<param name="'+a+'" value="'+e+'"'+b}}return c}function _QTDeleteTagAttrs(){for(var a=0;a<arguments.length;a++){var b=arguments[a];delete gTagAttrs[b];delete gTagAttrs["emb#"+b];delete gTagAttrs["obj#"+b]}}function _QTGenerate(b,c,f){if(f.length<4||(0!=(f.length%2))){_QTComplain(b,gArgCountErr);return""}gTagAttrs=new Object();gTagAttrs.src=f[0];gTagAttrs.width=f[1];gTagAttrs.height=f[2];gTagAttrs.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";gTagAttrs.pluginspage="http://www.apple.com/quicktime/download/";var a=f[3];if((null==a)||(""==a)){a="6,0,2,0"}gTagAttrs.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+a;var g,e;for(var i=4;i<f.length;i+=2){g=f[i].toLowerCase();e=f[i+1];if("name"==g||"id"==g){gTagAttrs.name=e}else{gTagAttrs[g]=e}}var h="<object "+_QTAddObjectAttr("classid")+_QTAddObjectAttr("width")+_QTAddObjectAttr("height")+_QTAddObjectAttr("codebase")+_QTAddObjectAttr("name","id")+_QTAddObjectAttr("tabindex")+_QTAddObjectAttr("hspace")+_QTAddObjectAttr("vspace")+_QTAddObjectAttr("border")+_QTAddObjectAttr("align")+_QTAddObjectAttr("class")+_QTAddObjectAttr("title")+_QTAddObjectAttr("accesskey")+_QTAddObjectAttr("noexternaldata")+">"+_QTAddObjectParam("src",c);var d="<embed "+_QTAddEmbedAttr("src")+_QTAddEmbedAttr("width")+_QTAddEmbedAttr("height")+_QTAddEmbedAttr("pluginspage")+_QTAddEmbedAttr("name")+_QTAddEmbedAttr("align")+_QTAddEmbedAttr("tabindex");_QTDeleteTagAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");for(var g in gTagAttrs){e=gTagAttrs[g];if(null!=e){d+=_QTAddEmbedAttr(g);h+=_QTAddObjectParam(g,c)}}return h+d+"></embed></object>"}function QT_GenerateOBJECTText(){return _QTGenerate("QT_GenerateOBJECTText",false,arguments)}function QT_GenerateOBJECTText_XHTML(){return _QTGenerate("QT_GenerateOBJECTText_XHTML",true,arguments)}function QT_WriteOBJECT(){document.writeln(_QTGenerate("QT_WriteOBJECT",false,arguments))}function QT_WriteOBJECT_XHTML(){document.writeln(_QTGenerate("QT_WriteOBJECT_XHTML",true,arguments))};
