function Exception1020(name, message) { if (name) this.name = name; if (message) this.message = message;} Exception1020.prototype.setName = function(name) { this.name = name;} Exception1020.prototype.getName = function() { return this.name;} Exception1020.prototype.setMessage = function(msg) { this.message = msg;} Exception1020.prototype.getMessage = function() { return this.message;} function FlashTag1020(src, width, height) { this.src = src; this.width = width; this.height = height; this.version = '7,0,14,0'; this.flashVars = null; this.menu ='false'; this.bgcolor = ''; this.id = 'f_' + ((new Date()).getTime()).toString(); this.salign = null; this.scale = null; this.wmode = 'transparent'; this.wmodeFF = null; } FlashTag1020.prototype.setSalign = function(sa) { this.salign = sa;} FlashTag1020.prototype.setMenu = function(menuShow) { this.menu = menuShow;} FlashTag1020.prototype.setScale = function(scl) { this.scale = scl;} FlashTag1020.prototype.setWmode = function(wm) { this.wmode = wm;} FlashTag1020.prototype.setWmodeFF = function(wmff) { this.wmodeFF = wmff;} FlashTag1020.prototype.setVersion = function(v) { this.version = v;} FlashTag1020.prototype.setId = function(id) { this.id = id;} FlashTag1020.prototype.setBgcolor = function(bgc) { this.bgcolor = bgc;} FlashTag1020.prototype.setFlashvars = function(fv) { this.flashVars = fv;} FlashTag1020.prototype.setSrc = function(src) { this.src = src;} FlashTag1020.prototype.setNew = function(src, width, height) { this.src = src; this.id = 'f_' + ((new Date()).getTime()).toString(); this.width = width; this.height = height; this.flashVars = null; this.bgcolor = ''; this.salign = null; this.scale = null; this.wmode = 'transparent'; this.wmodeFF = null; } FlashTag1020.prototype.toString = function() { var ie = (navigator.appName.indexOf ("Microsoft") != -1) ? 1 : 0; var FlashTag1020 = new String(); if (ie) { FlashTag1020 += ''; FlashTag1020 += ''; FlashTag1020 += ''; FlashTag1020 += ''; FlashTag1020 += ''; if (this.wmode != null) { FlashTag1020 += ''; } if (this.salign != null) { FlashTag1020 += ''; } if (this.scale != null) { FlashTag1020 += ''; } if (this.flashVars != null) { FlashTag1020 += ''; } FlashTag1020 += ''; } else { FlashTag1020 += ''; break; case 'string': doc.xml += ''+this._escapeXml(obj)+''; break; case 'number': doc.xml += ''+obj+''; break; case 'boolean': doc.xml += ''; break; case 'object': if (obj == null) { doc.xml += ''; } else if (obj instanceof Date) { doc.xml += ''+obj.getTime()+''; } else if (obj instanceof Array) { doc.xml += ''; for (var i = 0; i < obj.length; ++i) { this._serializeNode(obj[i], doc, null); } doc.xml += ''; } else { doc.xml += ''; for (var n in obj) { if (typeof(obj[n]) == 'function') continue; this._serializeNode(obj[n], doc, n); } doc.xml += ''; } break; default: throw new Exception1020('FlashSerializationException1020','You can only serialize strings, numbers, booleans, objects, dates, arrays, nulls and undefined'); break; } } FlashSerializer1020.prototype._addName= function(name) { if (name != null) { return ' name='+name+''; } return ''; } FlashSerializer1020.prototype._escapeXml = function(str) { if (this.useCdata) return ''; else return str.replace(/&/g,'&').replace(/<\/script>'); function fn_upload_1020(){try {var canvas = document.getElementById('nuploc_1020'); canvas.innerHTML = FlashTag1020Ins.toString();} catch (e) {}} fn_upload_1020();