function writeFlash(name, width, height, bgcolor, flashvars) { var protocol = 'http:'; if (location.protocol) { protocol=location.protocol; } var base = ''; base=name.substring(0,name.lastIndexOf('/')) + "/"; if (base.length==1 && location.pathname) { base=location.pathname.substring(0,location.pathname.lastIndexOf('/')) + "/"; } flashvars = flashvars!=null ? flashvars : ''; var swf = ''; swf += ''; swf += ''; swf += ''; swf += ''; swf += ''; swf += ''; swf += ''; swf += ''; swf += '<\/embed>'; swf += '<\/object>'; document.write(swf); }