//minified with http://yui.2clics.net/

Estate=(function(){return{Trace:function(a){if(Estate.Develop&&Estate.Develop.Trace){Estate.Develop.Trace(a)}}}})();Estate.Check=(function(){function a(b,c){for(prop in c){if(typeof(b[prop])=="undefined"){return"The variable '"+prop+"'in the object literal cannot be merged with the original object literal."}if(typeof(c[prop])!=typeof(b[prop])){return"The variable '"+prop+" is of the wrong type. It is '"+typeof(c[prop])+"' but it should be '"+typeof(b[prop])+"'"}if(typeof(c[prop])=="object"){a(b[prop],c[prop])}}}return{ArgumentsCount:function(e,b){if(typeof(b)=="number"){if(e!=b){return"Wrong number of arguments. There argument count should be "+b+", but it is "+e}}if(typeof(b)=="array"){var d=false;for(var c=0;c<b.length;c++){if(d==b[c]){d=true}}}return""},ElementById:function(b,c){if(typeof(b)!="string"){return"Provided element id is not a string but  '"+typeof(b)+"'."}if(!document.getElementById(b)){return"Cannot find HTML element with the id '"+b+"'"}if(arguments.length>1&&typeof(c)=="string"){if(document.getElementById(b).tagName.toLowerCase()!=c&&c!=""){return"HTML element with ID '"+b+"' has the tagname '"+document.getElementById(b).tagName+"' but it should be '"+c+"'"}}return""},Element:function(b){if(typeof(b.tagName)=="undefined"){return"HTML element expected. Type of checked variable is "+typeof(b)}return""},VariableType:function(c,b){if(typeof(c)!=b){return"Unexpected variable type. There variable type should be "+b+", but it is "+typeof(c)}return""},SetLiteralIfDefined:function(c,d,b){if(typeof(d)=="undefined"){return c[b]}if(typeof(d[b])=="undefined"){return c[b]}else{return d[b]}},UpdateLiteral:function(b,c){for(prop in c){b[prop]=c[prop];if(typeof(c[prop])=="object"){Estate.Check.UpdateLiteral(b[prop],c[prop])}}},LiteralUpdatable:function(c,d){if(typeof(c)!="object"){throw new Error("Cannot check literal: 'mainLiteral' is not an object")}if(typeof(d)!="object"){throw new Error("Cannot check literal: 'updateLiteral' second argument is not an object")}var b=a(c,d);if(typeof(b)=="undefined"){return""}else{return b}}}})();Estate.CSSTools=(function(){return{ClassToggle:function(c,b){var a;a=Estate.Check.Element(c);if(a!=""){throw new Error(a)}a=Estate.Check.VariableType(b,"string");if(a!=""){throw new Error(a)}if(c.className.indexOf(b)<0){c.className+=" "+b}else{while(c.className.indexOf(b)>=0){c.className=c.className.replace(" "+b,"");c.className=c.className.replace(b,"")}}},AddClass:function(c,b){var a;a=Estate.Check.Element(c);if(a!=""){throw new Error(a)}a=Estate.Check.VariableType(b,"string");if(a!=""){throw new Error(a)}if(c.className.indexOf(b)<0){c.className+=" "+b}},RemoveClass:function(c,b){var a;a=Estate.Check.Element(c);if(a!=""){throw new Error(a)}a=Estate.Check.VariableType(b,"string");if(a!=""){throw new Error(a)}while(c.className.indexOf(b)>=0){c.className=c.className.replace(" "+b,"");c.className=c.className.replace(b,"")}},ToggleFontSize:function(d){if(arguments.length>0){var b;b=Estate.Check.ElementById(d);if(b!=""){throw new Error(b)}}var a="FontSize";var c="Kleinere letters";var e="Grotere letters";if(Estate.Cookies.Get("fontSize")==null){Estate.Cookies.Set("fontSize","1");Estate.CSSTools.AddClass(document.body,a+"1");if(d!=undefined){document.getElementById(d).innerHTML=c}}else{Estate.Cookies.Delete("fontSize");Estate.CSSTools.RemoveClass(document.body,a+"1");if(d!=undefined){document.getElementById(d).innerHTML=e}}}}})();Estate.Events=(function(){return{AddEvent:function(element,newFunction,eventType){var error;error=Estate.Check.VariableType(element,"object");if(error!=""){throw new Error(error)}error=Estate.Check.VariableType(newFunction,"function");if(error!=""){throw new Error(error)}var oldEvent=eval("element."+eventType);var eventContentType=eval("typeof element."+eventType);if(eventContentType!="function"){eval("element."+eventType+" = newFunction")}else{eval("element."+eventType+" = function(e) { oldEvent(e); newFunction(e); }")}}}})();Estate.Forms=(function(){return{InvertCheckboxSelection:function(d){var b;b=Estate.Check.Element(d);if(b!=""){throw new Error(b)}var a=d.getElementsByTagName("input");if(d.alt=="true"){d.alt=""}else{d.alt="true"}var e=d.alt;for(var c=0;c<a.length;c++){if(a[c].type=="checkbox"){if(d.alt!="true"){a[c].checked=""}else{a[c].checked="checked"}}}}}})();Estate.GetElements=(function(){return{ByClassName:function(b,a){if(document.getElementsByClassName){getElementsByClassName=function(h,l,g){g=g||document;var c=g.getElementsByClassName(h),k=(l)?new RegExp("\\b"+l+"\\b","i"):null,d=[],f;for(var e=0,j=c.length;e<j;e+=1){f=c[e];if(!k||k.test(f.nodeName)){d.push(f)}}return d}}else{if(document.evaluate){getElementsByClassName=function(n,q,m){q=q||"*";m=m||document;var f=n.split(" "),o="",k="http://www.w3.org/1999/xhtml",p=(document.documentElement.namespaceURI===k)?k:null,g=[],c,d;for(var h=0,i=f.length;h<i;h+=1){o+="[contains(concat(' ', @class, ' '), ' "+f[h]+" ')]"}try{c=document.evaluate(".//"+q+o,m,p,0,null)}catch(l){c=document.evaluate(".//"+q+o,m,null,0,null)}while((d=c.iterateNext())){g.push(d)}return g}}else{getElementsByClassName=function(q,t,p){t=t||"*";p=p||document;var g=q.split(" "),s=[],c=(t==="*"&&p.all)?p.all:p.getElementsByTagName(t),o,i=[],n;for(var h=0,d=g.length;h<d;h+=1){s.push(new RegExp("(^|\\s)"+g[h]+"(\\s|$)"))}for(var f=0,r=c.length;f<r;f+=1){o=c[f];n=false;for(var e=0,j=s.length;e<j;e+=1){n=s[e].test(o.className);if(!n){break}}if(n){i.push(o)}}return i}}}return getElementsByClassName(className,tag,elm)}}})();Estate.jQuery=(function(){return{TextOverflowFix:function(f,g){Estate.Develop.Trace(typeof(jQuery));var b;b=Estate.Check.VariableType(f,"object");if(b!=""){throw new Error(b)}b=Estate.Check.VariableType(g,"object");if(b!=""){throw new Error(b)}if(typeof(jQuery)!="function"){throw new Error("jQuery library must be loaded before you can use this method")}var e=15;var d="";var a;var h=100;for(var c=0;c<f.length;c++){a=0;jQuery(f[c]).scrollTop(100);if(jQuery(f[c]+" "+g[c]).size()>0){while(jQuery(f[c]).scrollTop()!=0){d=jQuery(f[c]+" "+g[c]).html();jQuery(f[c]+" "+g[c]).html(d.substr(0,d.length-e)+"...");jQuery(f[c]).scrollTop(0);jQuery(f[c]).scrollTop(100);a++;if(a>h){break}}}a=0;jQuery(f[c]).scrollLeft(100);if(jQuery(f[c]+" "+g[c]).size()>0){while(jQuery(f[c]).scrollLeft()!=0){d=jQuery(f[c]+" "+g[c]).html();jQuery(f[c]+" "+g[c]).html(d.substr(0,d.length-e)+"...");jQuery(f[c]).scrollLeft(0);jQuery(f[c]).scrollLeft(100);jQuery(f[c]+" "+g[c]).width("auto");a++;if(a>h){break}}}}}}})();Estate.Layers=(function(){return{GetPositionX:function(c){var b;b=Estate.Check.Element(c);if(b!=""){throw new Error(b)}var a=0;if(c.offsetParent){while(c.offsetParent){a+=c.offsetLeft;c=c.offsetParent}}else{if(c.x){a+=c.x}}return a},GetPositionY:function(b){var a;a=Estate.Check.Element(b);if(a!=""){throw new Error(a)}var c=0;if(b.offsetParent){while(b.offsetParent){c+=b.offsetTop;b=b.offsetParent}}else{if(b.y){c+=b.y}}return c}}})();Estate.Navigation=(function(){return{LinkBack:function(){if(history.length>0){history.go(-1);return false}else{return true}}}})();Estate.StringTools=(function(){function a(d){var c="";var b;d=d.replace("scrambled:","");d=d.substring(1,(d.length-1));b=d.split("][");for(var e=0;e<b.length;e++){c+=String.fromCharCode(b[e])}return c}return{GetFilenameFromUrl:function(){var c;c=Estate.Check.ArgumentsCount(arguments.length,0);if(c!=""){throw new Error(c)}var d=document.location.href;var b=(d.indexOf("?")==-1)?d.length:d.indexOf("?");return d.substring(d.lastIndexOf("/")+1,b)},GetFilenameWithoutExtension:function(c){var c=c.replace(/^\s|\s$/g,"");if(/\.\w+$/.test(c)){var b=c.match(/([^\/\\]+)\.(\w+)$/);if(b){return b[1]}else{return"no file name"}}else{var b=c.match(/([^\/\\]+)$/);if(b){return b[1]}else{return"no file name"}}},RemoveMeasurement:function(c){var b;b=Estate.Check.ArgumentsCount(arguments.length,1);if(b!=""){throw new Error(b)}b=Estate.Check.VariableType(c,"string");if(b!=""){throw new Error(b)}var d=c;d=d.replace("px","");d=d.replace("em","");d=d.replace("pt","");return d},ShowScrambledMailtoLinks:function(){var c;c=Estate.Check.ArgumentsCount(arguments.length,0);if(c!=""){throw new Error(c)}var b;jQuery('a[href^="scrambled:"]').each(function(){b=a(jQuery(this).attr("href"));jQuery(this).attr("href","mailto:"+b);jQuery(this).html(b)})}}})();Estate.Hack=(function(){return{SetFloatingImages:function(){jQuery('img[align="left"]').addClass("imgAlignLeft");jQuery('img[align="right"]').addClass("imgAlignRight")}}})();
