/*
 *  Hyphenator 2.2.0 - client side hyphenation for webbrowsers
 *  Copyright (C) 2009  Mathias Nater, Zürich (mathias at mnn dot ch)
 *  Project and Source hosted on http://code.google.com/p/hyphenator/
 * 
 *  This JavaScript code is free software: you can redistribute
 *  it and/or modify it under the terms of the GNU Lesser
 *  General Public License (GNU LGPL) as published by the Free Software
 *  Foundation, either version 3 of the License, or (at your option)
 *  any later version.  The code is distributed WITHOUT ANY WARRANTY;
 *  without even the implied warranty of MERCHANTABILITY or FITNESS
 *  FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.
 *
 *  As additional permission under GNU GPL version 3 section 7, you
 *  may distribute non-source (e.g., minimized or compacted) forms of
 *  that code without the copy of the GNU GPL normally required by
 *  section 4, provided you include this license notice and a URL
 *  through which recipients can access the Corresponding Source.
 */
var Hyphenator=(function(){var x="da, bn, de, en, es, fi, fr, gu, hi, it, kn, ml, nl, or, pa, pl, pt, ru, sv, ta, te",b=(function(){var V,W=0,U=x.split(", "),X={};
while(!!(V=U[W++])){X[V]=true}return X}()),A={da:"Denne websides sprog kunne ikke bestemmes. Angiv venligst sprog:",de:"Die Sprache dieser Webseite konnte nicht automatisch bestimmt werden. Bitte Sprache angeben:",en:"The language of this website could not be determined automatically. Please indicate main language:",es:"El idioma del sitio no pudo determinarse autom%E1ticamente. Por favor, indique el idioma principal:",fi:"Sivun kielt%E4 ei tunnistettu automaattisesti. M%E4%E4rit%E4 sivun p%E4%E4kieli:",fr:"La langue de ce site n%u2019a pas pu %EAtre d%E9termin%E9e automatiquement. Veuillez indiquer une langue, s.v.p.%A0:",it:"Lingua del sito sconosciuta. Indicare una lingua, per favore:",ml:"ഈ വെ%u0D2C%u0D4D%u200Cസൈറ്റിന്റെ ഭാഷ കണ്ടുപിടിയ്ക്കാ%u0D28%u0D4D%u200D കഴിഞ്ഞില്ല. ഭാഷ ഏതാണെന്നു തിരഞ്ഞെടുക്കുക:",nl:"De taal van deze website kan niet automatisch worden bepaald. Geef de hoofdtaal op:",pt:"A língua deste site não pôde ser determinada automaticamente. Por favor indique a língua principal:",ru:"Язык этого сайта не может быть определен автоматически. Пожалуйста укажите язык:",sv:"Spr%E5ket p%E5 den h%E4r webbplatsen kunde inte avg%F6ras automatiskt. V%E4nligen ange:"},l=(function(){var W=document.getElementsByTagName("script"),V=0,X,Y,U;
while(!!(U=W[V++])){if(!U.src){continue}Y=U.src;X=Y.indexOf("hyphenator.js");if(X==-1){X=Y.indexOf("hyphenator-compress.js")
}if(X!==-1){return Y.substring(0,X)}}return"http://hyphenator.googlecode.com/svn/branches/Version2/"
}()),f=(function(){var U=false;if(l.indexOf(window.location.hostname)!==-1){U=true
}return U}()),J=false,y={script:true,code:true,pre:true,img:true,br:true,samp:true,kbd:true,"var":true,abbr:true,acronym:true,sub:true,sup:true,button:true,option:true,label:true,textarea:true},s=true,z=true,c=false,m="hyphenate",L="donthyphenate",O=6,v=(function(){var Y=null,X=false,W=document.getElementsByTagName("script"),V,U;
for(V=0,U=W.length;V<U;V++){if(!!W[V].getAttribute("src")){Y=W[V].getAttribute("src")
}if(!Y){continue}else{if(Y.indexOf("Hyphenator.js?bm=true")!==-1){X=true}}}return X
}()),D=null,g=[],p={},a={},T=0,i="(\\w*://)((\\w*:)?(\\w*)@)?([\\w\\.]*)?(:\\d*)?(/[\\w#!:\\.?\\+=&%@!\\-]*)*",h="[\\w-\\.]+@[\\w\\.]+",B=new RegExp("("+i+")|("+h+")","i"),K=(function(){var V,U=navigator.userAgent.toLowerCase();
if(U.indexOf("msie 6")===-1){V=String.fromCharCode(8203)}else{V=""}return V}()),M=function(){},r=function(U){alert("Hyphenator.js says:\n\nAn Error ocurred:\n"+U.message)
},S=function(){var W,X=[],V,U;if(document.getElementsByClassName){X=document.getElementsByClassName(m)
}else{W=document.getElementsByTagName("*");U=W.length;for(V=0;V<U;V++){if(W[V].className.indexOf(m)!==-1&&W[V].className.indexOf(L)===-1){X.push(W[V])
}}}return X},e="hidden",t=String.fromCharCode(173),u=K,G=(function(){var U={},V="HyphenatorExpando_"+Math.random(),W=0;
return{getDataForElem:function(X){return U[X[V]]},setDataForElem:function(X,Y){var Z;
if(X[V]&&X[V]!==""){Z=X[V]}else{Z=W++;X[V]=Z}U[Z]=Y},appendDataForElem:function(Y,Z){var X;
for(X in Z){if(Z.hasOwnProperty(X)){U[Y[V]][X]=Z[X]}}},delDataOfElem:function(X){delete U[X[V]]
}}}()),q=function(U,X){var aa=U.document,Y="DOMContentLoaded",W=U.navigator.userAgent.toLowerCase(),V=parseFloat(W.match(/.+(?:rv|it|ml|ra|ie)[\/: ]([\d.]+)/)[1]),ab=U.onload;
function Z(ac){if(!J){J=true;X((ac.type&&ac.type===Y)?ac:{type:Y,target:aa,eventPhase:0,currentTarget:aa,timeStamp:new Date().getTime(),eventType:ac.type||ac})
}}if(/webkit\//.test(W)&&V<525.13){(function(){if(/complete|loaded/.test(aa.readyState)){Z("khtml-poll")
}else{setTimeout(arguments.callee,10)}}())}else{if(/msie/.test(W)&&!U.opera){aa.attachEvent("onreadystatechange",function(ac){if(aa.readyState==="complete"){aa.detachEvent("on"+ac.type,arguments.callee);
Z(ac)}});if(U.self===top){(function(){try{aa.documentElement.doScroll("left")}catch(ac){setTimeout(arguments.callee,10);
return}Z("msie-poll")}())}}else{if(aa.addEventListener&&(/opera\//.test(W)&&V>9)||(/gecko\//.test(W)&&V>=1.8)||(/khtml\//.test(W)&&V>=4)||(/webkit\//.test(W)&&V>=525.13)){aa.addEventListener(Y,function(ac){aa.removeEventListener(Y,arguments.callee,false);
Z(ac)},false)}else{U.onload=function(ac){Z(ac||U.event);if(typeof ab==="function"){ab(ac||U.event)
}}}}}},C=function(V,W){if(!!V.getAttribute("lang")){return V.getAttribute("lang").substring(0,2).toLowerCase()
}try{if(!!V.getAttribute("xml:lang")){return V.getAttribute("xml:lang").substring(0,2).toLowerCase()
}}catch(U){}if(V.tagName!=="HTML"){return C(V.parentNode,true)}if(W){return D}return null
},w=function(){var X=document.getElementsByTagName("html")[0],U=document.getElementsByTagName("meta"),W,aa,Z,Y,V;
D=C(X);if(!D){for(W=0;W<U.length;W++){if(!!U[W].getAttribute("http-equiv")&&(U[W].getAttribute("http-equiv")==="content-language")){D=U[W].getAttribute("content").substring(0,2).toLowerCase()
}if(!!U[W].getAttribute("name")&&(U[W].getAttribute("name")==="DC.language")){D=U[W].getAttribute("content").substring(0,2).toLowerCase()
}if(!!U[W].getAttribute("name")&&(U[W].getAttribute("name")==="language")){D=U[W].getAttribute("content").substring(0,2).toLowerCase()
}}}if(!D){aa="";V=navigator.language?navigator.language:navigator.userLanguage;V=V.substring(0,2);
if(A.hasOwnProperty(V)){aa=A[V]}else{aa=A.en}aa+=" (ISO 639-1)\n\n"+x;Z=window.prompt(unescape(aa),V).toLowerCase();
if(b[Z]){D=Z}else{Y=new Error('The language "'+Z+'" is not yet supported.');throw Y
}}},E=function(){var U,W,V=0,X=function(ab,aa,ac){var ad,Z=0,Y={};if(aa&&e==="hidden"){if(!!ab.getAttribute("style")){Y.hasOwnStyle=true
}else{Y.hasOwnStyle=false}Y.isHidden=true;ab.style.visibility="hidden"}if(ab.lang){Y.language=ab.lang.toLowerCase()
}else{if(ac){Y.language=ac.toLowerCase()}else{Y.language=C(ab,true)}}ac=Y.language;
if(b[ac]){a[ac]=true}else{r(new Error("Language "+ac+" is not yet supported."))}G.setDataForElem(ab,Y);
g.push(ab);while(!!(ad=ab.childNodes[Z++])){if(ad.nodeType===1&&!y[ad.nodeName.toLowerCase()]&&ad.className.indexOf(L)===-1&&!(ad in U)){X(ad,false,ac)
}}};if(Hyphenator.isBookmarklet()){U=document.getElementsByTagName("body")[0];X(U,false,D)
}else{U=S();while(!!(W=U[V++])){X(W,true)}}if(!Hyphenator.languages.hasOwnProperty(D)){a[D]=true
}else{if(!Hyphenator.languages[D].prepared){a[D]=true}}if(g.length>0){G.appendDataForElem(g[g.length-1],{isLast:true})
}},j=function(aa){var X,Z,Y,U,W,V={};Y=Hyphenator.languages[aa].patterns;for(X in Y){if(Y.hasOwnProperty(X)){X=parseInt(X,10);
Z=0;while(!!(U=Y[X].substr(Z,X))){W=U.replace(/\d/g,"");V[W]=U;Z+=X}}}Hyphenator.languages[aa].patterns=V;
Hyphenator.languages[aa].patternsConverted=true},I=function(U){var W=U.split(", "),Z={},Y,V,X;
for(Y=0,V=W.length;Y<V;Y++){X=W[Y].replace(/-/g,"");if(!Z.hasOwnProperty(X)){Z[X]=W[Y]
}}return Z},k=function(Z){var V,Y,W,U;if(b[Z]&&!Hyphenator.languages[Z]){V=l+"patterns/"+Z+".js"
}else{return}if(f&&!v){Y=null;if(typeof XMLHttpRequest!=="undefined"){Y=new XMLHttpRequest()
}if(!Y){try{Y=new ActiveXObject("Msxml2.XMLHTTP")}catch(X){Y=null}}if(Y){Y.open("HEAD",V,false);
Y.setRequestHeader("Cache-Control","no-cache");Y.send(null);if(Y.status===404){r(new Error("Could not load\n"+V));
delete a[Z];return}}}if(document.createElement){W=document.getElementsByTagName("head").item(0);
U=document.createElement("script");U.src=V;U.type="text/javascript";W.appendChild(U)
}},R=function(W){var V=Hyphenator.languages[W],U;if(!V.prepared){if(s){V.cache={}
}if(V.hasOwnProperty("exceptions")){Hyphenator.addExceptions(W,V.exceptions);delete V.exceptions
}if(p.hasOwnProperty("global")){if(p.hasOwnProperty(W)){p[W]+=", "+p.global}else{p[W]=p.global
}}if(p.hasOwnProperty(W)){V.exceptions=I(p[W]);delete p[W]}else{V.exceptions={}}j(W);
U="[\\w"+V.specialChars+"@"+String.fromCharCode(173)+"-]{"+O+",}";V.genRegExp=new RegExp("("+i+")|("+h+")|("+U+")","gi");
V.prepared=true}},N=function(X){var W,V=true,U;if(!z){for(W in Hyphenator.languages){if(Hyphenator.languages.hasOwnProperty(W)){R(W)
}}T=2;X();return}T=1;for(W in a){if(a.hasOwnProperty(W)){k(W);V=false}}if(V){T=2;
X();return}U=window.setInterval(function(){var Y=false,Z;for(Z in a){if(a.hasOwnProperty(Z)){if(!Hyphenator.languages[Z]){Y=false;
break}else{Y=true;delete a[Z];R(Z)}}}if(Y){window.clearInterval(U);T=2;X()}},100)
},o=function(Y){var Z,X,U,W,V;if(!!(Z=document.getElementById("HyphenatorToggleBox"))){if(Y){Z.firstChild.data="Hy-phe-na-ti-on"
}else{Z.firstChild.data="Hyphenation"}}else{X=document.getElementsByTagName("body")[0];
Z=document.createElement("div");U=document.createAttribute("id");U.nodeValue="HyphenatorToggleBox";
V=document.createAttribute("class");V.nodeValue=L;W=document.createTextNode("Hy-phe-na-ti-on");
Z.appendChild(W);Z.setAttributeNode(U);Z.setAttributeNode(V);Z.onclick=Hyphenator.toggleHyphenation;
Z.style.position="absolute";Z.style.top="0px";Z.style.right="0px";Z.style.margin="0";
Z.style.backgroundColor="#AAAAAA";Z.style.color="#FFFFFF";Z.style.font="6pt Arial";
Z.style.letterSpacing="0.2em";Z.style.padding="3px";Z.style.cursor="pointer";Z.style.WebkitBorderBottomLeftRadius="4px";
Z.style.MozBorderRadiusBottomleft="4px";X.appendChild(Z)}},n=function(aq,ao){var Z=Hyphenator.languages[aq],ak,an,am,ac,W,ag,ad,ai,U,X,ae=false,ah,af,ap,ab,Y,al,aj,V,aa;
if(ao===""){return""}if(ao.indexOf(t)!==-1){return ao}if(s&&Z.cache.hasOwnProperty(ao)){return Z.cache[ao]
}if(Z.exceptions.hasOwnProperty(ao)){return Z.exceptions[ao].replace(/-/g,t)}if(ao.indexOf("-")!==-1){ak=ao.split("-");
for(an=0,am=ak.length;an<am;an++){ak[an]=n(aq,ak[an])}return ak.join("-"+K)}ac="_"+ao+"_";
W=ac.length;ag=ac.split("");ac=ac.toLowerCase();ad=[];al={"0":true,"1":true,"2":true,"3":true,"4":true,"5":true,"6":true,"7":true,"8":true,"9":true};
aj=W-Z.shortestPattern;for(ai=0;ai<=aj;ai++){U=Math.min((W-ai),Z.longestPattern);
for(X=Z.shortestPattern;X<=U;X++){if(Z.patterns.hasOwnProperty(ah=ac.substr(ai,X))){ae=Z.patterns[ah]
}else{continue}ab=1;af=ae.length;for(an=0;an<af;an++){ap=ae.charAt(an);if(al[ap]){if(an===0){Y=ai-1;
if(!ad[Y]||ad[Y]<ap){ad[Y]=ap}}else{Y=ai+an-ab;if(!ad[Y]||ad[Y]<ap){ad[Y]=ap}}ab++
}}}}V=0;for(an=Z.leftmin;an<=(ao.length-Z.rightmin);an++){if(!!(ad[an]&1)){ag.splice(an+V+1,0,t);
V++}}aa=ag.slice(1,-1).join("");if(s){Z.cache[ao]=aa}return aa},P=function(U){return U.replace(/([:\/\.\?#&_,;!@]+)/gi,"$&"+u)
},F=function(W){var U=G.getDataForElem(W),Y=U.language,X,Z,V;if(Hyphenator.languages.hasOwnProperty(Y)){X=function(aa){if(B.test(aa)){return P(aa)
}else{return n(Y,aa)}};V=0;while(!!(Z=W.childNodes[V++])){if(Z.nodeType===3&&Z.data.length>=O){Z.data=Z.data.replace(Hyphenator.languages[Y].genRegExp,X)
}}}if(U.isHidden&&e==="hidden"){W.style.visibility="visible";if(!U.hasOwnStyle){W.setAttribute("style","");
W.removeAttribute("style")}else{if(W.style.removeProperty){W.style.removeProperty("visibility")
}else{if(W.style.removeAttribute){W.style.removeAttribute("visibility")}}}}if(U.isLast){T=3;
M()}},Q=function(W){var V,U=0,X;switch(t){case"|":V="\\|";break;case"+":V="\\+";break;
case"*":V="\\*";break;default:V=t}while(!!(X=W.childNodes[U++])){if(X.nodeType===3){X.data=X.data.replace(new RegExp(V,"g"),"");
X.data=X.data.replace(new RegExp(K,"g"),"")}else{if(X.nodeType===1){Q(X)}}}},H=function(){function W(Y,X){return function(){return Y(X)
}}var U=0,V;while(!!(V=g[U++])){window.setTimeout(W(F,V),0)}},d=function(){var U=0,V;
while(!!(V=g[U++])){Q(V)}T=4};return{version:"2.2.0",languages:{},config:function(W){var U=function(X,Y){if(typeof W[X]===Y){return true
}else{r(new Error("Config onError: "+X+" must be of type "+Y));return false}},V;for(V in W){if(W.hasOwnProperty(V)){switch(V){case"classname":if(U("classname","string")){m=W.classname
}break;case"donthyphenateclassname":if(U("donthyphenateclassname","string")){L=W.donthyphenateclassname
}break;case"minwordlength":if(U("minwordlength","number")){O=W.minwordlength}break;
case"hyphenchar":if(U("hyphenchar","string")){if(W.hyphenchar==="&shy;"){W.hyphenchar=String.fromCharCode(173)
}t=W.hyphenchar}break;case"urlhyphenchar":if(W.hasOwnProperty("urlhyphenchar")){if(U("urlhyphenchar","string")){u=W.urlhyphenchar
}}break;case"togglebox":if(U("togglebox","function")){o=W.togglebox}break;case"displaytogglebox":if(U("displaytogglebox","boolean")){c=W.displaytogglebox
}break;case"remoteloading":if(U("remoteloading","boolean")){z=W.remoteloading}break;
case"enablecache":if(U("enablecache","boolean")){s=W.enablecache}break;case"onhyphenationdonecallback":if(U("onhyphenationdonecallback","function")){M=W.onhyphenationdonecallback
}break;case"onerrorhandler":if(U("onerrorhandler","function")){r=W.onerrorhandler
}break;case"intermediatestate":if(U("intermediatestate","string")){e=W.intermediatestate
}break;case"selectorfunction":if(U("selectorfunction","function")){S=W.selectorfunction
}break;default:r(new Error("Hyphenator.config: property "+V+" not known."))}}}},run:function(){var U=function(){try{w();
E();N(H);if(c){o(true)}}catch(V){r(V)}};if(!J){q(window,U)}if(Hyphenator.isBookmarklet()||J){U()
}},addExceptions:function(V,U){if(V===""){V="global"}if(p.hasOwnProperty[V]){p[V]+=", "+U
}else{p[V]=U}},hyphenate:function(W,X){var V,Y,U;if(Hyphenator.languages.hasOwnProperty(X)){if(!Hyphenator.languages[X].prepared){R(X)
}V=function(Z){if(B.test(Z)){return P(Z)}else{return n(X,Z)}};if(typeof W==="string"||W.constructor===String){return W.replace(Hyphenator.languages[X].genRegExp,V)
}else{if(typeof W==="object"){U=0;while(!!(Y=W.childNodes[U++])){if(Y.nodeType===3&&Y.data.length>=O){Y.data=Y.data.replace(Hyphenator.languages[X].genRegExp,V)
}else{if(Y.nodeType===1){Hyphenator.hyphenate(Y,X)}}}}}}else{r(new Error('Language "'+X+'" is not loaded.'))
}},isBookmarklet:function(){return v},toggleHyphenation:function(){switch(T){case 3:d();
o(false);break;case 4:H();o(true);break}}}}());if(Hyphenator.isBookmarklet()){Hyphenator.config({displaytogglebox:true,intermediatestate:"visible"});
Hyphenator.run()};
