function Exception(name,message){if(name) this.name=name;if(message) this.message=message;} Exception.prototype.setName=function(name){this.name=name;} Exception.prototype.getName=function(){return this.name;} Exception.prototype.setMessage=function(msg){this.message=msg;} Exception.prototype.getMessage=function(){return this.message;} function FlashTag(src,width,height){this.src=src;this.width=width;this.height=height;this.version='7,0,14,0';this.id=null;this.bgcolor='ffffff';this.flashVars=null;this.wmode=null;} FlashTag.prototype.setVersion=function(v){this.version=v;} FlashTag.prototype.setId=function(id){this.id=id;} FlashTag.prototype.setBgcolor=function(bgc){this.bgcolor=bgc;} FlashTag.prototype.setFlashvars=function(fv){this.flashVars=fv;} FlashTag.prototype.setWmode=function(wm){this.wmode=wm;} FlashTag.prototype.toString=function(){var ie=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;var flashTag=new String();if(ie){flashTag+='';flashTag+='';flashTag+='';flashTag+='';if(this.flashVars!=null){flashTag+='';} if(this.wmode!=null){flashTag+='';} flashTag+='';} else{flashTag+='';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';for(var n in obj){if(typeof(obj[n])=='function') continue;this._serializeNode(obj[n],doc,n);} doc.xml+='';} break;default:throw new Exception("FlashSerializationException","You can only serialize strings, numbers, booleans, objects, dates, arrays, nulls and undefined");break;}} FlashSerializer.prototype._addName=function(name){if(name!=null){return' name="'+name+'"';} return'';} FlashSerializer.prototype._escapeXml=function(str){if(this.useCdata) return'';else return str.replace(/&/g,'&').replace(/