/*
 *  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){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(x,AA){var AD=x.document,AB="DOMContentLoaded",z=x.navigator.userAgent.toLowerCase(),y=parseFloat(z.match(/.+(?:rv|it|ml|ra|ie)[\/: ]([\d.]+)/)[1]),AE=x.onload;function AC(u){if(!j){j=true;AA((u.type&&u.type===AB)?u:{type:AB,target:AD,eventPhase:0,currentTarget:AD,timeStamp:new Date().getTime(),eventType:u.type||u})}}if(/webkit\//.test(z)&&y<525.13){(function(){if(/complete|loaded/.test(AD.readyState)){AC("khtml-poll")}else{setTimeout(arguments.callee,10)}}())}else{if(/msie/.test(z)&&!x.opera){AD.attachEvent("onreadystatechange",function(u){if(AD.readyState==="complete"){AD.detachEvent("on"+u.type,arguments.callee);AC(u)}});if(x.self===top){(function(){try{AD.documentElement.doScroll("left")}catch(u){setTimeout(arguments.callee,10);return }AC("msie-poll")}())}}else{if(AD.addEventListener&&(/opera\//.test(z)&&y>9)||(/gecko\//.test(z)&&y>=1.8)||(/khtml\//.test(z)&&y>=4)||(/webkit\//.test(z)&&y>=525.13)){AD.addEventListener(AB,function(u){AD.removeEventListener(AB,arguments.callee,false);AC(u)},false)}else{x.onload=function(u){AC(u||x.event);if(typeof AE==="function"){AE(u||x.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 x=u.split(", "),AA={},z,v,y;for(z=0,v=x.length;z<v;z++){y=x[z].replace(/-/g,"");if(!AA.hasOwnProperty(y)){AA[y]=x[z]}}return AA},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(AS,AQ){var AB=Hyphenator.languages[AS],AM,AP,AO,AE,x,AI,AF,AK,u,y,AG=false,AJ,AH,AR,AD,AA,AN,AL,v,AC;if(AQ===""){return""}if(AQ.indexOf(T)!==-1){return AQ}if(S&&AB.cache.hasOwnProperty(AQ)){return AB.cache[AQ]}if(AB.exceptions.hasOwnProperty(AQ)){return AB.exceptions[AQ].replace(/-/g,T)}if(AQ.indexOf("-")!==-1){AM=AQ.split("-");for(AP=0,AO=AM.length;AP<AO;AP++){AM[AP]=N(AS,AM[AP])}return AM.join("-"+k)}AE="_"+AQ+"_";x=AE.length;AI=AE.split("");AE=AE.toLowerCase();AF=[];AN={"0":true,"1":true,"2":true,"3":true,"4":true,"5":true,"6":true,"7":true,"8":true,"9":true};AL=x-AB.shortestPattern;for(AK=0;AK<=AL;AK++){u=Math.min((x-AK),AB.longestPattern);for(y=AB.shortestPattern;y<=u;y++){if(AB.patterns.hasOwnProperty(AJ=AE.substr(AK,y))){AG=AB.patterns[AJ]}else{continue}AD=1;AH=AG.length;for(AP=0;AP<AH;AP++){AR=AG.charAt(AP);if(AN[AR]){if(AP===0){AA=AK-1;if(!AF[AA]||AF[AA]<AR){AF[AA]=AR}}else{AA=AK+AP-AD;if(!AF[AA]||AF[AA]<AR){AF[AA]=AR}}AD++}}}}v=0;for(AP=AB.leftmin;AP<=(AQ.length-AB.rightmin);AP++){if(!!(AF[AP]&1)){AI.splice(AP+v+1,0,T);v++}}AC=AI.slice(1,-1).join("");if(S){AB.cache[AQ]=AC}return AC},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()};