var FastInit={onload:function(){if(FastInit.done){return;}
FastInit.done=true;for(var x=0,al=FastInit.f.length;x<al;x++){FastInit.f[x]();}},addOnLoad:function(){var a=arguments;for(var x=0,al=a.length;x<al;x++){if(typeof a[x]==='function'){if(FastInit.done){a[x]();}else{FastInit.f.push(a[x]);}}}},listen:function(){if(/WebKit|khtml/i.test(navigator.userAgent)){FastInit.timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(FastInit.timer);delete FastInit.timer;FastInit.onload();}},10);}else if(document.addEventListener){document.addEventListener('DOMContentLoaded',FastInit.onload,false);}else if(!FastInit.iew32){if(window.addEventListener){window.addEventListener('load',FastInit.onload,false);}else if(window.attachEvent){return window.attachEvent('onload',FastInit.onload);}}},f:[],done:false,timer:null,iew32:false};FastInit.listen();function getX(element){var offset=0;if(typeof element.offsetParent!='undefined'){do{offset+=element.offsetTop;element=element.offsetParent;}while(element!=null)}
return offset;}
function getY(element){var offset=0;if(typeof element.offsetParent!='undefined'){do{offset+=element.offsetLeft;element=element.offsetParent;}while(element!=null)}
return offset;}
function getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}else{windowWidth=self.innerWidth;}
windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=xScroll;}else{pageWidth=windowWidth;}
return[pageWidth+10,pageHeight+20];}
function formFieldsMarkError(enclosingId){var items=$(enclosingId).childElements();for(var i=0;i<items.length;i++){if(items[i].className=='inputTextLeft')
items[i].className='inputTextLeftRed';if(items[i].className=='inputTextBox')
items[i].className='inputTextBoxRed';if(items[i].className=='inputTextRight')
items[i].className='inputTextRightRed';if(items[i].className=='inputAreaLeft')
items[i].className='inputAreaLeftRed';if(items[i].className=='inputAreaBox')
items[i].className='inputAreaBoxRed';if(items[i].className=='inputAreaRight')
items[i].className='inputAreaRightRed';}
return true;}
function formFieldsMarkNormal(enclosingId){var items=$(enclosingId).childElements();for(var i=0;i<items.length;i++){if(items[i].className=='inputTextLeftRed')
items[i].className='inputTextLeft';if(items[i].className=='inputTextBoxRed')
items[i].className='inputTextBox';if(items[i].className=='inputTextRightRed')
items[i].className='inputTextRight';if(items[i].className=='inputAreaLeftRed')
items[i].className='inputAreaLeft';if(items[i].className=='inputAreaBoxRed')
items[i].className='inputAreaBox';if(items[i].className=='inputAreaRightRed')
items[i].className='inputAreaRight';}
return true;}
function setBookmark(src){if(window.sidebar)
window.sidebar.addPanel(document.title,self.location.href,"");else if(window.opera&&window.print){var elem=document.createElement('a');elem.setAttribute('href',self.location.href);elem.setAttribute('title',document.title);elem.setAttribute('rel','sidebar');elem.click();}else if(document.all)
window.external.AddFavorite(self.location.href,document.title);track('setBookmark',src);}
function track(what,data){new Ajax.Request('/ajax.php?module=tracker&method=track&id=¶ms=',{method:'post',parameters:{what:what,data:data}});}
Event.observe(window,'load',function(){var input=$$('input[name="searchString"]')[0];if(input){var queryString=document.referrer.split('?')[1];if(queryString){var searchQuery=queryString.toQueryParams().q;if(searchQuery){input.value=searchQuery.gsub(/\+/,' ');input.focus();}}}});var navActive=null;var subnavActive=null;function navInit(){var items=$$('li');for(var i=0;i<items.length;i++){info=items[i].id.split("-");infoClass=items[i].className.split("-");if(info[0]=='nav'){items[i].onmouseover=navOn;items[i].onmouseout=navOff;if(infoClass[1]=='on')
navActive=info[2];}}}
function subnavInit(){var items=$$('div');for(var i=0;i<items.length;i++){info=items[i].id.split("-");infoClass=items[i].className.split("-");if(info[0]=='subnav'){items[i].onmouseover=subnavOn;items[i].onmouseout=subnavOff;if(infoClass[1]=='on')
subnavActive=info[1];}}
new Ajax.Request('/ajax.php?module=menu&method=renderDropDownNavigation&id=¶ms=',{method:'get',onSuccess:function(transport){var response=transport.responseText.evalJSON();if(!response){return;}
for(var i=0;i<response.length;i++){new Insertion.After($("nav-rgt-"+response[i].id),response[i].html);}}});}
function navOn(){info=this.id.split("-");$("nav-lft-"+info[2]).className="lft-on";$("nav-rgt-"+info[2]).className="rgt-on";if(subnavElement=$("subnav-layer-"+info[2])){offTop=getX(this)+21;offLft=getY($("nav-lft-"+info[2]));subnavElement.onmouseover=subnavLayerOn;subnavElement.onmouseout=navOff;subnavElement.style.top=offTop+"px";subnavElement.style.left=offLft+"px";subnavElement.style.display="block";}}
function navOff(){info=this.id.split("-");if(navActive!=info[2]){$("nav-lft-"+info[2]).className="lft";$("nav-rgt-"+info[2]).className="rgt";}
if($("subnav-layer-"+info[2]))
$("subnav-layer-"+info[2]).style.display="none";}
function subnavLayerOn(){info=this.id.split("-");$("nav-lft-"+info[2]).className="lft-on";$("nav-rgt-"+info[2]).className="rgt-on";$("subnav-layer-"+info[2]).style.display="block";}
function subnavOn(){this.className="item-on";}
function subnavOff(){info=this.id.split("-");if(subnavActive!=info[1])
this.className="item";}
// Link Building Pro ver 1.0
// Copyright Latent Motion, at seox.org

function init(){

// Options:
var useMetaKeyword = false; // Otherwise, page title
var minLength = 40; // Min selection chars
var useMetaAuthor = false; // Otherwise use domain
var addLinks = true; // Otherwise, just cite at end
var skip = new Array();
	
function D(b,a,c){if(b.addEventListener)b.addEventListener(a,c,false);else b.attachEvent&&b.attachEvent("on"+a,c)}function o(b,a){if(typeof b=="undefined"||b==null||!RegExp)return false;a=new RegExp("(^|\\s)"+a+"(\\s|$)");if(typeof b=="string")return a.test(b);else if(typeof b=="object"&&b.className)return a.test(b.className);return false}function E(b,a){var c=false,j;for(j=b.parentNode;j!=undefined;){if(b.parentNode==e.body)break;else if(b.parentNode==a){c=true;break}j=j.parentNode}return c}
function F(b){return b.replace(/^\s*/,"")}function G(b){return b.replace(/\s*$/,"")}function H(b){return G(F(b))}var I=new Array("home","link","click here"),e=document,x=window,t=e.getElementsByTagName("body")[0],p=e.getElementsByName("author"),i=e.getElementsByName("keywords"),q=x.location.toString(),u=e.title.toString(),d;if(!Array.indexOf)Array.prototype.indexOf=function(b,a){var c=-1;for(a=a|0;a<this.length||a==-1;a++)if(this[a]==b)c=a;return c};if(i.length>0&&useMetaKeyword){i=e.getElementsByName("keywords")[0].getAttribute("content").split(",");
u=Math.floor(Math.random()*i.length);i=i[u].replace(/^\s*|\s*$/,"")}else i=u;p=(p.length>0&&useMetaAuthor)?p[0].getAttribute("content"):e.domain;var y="<p id='credit'><br/>Quelle: <a href='"+q+"' title='"+i+"'>"+q+"</a></p>";if(/MSIE/g.test(navigator.userAgent))var v="msie";else if(/Safari/g.test(navigator.userAgent))v="safChrome";q=e.createElement("span");q.setAttribute("id","sasText");t.appendChild(q);d=e.getElementById("sasText");posType=document.all&&!window.opera&&!window.XMLHttpRequest?
"absolute":"fixed";d.style.position=posType;d.style.top="0px";d.style.left="-9999px";D(t,"copy",function(){d.innerHTML=y;if(v=="msie"){for(var b=e.selection.createRange(),a=b.parentElement();a.nodeName!="BODY"&&!o(a,"lbExclude");)a=a.parentNode;if(o(a,"lbExclude"))return true;a=e.body.createTextRange();a.moveToElementText(d);var c=b.duplicate();c=c.htmlText;if(c.length>minLength){d.id="tempSasText";d.innerHTML=c+y;(c=e.getElementById("sasText"))&&c.parentNode.removeChild(c);d.id="sasText";a.select()}}else{b=
x.getSelection();for(a=b.anchorNode;a.nodeName!="BODY"&&!o(a,"lbExclude");)a=a.parentNode;if(o(a,"lbExclude"))return false;if(b==""&&v=="safChrome"){d.innerHTML=t.innerHTML;a=document.createRange();b.removeAllRanges();a.selectNodeContents(d);b.addRange(a)}else if(b.toString().length>minLength){var j=e.getElementById("credit");a=b.getRangeAt(0);c=a.cloneContents();d.id="tempSasText";d.insertBefore(c,j);(c=e.getElementById("sasText"))&&c.parentNode.removeChild(c);d.id="sasText";b.removeAllRanges();a.selectNode(d);
b.addRange(a)}}var w=[];a=d.getElementsByTagName("a");for(b=0;b<a.length;b++)w.push(a[b].href);if(addLinks){a=e.getElementsByTagName("a");for(b=0;b<a.length;b++){var r=a[b].href;if(w.indexOf(r)==-1)if(E(a[b],d)==false){var f=H(a[b].innerHTML).toLowerCase();if(skip.indexOf(f)==-1)if((new RegExp(e.domain,"g")).test(r)){var z=[];function n(g,k,l){for(var A=g.childNodes.length;A-- >0;){var h=g.childNodes[A];if(h.nodeType===1)h.tagName.toLowerCase()!=="a"&&n(h,k,l);else if(h.nodeType===3)for(var m=h.data.length;1;){m=
h.data.lastIndexOf(k,m);if(m===-1||z.indexOf(k.toLowerCase())!==-1)break;var B=/\w/;if(h.nodeValue.charAt(m-1).match(B)||h.nodeValue.charAt(m+f.length).match(B))break;l.call(window,h,m)}}}function s(g,k){g.splitText(k+f.length);var l=e.createElement("a");l.href=r;l.appendChild(g.splitText(k));g.parentNode.insertBefore(l,g.nextSibling);z.push(f.toLowerCase());w.push(r)}n(d,f,s);f=f.charAt(0).toUpperCase()+f.slice(1);n(d,f,s);f=f.toUpperCase();n(d,f,s);f=f.replace(/\w\S*/g,function(g){return g.charAt(0).toUpperCase()+
g.substr(1).toLowerCase()});n(d,f,s)}}}}})}window.onload=init;


