function Exception65(name, message)    
{ if (name) this.name = name;        
  if (message) this.message = message;}                                
Exception65.prototype.setName = function(name)                           
{     this.name = name;}             
Exception65.prototype.getName = function()                               
{     return this.name;}             
Exception65.prototype.setMessage = function(msg)                         
{    this.message = msg;}            
Exception65.prototype.getMessage = function()                            
{    return this.message;}           
function FlashTag65(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;             
}  
FlashTag65.prototype.setSalign = function(sa)                            
{    this.salign = sa;}              
FlashTag65.prototype.setMenu = function(menuShow)                        
{     this.menu = menuShow;}         
FlashTag65.prototype.setScale = function(scl)                            
{     this.scale = scl;}             
FlashTag65.prototype.setWmode = function(wm)                             
{     this.wmode = wm;}
FlashTag65.prototype.setWmodeFF = function(wmff)                         
{    this.wmodeFF = wmff;}           
FlashTag65.prototype.setVersion = function(v)                            
{    this.version = v;}              
FlashTag65.prototype.setId = function(id)                                
{    this.id = id;}                  
FlashTag65.prototype.setBgcolor = function(bgc)                          
{    this.bgcolor = bgc;}            
FlashTag65.prototype.setFlashvars = function(fv)                         
{    this.flashVars = fv;}           
FlashTag65.prototype.setSrc = function(src)                              
{     this.src       = src;}         
FlashTag65.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;             
}  
FlashTag65.prototype.toString = function()                               
{  
    var ie = (navigator.appName.indexOf ("Microsoft") != -1) ? 1 : 0;               
    var FlashTag65 = new String();     
    if (ie)                          
    {                                
        FlashTag65 += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';                                 
        if (this.id != null)         
        {                            
            FlashTag65 += 'id="'+this.id+'" ';     
        }                            
        FlashTag65 += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.version+'" ';                        
        FlashTag65 += 'width="'+this.width+'" ';   
        FlashTag65 += 'height="'+this.height+'">'; 
        FlashTag65 += '<param name="movie" value="'+this.src+'"/>';                              
        FlashTag65 += '<param name="quality" value="high"/>';  
        FlashTag65 += '<param name="bgcolor" value="#'+this.bgcolor+'"/>';                       
				FlashTag65 += '<param name="menu" value="'+this.menu+'"/>';                               
        if (this.wmode != null)      
        {                            
            FlashTag65 += '<param name="wmode" value="'+this.wmode+'"/>';                        
        }                            
        if (this.salign != null)     
        {                            
            FlashTag65 += '<param name="salign" value="'+this.salign+'"/>';                      
        }                            
        if (this.scale != null)      
        {                            
            FlashTag65 += '<param name="scale" value="'+this.scale+'"/>';                        
        }                            
        if (this.flashVars != null)  
        {                            
            FlashTag65 += '<param name="flashvars" value="'+this.flashVars+'"/>';                
        }                            
        FlashTag65 += '</object>';     
    }                                
    else                             
    {                                
        FlashTag65 += '<embed src='+this.src+' ';                        
        FlashTag65 += 'quality=high '; 
        FlashTag65 += 'bgcolor=#'+this.bgcolor+' ';                      
        FlashTag65 += 'width='+this.width+' ';                           
        FlashTag65 += 'height='+this.height+' ';                         
        FlashTag65 += 'type="application/x-shockwave-flash" ';             
		  FlashTag65 += 'menu="'+this.menu+'" ';                                
        if (this.flashVars != null)  
        {                            
            FlashTag65 += 'flashvars="'+this.flashVars+'" ';                         
        }                            
        if (this.id != null)         
        {                            
            FlashTag65 += 'name="'+this.id+'" ';                           
        }                            
				if ((this.wmode!=null)&&(this.wmode == 'transparent')) {this.wmodeFF = 'transparent'; }           
        if (this.wmodeFF != null)    
        {                            
            FlashTag65 += 'wmode="'+this.wmodeFF+'" ';                     
        }                            
        if (this.scale != null)      
        {                            
            FlashTag65 += 'scale="'+this.scale+'" ';                       
        }                            
        if (this.salign != null)     
        {                            
            FlashTag65 += 'salign="'+this.salign+'" ';                     
        }        FlashTag65 += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';                 
        FlashTag65 += '</embed>';      
    }                                
    return FlashTag65;                 
}  
FlashTag65.prototype.write = function(doc)                               
{    doc.write(this.toString());}    
function FlashSerializer65(useCdata)   
{    this.useCdata = useCdata;}
FlashSerializer65.prototype.serialize = function(args)                   
{ var qs = new String();             
   for (var i = 0; i < args.length; ++i)                               
    {                                
        switch(typeof(args[i]))      
        {                            
            case 'undefined':        
                qs += 't'+(i)+'=undf';                                 
                break;               
            case 'string':           
                qs += 't'+(i)+'=str&d'+(i)+'='+escape(args[i]);        
                break;               
            case 'number':           
                qs += 't'+(i)+'=num&d'+(i)+'='+escape(args[i]);        
                break;               
            case 'boolean':          
                qs += 't'+(i)+'=bool&d'+(i)+'='+escape(args[i]);       
                break;               
            case 'object':           
                if (args[i] == null) 
                {                    
                    qs += 't'+(i)+'=null';                             
                }                    
                else if (args[i] instanceof Date)                      
                {                    
                    qs += 't'+(i)+'=date&d'+(i)+'='+escape(args[i].getTime());                           
                }                    
                else                 
                {                    
                    try              
                    {                
                        qs += 't'+(i)+'=xser&d'+(i)+'='+escape(this._serializeXML(args[i]));             
                    }                
                    catch (Exception65)                                  
                    {                
                        throw new Exception65('FlashSerializationException65','The following error occurred during complex object serialization: ' + Exception65.getMessage());    
                    }                
                }                    
                break;               
            default:                 
                throw new Exception65('FlashSerializationException65','You can only serialize strings, numbers, booleans, dates, objects, arrays, nulls, and undefined.');       
        }                            
        if (i != (args.length - 1))  
        {                            
            qs += '&';               
        }                            
    }                                
    return qs;                       
}  
FlashSerializer65.prototype._serializeXML = function(obj)                
{  var doc = new Object();           
    doc.xml = '<fp>';                
    this._serializeNode(obj, doc, null);                               
    doc.xml += '</fp>';              
    return doc.xml;                  
}  
FlashSerializer65.prototype._serializeNode = function(obj, doc, name)    
{  
    switch(typeof(obj))              
    {                                
        case 'undefined':            
            doc.xml += '<undf'+this._addName(name)+'/>';               
            break;                   
        case 'string':               
            doc.xml += '<str'+this._addName(name)+'>'+this._escapeXml(obj)+'</str>';                     
            break;                   
        case 'number':               
            doc.xml += '<num'+this._addName(name)+'>'+obj+'</num>';    
            break;                   
        case 'boolean':              
            doc.xml += '<bool'+this._addName(name)+' val="'+obj+'"/>';             
            break;                   
        case 'object':               
            if (obj == null)         
            {                        
                doc.xml += '<null'+this._addName(name)+'/>';           
            }                        
            else if (obj instanceof Date)                              
            {                        
                doc.xml += '<date'+this._addName(name)+'>'+obj.getTime()+'</date>';                      
            }                        
            else if (obj instanceof Array)                             
            {                        
                doc.xml += '<array'+this._addName(name)+'>';           
                for (var i = 0; i < obj.length; ++i)                   
                {                    
                    this._serializeNode(obj[i], doc, null);            
                }                    
                doc.xml += '</array>';                                 
            }                        
            else                     
            {                        
                doc.xml += '<obj'+this._addName(name)+'>';             
                for (var n in obj)   
                {                    
                    if (typeof(obj[n]) == 'function')                  
                        continue;    
                    this._serializeNode(obj[n], doc, n);               
                }
                doc.xml += '</obj>'; 
            }                        
            break;                   
        default:                     
            throw new Exception65('FlashSerializationException65','You can only serialize strings, numbers, booleans, objects, dates, arrays, nulls and undefined');             
            break;                   
    }                                
}  
FlashSerializer65.prototype._addName= function(name)                     
{  
    if (name != null)                
    {                                
        return ' name='+name+'';     
    }                                
    return '';                       
}  
FlashSerializer65.prototype._escapeXml = function(str)                   
{  
    if (this.useCdata)               
        return '<![CDATA['+str+']]>';                                  
    else                             
        return str.replace(/&/g,'&amp;').replace(/</g,'&lt;');         
}  
function FlashSerializer65(uid, proxySwfName)                                 
{  
    this.uid = uid;                  
    this.proxySwfName = proxySwfName;                                  
    this.FlashSerializer65 = new FlashSerializer65(false);                 
}  
FlashSerializer65.prototype.call = function()                                 
{  
    if (arguments.length == 0)       
    {                                
        throw new Exception65('Flash Proxy Exception65','The first argument should be the function name followed by any number of additional arguments.');                       
    }                                
    var qs = 'lcId=' + escape(this.uid) + '&functionName=' + escape(arguments[0]);                       
    if (arguments.length > 1)        
    {                                
        var justArgs = new Array();  
        for (var i = 1; i < arguments.length; ++i)                     
        {                            
            justArgs.push(arguments[i]);                               
        }                            
        qs += ('&' + this.FlashSerializer65.serialize(justArgs));        
    }                                
    var divName = '_flash_proxy_' + this.uid;                          
    if(!document.getElementById(divName))                              
    {                                
        var newTarget = document.createElement('div');                 
        newTarget.id = divName;      
        document.body.appendChild(newTarget);                          
    }                                
    var target = document.getElementById(divName);                     
    var ft = new FlashTag65(this.proxySwfName, 1, 1);                    
    ft.setVersion('6,0,65,0');       
    ft.setFlashvars(qs);             
    target.innerHTML = ft.toString();                                  
}  
FlashSerializer65.callJS = function()       
{  
    var functionToCall = eval(arguments[0]);                           
    var argArray = new Array();      
    for (var i = 1; i < arguments.length; ++i)                         
    {                                
        argArray.push(arguments[i]); 
    }                                
    functionToCall.apply(functionToCall, argArray);                    
}  
function getMovieObj(movieName) {    
		if (navigator.appName.indexOf('Microsoft') != -1){                  
			return window[movieName];       
		}else{                            
			return document[movieName];     
		}                                 
}  
var FlashTag65Ins = new FlashTag65('', 100, 10); 
FlashTag65Ins.setNew('http://65.up.hiao.com/up/lunbo950-90.swf?varsUrl=http://65.up.hiao.com/up//lunbo65.txt', 950,90);  
FlashTag65Ins.setVersion('7,0,19,0');             FlashTag65Ins.write(document); 