		//<![CDATA[

		//instansiate object with given vars
		
		ObjectManager = function(fileName, id, width, height, type, autostart, showcontrols, loop, bgcolor){
		            this.params = new Object();
		            this.variables = new Object();
		            this.attributes = new Array();
		            if(fileName) this.attributes['fileName'] = fileName;
		            if(id) this.attributes['id'] = id;
		            if(width) this.attributes['width'] = width;
		            if(height) this.attributes['height'] = height;
		            if(type) this.attributes['type'] = type;
		            if(autostart) this.attributes['autostart'] = autostart;
		            if(showcontrols) this.attributes['showcontrols'] = showcontrols;
		            if(loop) this.attributes['loop'] = loop;
					if(bgcolor) this.attributes['bgcolor'] = bgcolor;
					 
		            this.getEmbedHTML = function() {
		                        var embedNode = "";
								
		                        embedNode = '<embed '; 
		
		                        embedNode += ' id="'+ this.attributes['id'] +'" ';
		
		                        embedNode += ' type="'+ this.attributes['type'] +'" ';
		
		                        embedNode += ' src="'+ this.attributes['fileName'] +'" ';
		
		                        embedNode += ' width="'+ this.attributes['width'] +'" ';
		
		                        embedNode += ' height="'+ this.attributes['height'] +'" ';
		
		                        embedNode += ' autostart="'+ this.attributes['autostart'] +'" '; 
		
		                        embedNode += ' showcontrols="'+ this.attributes['showcontrols'] +'" ';
		
		                        embedNode += ' loop="'+ this.attributes['loop'] +'" ';
								
								embedNode += ' bgcolor="'+ this.attributes['bgcolor'] +'" ';
								
		                        embedNode += '/>';
		
		                        return embedNode;
		
		            }
		
		            this.writeHTML = function(elementId){
		
		                        var contentElement = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
		
		                        contentElement.innerHTML = this.getEmbedHTML();
		
		            }
		
	}
	
	//]]>
	
	
	
	
	
	
	
	



	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
