<!--
if(typeof pv=="undefined"){var pv=new Object();}

pv.AppletObject=function(url,nclass,w,h){
	if(!document.createElement||!document.getElementById){return;}	
	
	this.params=new Object();
	this.attributes=new Array();

	if(url){this.setAttribute("codebase",url);}
	if(nclass){this.setAttribute("code",nclass);}
	if(w){this.setAttribute("width",w);}
	if(h){this.setAttribute("height",h);}	

};
	
pv.AppletObject.prototype={setAttribute:function(nameatr,valueatr){
	this.attributes[nameatr]=valueatr;}
	,getAttribute:function(valueatrdev){
	return this.attributes[valueatrdev];
	},addParam:function(nparam,valueparam){
	this.params[nparam]=valueparam;
	},getParams:function(){
	return this.params;
	},getAppletHTML:function(){
		var oapp="";		

		oapp="<applet codebase=\""+this.getAttribute("codebase")+"\"  code=\""+this.getAttribute("code")+"\"  width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";			
		
		var paramapp=this.getParams();		
		for(var key in paramapp){oapp+="<param name=\""+key+"\" value=\""+paramapp[key]+"\" />";}	
		
		oapp+="</applet>";
		return oapp;
		
		},write:function(nlayer){				
			var nl=(typeof nlayer=="string")?document.getElementById(nlayer):nlayer;
			nl.innerHTML=this.getAppletHTML();
			return true;				
	}
};


if(Array.prototype.push==null){
		Array.prototype.push=function(num){
			this[this.length]=num;
			return this.length;
		};
}

var AppletObject=pv.AppletObject;
-->