function Fontastic(classIdent,f){
			this.classIdent = classIdent;
			this.f = f;
			this.init = goFontastic;
		}
	
	
function goFontastic(){
	var f = this.f;
	var rep=$("."+this.classIdent);

	for(var i=0;i<rep.length;i++){
		var ch = new Array();
		var img=new Image();
		var childs = rep[i].childNodes;
		for(var c=0;c<childs.length;c++){

		if(childs[c].nodeType == 3){
			var txt = childs[c].nodeValue;
			rep[i].removeChild(childs[c]);
			c = childs.length;
			}
		}

		var fno=(rep[i].tagName=="A")? rep[i].name : rep[i].title;
		img.src = f.handlerPath+"?"+ f.fontstyle[fno].replace(/(\&amp;)/g,'&') + "&txt=" + txt.replace(/(\&amp;|\&)/g,'%26').replace(/(#)/g,'%23');
		
		var altTxt= txt.replace(/(\&amp;)/g,'&'); 
		if(rep[i].tagName!="A")rep[i].removeAttribute("title");
		else rep[i].removeAttribute("name");
		img.title= (rep[i].tagName=="A")? rep[i].title : altTxt;
		img.alt= (rep[i].tagName=="A")? rep[i].title : altTxt;
		
		if(ie6)img.onload=function(){
				this.width=this.width; this.height=this.height;
				};
		var fChild = rep[i].firstChild;
		
		rep[i].insertBefore(img,fChild);
			
	}
	};
