function RegisterNamespaces(){
for(var i=0;i<arguments.length;i++){
var p=arguments[i].split("."),w=window;
for(var j=0;j<p.length;j++){
if(!w[p[j]]){
w[p[j]]=new Object();
}
w=w[p[j]];
}
}
}
RegisterNamespaces("Inpl.FontPacker");
Inpl.FontPacker=new function(){
this.init=function(_4,_5){
var _6=_5||11;
var _7,newFontSize,oP,i,s;
for(i=0;i<_4.length;i++){
oP=_4[i];
oP.style.visibility="hidden";
if(oP.scrollHeight>oP.offsetHeight){
_7=getFontSize(oP);
while(--_7>_6&&oP.scrollHeight>oP.offsetHeight){
oP.style.fontSize=_7+"px";
}
}
var _8=oP.getElementsByTagName("a")[0];
_8.innerHTML=_8.innerHTML.replace(/([-a-z0-9_±¡æÆêÊ³£ñÑóÓ¶¦¼¬¿¯\.\!\?]+)/ig,"<span>$1</span>");
var _9=oP.getElementsByTagName("span");
for(s=0;s<_9.length;s++){
if(oP.clientWidth<_9[s].offsetWidth){
_7=getFontSize(_9[s]);
newFontSize=Math.floor(_7*(oP.clientWidth/_9[s].offsetWidth))-1;
_9[s].style.fontSize=newFontSize+"px";
}
}
oP.style.visibility="visible";
}
};
function getFontSize(o){
if(document.all){
return parseInt(o.currentStyle.fontSize);
}else{
return parseInt(document.defaultView.getComputedStyle(o,null).fontSize);
}
}
};


