/*
*/

/* ../mootools-release-1.11.js */
var MooTools={version:"1.11"};function $defined(a){return(a!=undefined)}function $type(b){if(!$defined(b)){return false}if(b.htmlElement){return"element"}var a=typeof b;if(a=="object"&&b.nodeName){switch(b.nodeType){case 1:return"element";case 3:return(/\S/).test(b.nodeValue)?"textnode":"whitespace"}}if(a=="object"||a=="function"){switch(b.constructor){case Array:return"array";case RegExp:return"regexp";case Class:return"class"}if(typeof b.length=="number"){if(b.item){return"collection"}if(b.callee){return"arguments"}}}return a}function $merge(){var d={};for(var f=0;f<arguments.length;f++){for(var b in arguments[f]){var a=arguments[f][b];var c=d[b];if(c&&$type(a)=="object"&&$type(c)=="object"){d[b]=$merge(c,a)}else{d[b]=a}}}return d}var $extend=function(){var a=arguments;if(!a[1]){a=[this,a[0]]}for(var b in a[1]){a[0][b]=a[1][b]}return a[0]};var $native=function(){for(var b=0,a=arguments.length;b<a;b++){arguments[b].extend=function(d){for(var c in d){if(!this.prototype[c]){this.prototype[c]=d[c]}if(!this[c]){this[c]=$native.generic(c)}}}}};$native.generic=function(a){return function(b){return this.prototype[a].apply(b,Array.prototype.slice.call(arguments,1))}};$native(Function,Array,String,Number);function $chk(a){return !!(a||a===0)}function $pick(b,a){return $defined(b)?b:a}function $random(b,a){return Math.floor(Math.random()*(a-b+1)+b)}function $time(){return new Date().getTime()}function $clear(a){clearTimeout(a);clearInterval(a);return null}var Abstract=function(a){a=a||{};a.extend=$extend;return a};var Window=new Abstract(window);var Document=new Abstract(document);document.head=document.getElementsByTagName("head")[0];window.xpath=!!(document.evaluate);if(window.ActiveXObject){window.ie=window[window.XMLHttpRequest?"ie7":"ie6"]=true}else{if(document.childNodes&&!document.all&&!navigator.taintEnabled){window.webkit=window[window.xpath?"webkit420":"webkit419"]=true}else{if(document.getBoxObjectFor!=null){window.gecko=true}}}window.khtml=window.webkit;Object.extend=$extend;if(typeof HTMLElement=="undefined"){var HTMLElement=function(){};if(window.webkit){document.createElement("iframe")}HTMLElement.prototype=(window.webkit)?window["[[DOMElement.prototype]]"]:{}}HTMLElement.prototype.htmlElement=function(){};if(window.ie6){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}var Class=function(b){var a=function(){return(arguments[0]!==null&&this.initialize&&$type(this.initialize)=="function")?this.initialize.apply(this,arguments):this};$extend(a,this);a.prototype=b;a.constructor=Class;return a};Class.empty=function(){};Class.prototype={extend:function(d){var c=new this(null);for(var b in d){var a=c[b];c[b]=Class.Merge(a,d[b])}return new Class(c)},implement:function(){for(var b=0,a=arguments.length;b<a;b++){$extend(this.prototype,arguments[b])}}};Class.Merge=function(c,b){if(c&&c!=b){var d=$type(b);if(d!=$type(c)){return b}switch(d){case"function":var a=function(){this.parent=arguments.callee.parent;return b.apply(this,arguments)};a.parent=c;return a;case"object":return $merge(c,b)}}return b};var Chain=new Class({chain:function(a){this.chains=this.chains||[];this.chains.push(a);return this},callChain:function(){if(this.chains&&this.chains.length){this.chains.shift().delay(10,this)}},clearChain:function(){this.chains=[]}});var Events=new Class({addEvent:function(b,a){if(a!=Class.empty){this.$events=this.$events||{};this.$events[b]=this.$events[b]||[];this.$events[b].include(a)}return this},fireEvent:function(b,c,a){if(this.$events&&this.$events[b]){this.$events[b].each(function(d){d.create({bind:this,delay:a,"arguments":c})()},this)}return this},removeEvent:function(b,a){if(this.$events&&this.$events[b]){this.$events[b].remove(a)}return this}});var Options=new Class({setOptions:function(){this.options=$merge.apply(null,[this.options].extend(arguments));if(this.addEvent){for(var a in this.options){if($type(this.options[a]=="function")&&(/^on[A-Z]/).test(a)){this.addEvent(a,this.options[a])}}}return this}});Array.extend({forEach:function(c,b){for(var d=0,a=this.length;d<a;d++){c.call(b,this[d],d,this)}},filter:function(c,b){var d=[];for(var f=0,a=this.length;f<a;f++){if(c.call(b,this[f],f,this)){d.push(this[f])}}return d},map:function(c,b){var d=[];for(var f=0,a=this.length;f<a;f++){d[f]=c.call(b,this[f],f,this)}return d},every:function(c,b){for(var d=0,a=this.length;d<a;d++){if(!c.call(b,this[d],d,this)){return false}}return true},some:function(c,b){for(var d=0,a=this.length;d<a;d++){if(c.call(b,this[d],d,this)){return true}}return false},indexOf:function(c,b){var a=this.length;for(var d=(b<0)?Math.max(0,a+b):b||0;d<a;d++){if(this[d]===c){return d}}return -1},copy:function(b,c){b=b||0;if(b<0){b=this.length+b}c=c||(this.length-b);var a=[];for(var d=0;d<c;d++){a[d]=this[b++]}return a},remove:function(b){var c=0;var a=this.length;while(c<a){if(this[c]===b){this.splice(c,1);a--}else{c++}}return this},contains:function(a,b){return this.indexOf(a,b)!=-1},associate:function(c){var b={},d=Math.min(this.length,c.length);for(var a=0;a<d;a++){b[c[a]]=this[a]}return b},extend:function(b){for(var c=0,a=b.length;c<a;c++){this.push(b[c])}return this},merge:function(b){for(var c=0,a=b.length;c<a;c++){this.include(b[c])}return this},include:function(a){if(!this.contains(a)){this.push(a)}return this},getRandom:function(){return this[$random(0,this.length-1)]||null},getLast:function(){return this[this.length-1]||null}});Array.prototype.each=Array.prototype.forEach;Array.each=Array.forEach;function $A(a){return Array.copy(a)}function $each(c,d,b){if(c&&typeof c.length=="number"&&$type(c)!="object"){Array.forEach(c,d,b)}else{for(var a in c){d.call(b||c,c[a],a)}}}Array.prototype.test=Array.prototype.contains;String.extend({test:function(a,b){return(($type(a)=="string")?new RegExp(a,b):a).test(this)},toInt:function(){return parseInt(this,10)},toFloat:function(){return parseFloat(this)},camelCase:function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/\w[A-Z]/g,function(a){return(a.charAt(0)+"-"+a.charAt(1).toLowerCase())})},capitalize:function(){return this.replace(/\b[a-z]/g,function(a){return a.toUpperCase()})},trim:function(){return this.replace(/^\s+|\s+$/g,"")},clean:function(){return this.replace(/\s{2,}/g," ").trim()},rgbToHex:function(b){var a=this.match(/\d{1,3}/g);return(a)?a.rgbToHex(b):false},hexToRgb:function(b){var a=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(a)?a.slice(1).hexToRgb(b):false},contains:function(a,b){return(b)?(b+this+b).indexOf(b+a+b)>-1:this.indexOf(a)>-1},escapeRegExp:function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")}});Array.extend({rgbToHex:function(b){if(this.length<3){return false}if(this.length==4&&this[3]==0&&!b){return"transparent"}var d=[];for(var a=0;a<3;a++){var c=(this[a]-0).toString(16);d.push((c.length==1)?"0"+c:c)}return b?d:"#"+d.join("")},hexToRgb:function(b){if(this.length!=3){return false}var a=[];for(var c=0;c<3;c++){a.push(parseInt((this[c].length==1)?this[c]+this[c]:this[c],16))}return b?a:"rgb("+a.join(",")+")"}});Function.extend({create:function(a){var b=this;a=$merge({bind:b,event:false,"arguments":null,delay:false,periodical:false,attempt:false},a);if($chk(a.arguments)&&$type(a.arguments)!="array"){a.arguments=[a.arguments]}return function(d){var g;if(a.event){d=d||window.event;g=[(a.event===true)?d:new a.event(d)];if(a.arguments){g.extend(a.arguments)}}else{g=a.arguments||arguments}var c=function(){return b.apply($pick(a.bind,b),g)};if(a.delay){return setTimeout(c,a.delay)}if(a.periodical){return setInterval(c,a.periodical)}if(a.attempt){try{return c()}catch(f){return false}}return c()}},pass:function(a,b){return this.create({"arguments":a,bind:b})},attempt:function(a,b){return this.create({"arguments":a,bind:b,attempt:true})()},bind:function(b,a){return this.create({bind:b,"arguments":a})},bindAsEventListener:function(b,a){return this.create({bind:b,event:true,"arguments":a})},delay:function(c,b,a){return this.create({delay:c,bind:b,"arguments":a})()},periodical:function(a,b,c){return this.create({periodical:a,bind:b,"arguments":c})()}});Number.extend({toInt:function(){return parseInt(this)},toFloat:function(){return parseFloat(this)},limit:function(b,a){return Math.min(a,Math.max(b,this))},round:function(a){a=Math.pow(10,a||0);return Math.round(this*a)/a},times:function(b){for(var a=0;a<this;a++){b(a)}}});var Element=new Class({initialize:function(b,c){if($type(b)=="string"){if(window.ie&&c&&(c.name||c.type)){var a=(c.name)?' name="'+c.name+'"':"";var d=(c.type)?' type="'+c.type+'"':"";delete c.name;delete c.type;b="<"+b+a+d+">"}b=document.createElement(b)}b=$(b);return(!c||!b)?b:b.set(c)}});var Elements=new Class({initialize:function(a){return(a)?$extend(a,this):this}});Elements.extend=function(a){for(var b in a){this.prototype[b]=a[b];this[b]=$native.generic(b)}};function $(b){if(!b){return null}if(b.htmlElement){return Garbage.collect(b)}if([window,document].contains(b)){return b}var a=$type(b);if(a=="string"){b=document.getElementById(b);a=(b)?"element":false}if(a!="element"){return null}if(b.htmlElement){return Garbage.collect(b)}if(["object","embed"].contains(b.tagName.toLowerCase())){return b}$extend(b,Element.prototype);b.htmlElement=function(){};return Garbage.collect(b)}document.getElementsBySelector=document.getElementsByTagName;function $$(){var b=[];for(var c=0,d=arguments.length;c<d;c++){var a=arguments[c];switch($type(a)){case"element":b.push(a);case"boolean":break;case false:break;case"string":a=document.getElementsBySelector(a,true);default:b.extend(a)}}return $$.unique(b)}$$.unique=function(b){var f=[];for(var g=0,a=b.length;g<a;g++){if(b[g].$included){continue}var h=$(b[g]);if(h&&!h.$included){h.$included=true;f.push(h)}}for(var c=0,d=f.length;c<d;c++){f[c].$included=null}return new Elements(f)};Elements.Multi=function(a){return function(){var f=arguments;var h=[];var b=true;for(var d=0,g=this.length,c;d<g;d++){c=this[d][a].apply(this[d],f);if($type(c)!="element"){b=false}h.push(c)}return(b)?$$.unique(h):h}};Element.extend=function(a){for(var c in a){HTMLElement.prototype[c]=a[c];Element.prototype[c]=a[c];Element[c]=$native.generic(c);var b=(Array.prototype[c])?c+"Elements":c;Elements.prototype[b]=Elements.Multi(c)}};Element.extend({set:function(a){for(var b in a){var c=a[b];switch(b){case"styles":this.setStyles(c);break;case"events":if(this.addEvents){this.addEvents(c)}break;case"properties":this.setProperties(c);break;default:this.setProperty(b,c)}}return this},inject:function(c,a){c=$(c);switch(a){case"before":c.parentNode.insertBefore(this,c);break;case"after":var d=c.getNext();if(!d){c.parentNode.appendChild(this)}else{c.parentNode.insertBefore(this,d)}break;case"top":var b=c.firstChild;if(b){c.insertBefore(this,b);break}default:c.appendChild(this)}return this},injectBefore:function(a){return this.inject(a,"before")},injectAfter:function(a){return this.inject(a,"after")},injectInside:function(a){return this.inject(a,"bottom")},injectTop:function(a){return this.inject(a,"top")},adopt:function(){var a=[];$each(arguments,function(b){a=a.concat(b)});$$(a).inject(this);return this},remove:function(){return this.parentNode.removeChild(this)},clone:function(b){var c=$(this.cloneNode(b!==false));if(!c.$events){return c}c.$events={};for(var a in this.$events){c.$events[a]={keys:$A(this.$events[a].keys),values:$A(this.$events[a].values)}}return c.removeEvents()},replaceWith:function(a){a=$(a);this.parentNode.replaceChild(a,this);return a},appendText:function(a){this.appendChild(document.createTextNode(a));return this},hasClass:function(a){return this.className.contains(a," ")},addClass:function(a){if(!this.hasClass(a)){this.className=(this.className+" "+a).clean()}return this},removeClass:function(a){this.className=this.className.replace(new RegExp("(^|\\s)"+a+"(?:\\s|$)"),"$1").clean();return this},toggleClass:function(a){return this.hasClass(a)?this.removeClass(a):this.addClass(a)},setStyle:function(b,a){switch(b){case"opacity":return this.setOpacity(parseFloat(a));case"float":b=(window.ie)?"styleFloat":"cssFloat"}b=b.camelCase();switch($type(a)){case"number":if(!["zIndex","zoom"].contains(b)){a+="px"}break;case"array":a="rgb("+a.join(",")+")"}this.style[b]=a;return this},setStyles:function(a){switch($type(a)){case"object":Element.setMany(this,"setStyle",a);break;case"string":this.style.cssText=a}return this},setOpacity:function(a){if(a==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden"}}else{if(this.style.visibility!="visible"){this.style.visibility="visible"}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1}if(window.ie){this.style.filter=(a==1)?"":"alpha(opacity="+a*100+")"}this.style.opacity=this.$tmp.opacity=a;return this},getStyle:function(c){c=c.camelCase();var a=this.style[c];if(!$chk(a)){if(c=="opacity"){return this.$tmp.opacity}a=[];for(var d in Element.Styles){if(c==d){Element.Styles[d].each(function(f){var g=this.getStyle(f);a.push(parseInt(g)?g:"0px")},this);if(c=="border"){var b=a.every(function(f){return(f==a[0])});return(b)?a[0]:false}return a.join(" ")}}if(c.contains("border")){if(Element.Styles.border.contains(c)){return["Width","Style","Color"].map(function(f){return this.getStyle(c+f)},this).join(" ")}else{if(Element.borderShort.contains(c)){return["Top","Right","Bottom","Left"].map(function(f){return this.getStyle("border"+f+c.replace("border",""))},this).join(" ")}}}if(document.defaultView){a=document.defaultView.getComputedStyle(this,null).getPropertyValue(c.hyphenate())}else{if(this.currentStyle){a=this.currentStyle[c]}}}if(window.ie){a=Element.fixStyle(c,a,this)}if(a&&c.test(/color/i)&&a.contains("rgb")){return a.split("rgb").splice(1,4).map(function(f){return f.rgbToHex()}).join(" ")}return a},getStyles:function(){return Element.getMany(this,"getStyle",arguments)},walk:function(a,b){a+="Sibling";var c=(b)?this[b]:this[a];while(c&&$type(c)!="element"){c=c[a]}return $(c)},getPrevious:function(){return this.walk("previous")},getNext:function(){return this.walk("next")},getFirst:function(){return this.walk("next","firstChild")},getLast:function(){return this.walk("previous","lastChild")},getParent:function(){return $(this.parentNode)},getChildren:function(){return $$(this.childNodes)},hasChild:function(a){return !!$A(this.getElementsByTagName("*")).contains(a)},getProperty:function(b){var d=Element.Properties[b];if(d){return this[d]}var a=Element.PropertiesIFlag[b]||0;if(!window.ie||a){return this.getAttribute(b,a)}var c=this.attributes[b];return(c)?c.nodeValue:null},removeProperty:function(b){var a=Element.Properties[b];if(a){this[a]=""}else{this.removeAttribute(b)}return this},getProperties:function(){return Element.getMany(this,"getProperty",arguments)},setProperty:function(b,c){var a=Element.Properties[b];if(a){this[a]=c}else{this.setAttribute(b,c)}return this},setProperties:function(a){return Element.setMany(this,"setProperty",a)},setHTML:function(){this.innerHTML=$A(arguments).join("");return this},setText:function(b){var a=this.getTag();if(["style","script"].contains(a)){if(window.ie){if(a=="style"){this.styleSheet.cssText=b}else{if(a=="script"){this.setProperty("text",b)}}return this}else{this.removeChild(this.firstChild);return this.appendText(b)}}this[$defined(this.innerText)?"innerText":"textContent"]=b;return this},getText:function(){var a=this.getTag();if(["style","script"].contains(a)){if(window.ie){if(a=="style"){return this.styleSheet.cssText}else{if(a=="script"){return this.getProperty("text")}}}else{return this.innerHTML}}return($pick(this.innerText,this.textContent))},getTag:function(){return this.tagName.toLowerCase()},empty:function(){Garbage.trash(this.getElementsByTagName("*"));return this.setHTML("")}});Element.fixStyle=function(b,a,c){if($chk(parseInt(a))){return a}if(["height","width"].contains(b)){var f=(b=="width")?["left","right"]:["top","bottom"];var d=0;f.each(function(g){d+=c.getStyle("border-"+g+"-width").toInt()+c.getStyle("padding-"+g).toInt()});return c["offset"+b.capitalize()]-d+"px"}else{if(b.test(/border(.+)Width|margin|padding/)){return"0px"}}return a};Element.Styles={border:[],padding:[],margin:[]};["Top","Right","Bottom","Left"].each(function(b){for(var a in Element.Styles){Element.Styles[a].push(a+b)}});Element.borderShort=["borderWidth","borderStyle","borderColor"];Element.getMany=function(d,b,c){var a={};$each(c,function(f){a[f]=d[b](f)});return a};Element.setMany=function(d,b,c){for(var a in c){d[b](a,c[a])}return d};Element.Properties=new Abstract({"class":"className","for":"htmlFor",colspan:"colSpan",rowspan:"rowSpan",accesskey:"accessKey",tabindex:"tabIndex",maxlength:"maxLength",readonly:"readOnly",frameborder:"frameBorder",value:"value",disabled:"disabled",checked:"checked",multiple:"multiple",selected:"selected"});Element.PropertiesIFlag={href:2,src:2};Element.Methods={Listeners:{addListener:function(b,a){if(this.addEventListener){this.addEventListener(b,a,false)}else{this.attachEvent("on"+b,a)}return this},removeListener:function(b,a){if(this.removeEventListener){this.removeEventListener(b,a,false)}else{this.detachEvent("on"+b,a)}return this}}};window.extend(Element.Methods.Listeners);document.extend(Element.Methods.Listeners);Element.extend(Element.Methods.Listeners);var Garbage={elements:[],collect:function(a){if(!a.$tmp){Garbage.elements.push(a);a.$tmp={opacity:1}}return a},trash:function(d){for(var g=0,a=d.length,f;g<a;g++){if(!(f=d[g])||!f.$tmp){continue}if(f.$events){f.fireEvent("trash").removeEvents()}for(var c in f.$tmp){f.$tmp[c]=null}for(var b in Element.prototype){f[b]=null}Garbage.elements[Garbage.elements.indexOf(f)]=null;f.htmlElement=f.$tmp=f=null}Garbage.elements.remove(null)},empty:function(){Garbage.collect(window);Garbage.collect(document);Garbage.trash(Garbage.elements)}};window.addListener("beforeunload",function(){window.addListener("unload",Garbage.empty);if(window.ie){window.addListener("unload",CollectGarbage)}});var Event=new Class({initialize:function(b){if(b&&b.$extended){return b}this.$extended=true;b=b||window.event;this.event=b;this.type=b.type;this.target=b.target||b.srcElement;if(this.target.nodeType==3){this.target=this.target.parentNode}this.shift=b.shiftKey;this.control=b.ctrlKey;this.alt=b.altKey;this.meta=b.metaKey;if(["DOMMouseScroll","mousewheel"].contains(this.type)){this.wheel=(b.wheelDelta)?b.wheelDelta/120:-(b.detail||0)/3}else{if(this.type.contains("key")){this.code=b.which||b.keyCode;for(var c in Event.keys){if(Event.keys[c]==this.code){this.key=c;break}}if(this.type=="keydown"){var a=this.code-111;if(a>0&&a<13){this.key="f"+a}}this.key=this.key||String.fromCharCode(this.code).toLowerCase()}else{if(this.type.test(/(click|mouse|menu)/)){this.page={x:b.pageX||b.clientX+document.documentElement.scrollLeft,y:b.pageY||b.clientY+document.documentElement.scrollTop};this.client={x:b.pageX?b.pageX-window.pageXOffset:b.clientX,y:b.pageY?b.pageY-window.pageYOffset:b.clientY};this.rightClick=(b.which==3)||(b.button==2);switch(this.type){case"mouseover":this.relatedTarget=b.relatedTarget||b.fromElement;break;case"mouseout":this.relatedTarget=b.relatedTarget||b.toElement}this.fixRelatedTarget()}}}return this},stop:function(){return this.stopPropagation().preventDefault()},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation()}else{this.event.cancelBubble=true}return this},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault()}else{this.event.returnValue=false}return this}});Event.fix={relatedTarget:function(){if(this.relatedTarget&&this.relatedTarget.nodeType==3){this.relatedTarget=this.relatedTarget.parentNode}},relatedTargetGecko:function(){try{Event.fix.relatedTarget.call(this)}catch(a){this.relatedTarget=this.target}}};Event.prototype.fixRelatedTarget=(window.gecko)?Event.fix.relatedTargetGecko:Event.fix.relatedTarget;Event.keys=new Abstract({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});Element.Methods.Events={addEvent:function(c,d){this.$events=this.$events||{};this.$events[c]=this.$events[c]||{keys:[],values:[]};if(this.$events[c].keys.contains(d)){return this}this.$events[c].keys.push(d);var a=c;var b=Element.Events[c];if(b){if(b.add){b.add.call(this,d)}if(b.map){d=b.map}if(b.type){a=b.type}}if(!this.addEventListener){d=d.create({bind:this,event:true})}this.$events[c].values.push(d);return(Element.NativeEvents.contains(a))?this.addListener(a,d):this},removeEvent:function(f,g){if(!this.$events||!this.$events[f]){return this}var b=this.$events[f].keys.indexOf(g);if(b==-1){return this}var a=this.$events[f].keys.splice(b,1)[0];var c=this.$events[f].values.splice(b,1)[0];var d=Element.Events[f];if(d){if(d.remove){d.remove.call(this,g)}if(d.type){f=d.type}}return(Element.NativeEvents.contains(f))?this.removeListener(f,c):this},addEvents:function(a){return Element.setMany(this,"addEvent",a)},removeEvents:function(a){if(!this.$events){return this}if(!a){for(var b in this.$events){this.removeEvents(b)}this.$events=null}else{if(this.$events[a]){this.$events[a].keys.each(function(c){this.removeEvent(a,c)},this);this.$events[a]=null}}return this},fireEvent:function(b,c,a){if(this.$events&&this.$events[b]){this.$events[b].keys.each(function(d){d.create({bind:this,delay:a,"arguments":c})()},this)}return this},cloneEvents:function(b,a){if(!b.$events){return this}if(!a){for(var c in b.$events){this.cloneEvents(b,c)}}else{if(b.$events[a]){b.$events[a].keys.each(function(d){this.addEvent(a,d)},this)}}return this}};window.extend(Element.Methods.Events);document.extend(Element.Methods.Events);Element.extend(Element.Methods.Events);Element.Events=new Abstract({mouseenter:{type:"mouseover",map:function(a){a=new Event(a);if(a.relatedTarget!=this&&!this.hasChild(a.relatedTarget)){this.fireEvent("mouseenter",a)}}},mouseleave:{type:"mouseout",map:function(a){a=new Event(a);if(a.relatedTarget!=this&&!this.hasChild(a.relatedTarget)){this.fireEvent("mouseleave",a)}}},mousewheel:{type:(window.gecko)?"DOMMouseScroll":"mousewheel"}});Element.NativeEvents=["click","dblclick","mouseup","mousedown","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","keydown","keypress","keyup","load","unload","beforeunload","resize","move","focus","blur","change","submit","reset","select","error","abort","contextmenu","scroll"];Function.extend({bindWithEvent:function(b,a){return this.create({bind:b,"arguments":a,event:Event})}});Element.extend({getValue:function(){switch(this.getTag()){case"select":var a=[];$each(this.options,function(b){if(b.selected){a.push($pick(b.value,b.text))}});return(this.multiple)?a:a[0];case"input":if(!(this.checked&&["checkbox","radio"].contains(this.type))&&!["hidden","text","password"].contains(this.type)){break}case"textarea":return this.value}return false},getFormElements:function(){return $$(this.getElementsByTagName("input"),this.getElementsByTagName("select"),this.getElementsByTagName("textarea"))},toQueryString:function(){var a=[];this.getFormElements().each(function(c){var d=c.name;var b=c.getValue();if(b===false||!d||c.disabled){return}var f=function(g){a.push(d+"="+encodeURIComponent(g))};if($type(b)=="array"){b.each(f)}else{f(b)}});return a.join("&")}});Element.extend({scrollTo:function(a,b){this.scrollLeft=a;this.scrollTop=b},getSize:function(){return{scroll:{x:this.scrollLeft,y:this.scrollTop},size:{x:this.offsetWidth,y:this.offsetHeight},scrollSize:{x:this.scrollWidth,y:this.scrollHeight}}},getPosition:function(a){a=a||[];var d=this,b=0,c=0;do{b+=d.offsetLeft||0;c+=d.offsetTop||0;d=d.offsetParent}while(d);a.each(function(f){b-=f.scrollLeft||0;c-=f.scrollTop||0});return{x:b,y:c}},getTop:function(a){return this.getPosition(a).y},getLeft:function(a){return this.getPosition(a).x},getCoordinates:function(c){var a=this.getPosition(c);var b={width:this.offsetWidth,height:this.offsetHeight,left:a.x,top:a.y};b.right=b.left+b.width;b.bottom=b.top+b.height;return b}});window.extend({getWidth:function(){if(this.webkit419){return this.innerWidth}if(this.opera){return document.body.clientWidth}return document.documentElement.clientWidth},getHeight:function(){if(this.webkit419){return this.innerHeight}if(this.opera){return document.body.clientHeight}return document.documentElement.clientHeight},getScrollWidth:function(){if(this.ie){return Math.max(document.documentElement.offsetWidth,document.documentElement.scrollWidth)}if(this.webkit){return document.body.scrollWidth}return document.documentElement.scrollWidth},getScrollHeight:function(){if(this.ie){return Math.max(document.documentElement.offsetHeight,document.documentElement.scrollHeight)}if(this.webkit){return document.body.scrollHeight}return document.documentElement.scrollHeight},getScrollLeft:function(){return this.pageXOffset||document.documentElement.scrollLeft},getScrollTop:function(){return this.pageYOffset||document.documentElement.scrollTop},getSize:function(){return{size:{x:this.getWidth(),y:this.getHeight()},scrollSize:{x:this.getScrollWidth(),y:this.getScrollHeight()},scroll:{x:this.getScrollLeft(),y:this.getScrollTop()}}},getPosition:function(){return{x:0,y:0}}});var Fx={};Fx.Base=new Class({options:{onStart:Class.empty,onComplete:Class.empty,onCancel:Class.empty,transition:function(a){return -(Math.cos(Math.PI*a)-1)/2},duration:500,unit:"px",wait:true,fps:50},initialize:function(a){this.element=this.element||null;this.setOptions(a);if(this.options.initialize){this.options.initialize.call(this)}},step:function(){var a=$time();if(a<this.time+this.options.duration){this.delta=this.options.transition((a-this.time)/this.options.duration);this.setNow();this.increase()}else{this.stop(true);this.set(this.to);this.fireEvent("onComplete",this.element,10);this.callChain()}},set:function(a){this.now=a;this.increase();return this},setNow:function(){this.now=this.compute(this.from,this.to)},compute:function(b,a){return(a-b)*this.delta+b},start:function(b,a){if(!this.options.wait){this.stop()}else{if(this.timer){return this}}this.from=b;this.to=a;this.change=this.to-this.from;this.time=$time();this.timer=this.step.periodical(Math.round(1000/this.options.fps),this);this.fireEvent("onStart",this.element);return this},stop:function(a){if(!this.timer){return this}this.timer=$clear(this.timer);if(!a){this.fireEvent("onCancel",this.element)}return this},custom:function(b,a){return this.start(b,a)},clearTimer:function(a){return this.stop(a)}});Fx.Base.implement(new Chain,new Events,new Options);Fx.CSS={select:function(c,b){if(c.test(/color/i)){return this.Color}var a=$type(b);if((a=="array")||(a=="string"&&b.contains(" "))){return this.Multi}return this.Single},parse:function(f,d,a){if(!a.push){a=[a]}var b=a[0],c=a[1];if(!$chk(c)){c=b;b=f.getStyle(d)}var g=this.select(d,c);return{from:g.parse(b),to:g.parse(c),css:g}}};Fx.CSS.Single={parse:function(a){return parseFloat(a)},getNow:function(b,c,a){return a.compute(b,c)},getValue:function(b,a,c){if(a=="px"&&c!="opacity"){b=Math.round(b)}return b+a}};Fx.CSS.Multi={parse:function(a){return a.push?a:a.split(" ").map(function(b){return parseFloat(b)})},getNow:function(b,c,d){var a=[];for(var f=0;f<b.length;f++){a[f]=d.compute(b[f],c[f])}return a},getValue:function(b,a,c){if(a=="px"&&c!="opacity"){b=b.map(Math.round)}return b.join(a+" ")+a}};Fx.CSS.Color={parse:function(a){return a.push?a:a.hexToRgb(true)},getNow:function(b,c,d){var a=[];for(var f=0;f<b.length;f++){a[f]=Math.round(d.compute(b[f],c[f]))}return a},getValue:function(a){return"rgb("+a.join(",")+")"}};Fx.Style=Fx.Base.extend({initialize:function(c,b,a){this.element=$(c);this.property=b;this.parent(a)},hide:function(){return this.set(0)},setNow:function(){this.now=this.css.getNow(this.from,this.to,this)},set:function(a){this.css=Fx.CSS.select(this.property,a);return this.parent(this.css.parse(a))},start:function(b,c){if(this.timer&&this.options.wait){return this}var a=Fx.CSS.parse(this.element,this.property,[b,c]);this.css=a.css;return this.parent(a.from,a.to)},increase:function(){this.element.setStyle(this.property,this.css.getValue(this.now,this.options.unit,this.property))}});Element.extend({effect:function(b,a){return new Fx.Style(this,b,a)}});Fx.Transition=function(b,a){a=a||[];if($type(a)!="array"){a=[a]}return $extend(b,{easeIn:function(c){return b(c,a)},easeOut:function(c){return 1-b(1-c,a)},easeInOut:function(c){return(c<=0.5)?b(2*c,a)/2:(2-b(2*(1-c),a))/2}})};Fx.Transitions=new Abstract({linear:function(a){return a}});Fx.Transitions.extend=function(a){for(var b in a){Fx.Transitions[b]=new Fx.Transition(a[b]);Fx.Transitions.compat(b)}};Fx.Transitions.compat=function(a){["In","Out","InOut"].each(function(b){Fx.Transitions[a.toLowerCase()+b]=Fx.Transitions[a]["ease"+b]})};Fx.Transitions.extend({Pow:function(b,a){return Math.pow(b,a[0]||6)},Expo:function(a){return Math.pow(2,8*(a-1))},Circ:function(a){return 1-Math.sin(Math.acos(a))},Sine:function(a){return 1-Math.sin((1-a)*Math.PI/2)},Back:function(b,a){a=a[0]||1.618;return Math.pow(b,2)*((a+1)*b-a)},Bounce:function(b){var c;for(var d=0,a=1;1;d+=a,a/=2){if(b>=(7-4*d)/11){c=-Math.pow((11-6*d-11*b)/4,2)+a*a;break}}return c},Elastic:function(b,a){return Math.pow(2,10*--b)*Math.cos(20*b*Math.PI*(a[0]||1)/3)}});["Quad","Cubic","Quart","Quint"].each(function(b,a){Fx.Transitions[b]=new Fx.Transition(function(c){return Math.pow(c,[a+2])});Fx.Transitions.compat(b)});var XHR=new Class({options:{method:"post",async:true,onRequest:Class.empty,onSuccess:Class.empty,onFailure:Class.empty,urlEncoded:true,encoding:"utf-8",autoCancel:false,headers:{}},setTransport:function(){this.transport=(window.XMLHttpRequest)?new XMLHttpRequest():(window.ie?new ActiveXObject("Microsoft.XMLHTTP"):false);return this},initialize:function(a){this.setTransport().setOptions(a);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers={};if(this.options.urlEncoded&&this.options.method=="post"){var b=(this.options.encoding)?"; charset="+this.options.encoding:"";this.setHeader("Content-type","application/x-www-form-urlencoded"+b)}if(this.options.initialize){this.options.initialize.call(this)}},onStateChange:function(){if(this.transport.readyState!=4||!this.running){return}this.running=false;var a=0;try{a=this.transport.status}catch(b){}if(this.options.isSuccess.call(this,a)){this.onSuccess()}else{this.onFailure()}this.transport.onreadystatechange=Class.empty},isSuccess:function(a){return((a>=200)&&(a<300))},onSuccess:function(){this.response={text:this.transport.responseText,xml:this.transport.responseXML};this.fireEvent("onSuccess",[this.response.text,this.response.xml]);this.callChain()},onFailure:function(){this.fireEvent("onFailure",this.transport)},setHeader:function(a,b){this.headers[a]=b;return this},send:function(a,c){if(this.options.autoCancel){this.cancel()}else{if(this.running){return this}}this.running=true;if(c&&this.options.method=="get"){a=a+(a.contains("?")?"&":"?")+c;c=null}this.transport.open(this.options.method.toUpperCase(),a,this.options.async);this.transport.onreadystatechange=this.onStateChange.bind(this);if((this.options.method=="post")&&this.transport.overrideMimeType){this.setHeader("Connection","close")}$extend(this.headers,this.options.headers);for(var d in this.headers){try{this.transport.setRequestHeader(d,this.headers[d])}catch(b){}}this.fireEvent("onRequest");this.transport.send($pick(c,null));return this},cancel:function(){if(!this.running){return this}this.running=false;this.transport.abort();this.transport.onreadystatechange=Class.empty;this.setTransport();this.fireEvent("onCancel");return this}});XHR.implement(new Chain,new Events,new Options);var Ajax=XHR.extend({options:{data:null,update:null,onComplete:Class.empty,evalScripts:false,evalResponse:false},initialize:function(b,a){this.addEvent("onSuccess",this.onComplete);this.setOptions(a);this.options.data=this.options.data||this.options.postBody;if(!["post","get"].contains(this.options.method)){this._method="_method="+this.options.method;this.options.method="post"}this.parent();this.setHeader("X-Requested-With","XMLHttpRequest");this.setHeader("Accept","text/javascript, text/html, application/xml, text/xml, */*");this.url=b},onComplete:function(){if(this.options.update){$(this.options.update).empty().setHTML(this.response.text)}if(this.options.evalScripts||this.options.evalResponse){this.evalScripts()}this.fireEvent("onComplete",[this.response.text,this.response.xml],20)},request:function(a){a=a||this.options.data;switch($type(a)){case"element":a=$(a).toQueryString();break;case"object":a=Object.toQueryString(a)}if(this._method){a=(a)?[this._method,a].join("&"):this._method}return this.send(this.url,a)},evalScripts:function(){var c,a;if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){a=this.response.text}else{a=[];var b=/<script[^>]*>([\s\S]*?)<\/script>/gi;while((c=b.exec(this.response.text))){a.push(c[1])}a=a.join("\n")}if(a){(window.execScript)?window.execScript(a):window.setTimeout(a,0)}},getHeader:function(a){try{return this.transport.getResponseHeader(a)}catch(b){}return null}});Object.toQueryString=function(c){var b=[];for(var a in c){b.push(encodeURIComponent(a)+"="+encodeURIComponent(c[a]))}return b.join("&")};Element.extend({send:function(a){return new Ajax(this.getProperty("action"),$merge({data:this.toQueryString()},a,{method:"post"})).request()}});var Json={toString:function(b){switch($type(b)){case"string":return'"'+b.replace(/(["\\])/g,"\\$1")+'"';case"array":return"["+b.map(Json.toString).join(",")+"]";case"object":var a=[];for(var c in b){a.push(Json.toString(c)+":"+Json.toString(b[c]))}return"{"+a.join(",")+"}";case"number":if(isFinite(b)){break}case false:return"null"}return String(b)},evaluate:function(str,secure){return(($type(str)!="string")||(secure&&!str.test(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/)))?null:eval("("+str+")")}};Json.Remote=XHR.extend({initialize:function(b,a){this.url=b;this.addEvent("onSuccess",this.onComplete);this.parent(a);this.setHeader("X-Request","JSON")},send:function(a){return this.parent(this.url,"json="+Json.toString(a))},onComplete:function(){this.fireEvent("onComplete",[Json.evaluate(this.response.text,this.options.secure)])}});
/* ../../assets/js/prototype.js */
RegExp.__escape=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};String.prototype.__startswith=function(a){return(this.match("^"+a)==a)};String.prototype.__endswith=function(a){return(this.match(a+"$")==a)};String.prototype.__trim=function(e){if(typeof e!="undefined"){var c=new RegExp("^["+RegExp.__escape(e)+"s\xA0]+"),f=new RegExp("["+RegExp.__escape(e)+"s\xA0]+$");return(this.replace(c,"").replace(f,""))}else{var a=this.replace(/^\s\s*/,""),b=/\s/,d=a.length;while(b.test(a.charAt(--d))){}return a.slice(0,d+1)}};String.prototype.__ltrim=function(b){var a=new RegExp("^[s\xA0]+");if(typeof b!="undefined"){a="^["+RegExp.__escape(b)+"s\xA0]+";a=new RegExp(a)}return(this.replace(a,""))};String.prototype.__rtrim=function(b){var a=new RegExp("[s\xA0]+$");if(typeof b!="undefined"){a="["+RegExp.__escape(b)+"s\xA0]+$";a=new RegExp(a)}return(this.replace(a,""))};Array.prototype.__foreach=function(c){var a=this.length;for(var b=0;b<a;b++){c(b,this[b])}};Array.prototype.__indexOf=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){return a}}return -1};Array.prototype.__has=function(a){return this.__indexOf(a)>=0};Hash=function(){var a=0;this.add=function(b,c){this[b]=c;a++};this.length=function(){return a}};isEmptyObject=function(a){for(var b in a){if(a.hasOwnProperty(b)){return false}}return true};
/* ../master.js */
function notepadIs(){var a=navigator.userAgent.toLowerCase();this.ns=((a.indexOf("mozilla")!=-1)&&((a.indexOf("spoofer")==-1)&&(a.indexOf("compatible")==-1)));this.ie=(a.indexOf("msie")!=-1)}var is=new notepadIs();function openWindow(a,b,d,j,f,e,g,c){var h="";if(b==null){b="quokawindow"}if(d==null){d=150}if(j==null){j=100}if(f==null){f=0}if(e==null){e=0}if(g==null){g="no"}if(c==null){c="no"}if((f==0)&&(e==0)){if(navigator.appVersion.substring(0,1)>"3"){f=((screen.availHeight-j)/2);e=(screen.availWidth-d)/2}else{d+=20;j+=40;f=((600-j)/2)-20;e=(800-d)/2}}h=window.open(""+a+"",""+b+"","resizable="+c+",menubar=no,scrollbars="+g+",status=no,directories=no,width="+d+",height="+j+",top="+f+",left="+e);if(h){h.focus()}return h}function FindRoute(g,h,d,a,e,f){if((h=="")&&(g=="")){h=prompt("Geben Sie bitte Ihren Startort an:","");if(h==""){h=prompt("Ohne Startort kann leider keine Routenplanung gemacht werden!\nGeben Sie bitte Ihren Startort an:","")}}if((h!="")&&(h!=null)){h=escape(h);g=escape(g);d=escape(d);e=escape(e);a=escape(a);f=escape(f);var c="http://link2.map24.com/?lid=8b581c76&action=route&maptype=RELOAD&rtype=fast&szip="+g+"&scity="+h+"&scountry="+d+"&dzip="+a+"&dcity="+e+"&dcountry="+f;var b=window.open(c,"Map24","InnerWidth=780,InnerHeight=500,width=800,height=500,top=0,left=0,location=yes,toolbar=no,resizable=yes,scrollbars=yes,menubar=no,status=yes");if(b){b.focus()}}}function ShowCityMap(d,c,e){if((d!="")&&(d!=null)){d=escape(d);c=escape(c);e=escape(e);var b="http://link2.map24.com/?lid=8b581c76&maptype=RELOAD&rtype=fast&zip0="+d+"&city0="+c+"&country0="+e+"&width0=15000";var a=window.open(b,"Map24","InnerWidth=780,InnerHeight=500,width=800,height=500,top=0,left=0,location=yes,toolbar=no,resizable=yes,scrollbars=yes,menubar=no,status=yes");if(a){a.focus()}}}function searchCAT(a,d){var c=document.forms.frmSearch;c.catid.value=a;c.mask.value="";if(d!=null){var b=document.createElement("input");b.type="hidden";b.name="cathits";b.value=d;c.appendChild(b)}c.submit()}function setSearchCITYID(a){var b=document.forms.frmSearch;b.cityid.value=a;b.city.value="";b.citycheck.value="";b.citycodes.value="";b.citydisp.value="";b.zip.value="";b.vtlat.value="";b.vtlong.value="";for(i=0;i<b.sorting.length;++i){if(b.sorting.options[i].value=="distance"){b.sorting.options[i].selected=true}}return true}function searchHELP(b,a){var c=document.forms.frmSearch;c.catid.value=b;c.submit()}function DisplayHideSearch(b,a){var d=document.forms.frmSearch;var c=document.getElementById("searchmask").getElementsByTagName("tr");for(i=0;i<c.length;i++){if(c[i].title=="hide"){if(is.ie){if(c[i].style.display=="none"){c[i].style.display="inline";d.extmask.value="TRUE"}else{c[i].style.display="none";d.extmask.value="FALSE"}}else{if(c[i].style.display=="none"){c[i].style.display="table-row";d.extmask.value="TRUE"}else{c[i].style.display="none";d.extmask.value="FALSE"}}}}}function DeleteSearchParams(d,a){var b=document.forms.frmSearch;var c=(d=="all");if(c){if(b.search1){b.search1.value=""}if(b.searchbool){b.searchbool.value="and"}if(b.pricelimit){b.pricelimit.value="lower"}if(b.price){b.price.value=""}if(b.city){b.city.value=""}if(ViewName=="quokaat"){if(b.country){b.country.value="A"}}else{if(b.country){b.country.value="D"}}if(b.radius){b.radius.value="50"}if(b.sorting){b.sorting.value="datetime_desc"}if(b.dispads){b.dispads.value="20"}if(b.producer){b.producer.value=""}if(b.model){b.model.value=""}}else{if(a.toLowerCase()!="default"){if(b.search1){b.search1.value=""}if(b.searchbool){b.searchbool.value="and"}}}if(!c&&(a.toLowerCase()!="motorbike")){if(b.pricelimit){b.pricelimit.value="lower"}if(b.price){b.price.value=""}}if(b.search2){b.search2.value=""}if(b.body){b.body.value=""}if(b.km_min){b.km_min.value="-1"}if(b.km_max){b.km_max.value="-1"}if(b.built_min){b.built_min.value="-1"}if(b.built_max){b.built_max.value="-1"}if(b.power){b.power.value="0,0"}if(b.color){b.color.value=""}if(b.tiretype){b.tiretype.value=""}if(b.tirewidth){b.tirewidth.value="0"}if(b.tireheight){b.tireheight.value="0"}if(b.tirediameter){b.tirediameter.value="0"}if(b.biketype){b.biketype.value=""}if(b.bikeinch){b.bikeinch.value="0"}}function EXTENDEDSEARCH(g,b){var f=document.forms.frmSearch;var e=true;var a="Einfache Suche";var c="javascript:EXTENDEDSEARCH('OFF','"+b+"')";var d=false;if(g=="OFF"){a="Erweiterte Suche";c="javascript:EXTENDEDSEARCH('ON','"+b+"')";if(f.price.value!=""){d=true}else{if(f.search2){if(f.search2.value!=""){d=true}}}if(d){e=confirm("Beim Schliessen der 'erweiterten Suche' werden die entsprechenden Suchkriterien geloescht!\n\nErweiterte Suche wirklich schliessen?")}if(e){DeleteSearchParams("extended",b)}}if(e){if(document.getElementById){document.getElementById("EXT_LINK").firstChild.nodeValue=a;document.getElementById("EXT_LINK").href=c}else{if(document.all){document.all.EXT_LINK.innerText=a;document.all.EXT_LINK.href=c}else{if(document.layers){a="<a href='javascript:EXTENDEDSEARCH();'>"+a+"</a>";document.layers.EXT_LINK.document.write(a);document.layers.EXT_LINK.document.close()}}}DisplayHideSearch(true,b)}}function CallURL(a){window.location.href=a}var b_FORMSENT=false;function CallOneSUBMIT(a){var b=true;if(!b_FORMSENT){b_FORMSENT=true}else{alert("Sie haben Ihre Daten bereits abgesendet!\nBitte warten Sie ...");b=false}return b}function CallHLSUBMIT(b){var a=true;if(b==""){alert("Schlagzeile fehlt!\nBitte eingeben ...");a=false}if(b=="Schlagzeile"){alert("Bitte geben Sie Ihre Schlagzeile ein");a=false}return a}function NoPreviewService(){var a="Diese Funktion steht in der Vorschau nicht zur Verfügung.";alert(a)}function SwitchNavigator(d,a){var f="NAV_HEAD_";if(a){f="NAV_HEAD_TOP_"}var b=document.getElementById("NAV_CONTENT_"+d);var e=document.getElementById(f+d);var c="";if(b){c=b.style.display;if(b.className=="NAV_CONTENT_CLOSED"){b.className="NAV_CONTENT_OPEN";e.className=f+"OPEN"}else{b.className="NAV_CONTENT_CLOSED";e.className=f+"CLOSED"}}return false}function NaviSearch_Set(s_FIELDNAME,s_VALUE,b_PERFORMSEARCH){var s_FORMFIELD=eval("document.frmNaviSearch."+s_FIELDNAME.toLowerCase());if(s_FIELDNAME=="action"){document.frmNaviSearch.action=s_VALUE;if(b_PERFORMSEARCH==1){NaviSearch_Submit()}}else{if(s_FORMFIELD){if(b_PERFORMSEARCH==1){NaviSearch_CheckPrice(s_FIELDNAME,s_VALUE);s_FORMFIELD.value=s_VALUE;NaviSearch_Submit()}else{s_FORMFIELD.value=s_VALUE}}}return false}function NaviSearch_SetSelectbox(s_FIELDNAME,s_VALUE){var s_FORMFIELD=eval("document.frmNaviSearch."+s_FIELDNAME.toLowerCase());if(s_FORMFIELD){for(i=0;i<s_FORMFIELD.length;++i){if(s_FORMFIELD.options[i].value==s_VALUE){s_FORMFIELD.selectedIndex=i}}}return false}function NaviSearch_CheckPrice(d,c){var f=document.forms.frmNaviSearch;var a=f.price;var b=f.pricelow;var e=f.pricetop;if(a&&b&&e){if(d.toLowerCase()=="price"){if((c=="")||(c=="FREE")||(c=="NOPRICE")){f.pricelow.value="von";f.pricetop.value="bis"}else{a.value=""}}else{if((f.pricelow.value!="von")||(f.pricetop.value!="bis")){a.value=""}}}return true}function NaviSearch_CheckPricePresent(){if(document.getElementById("PriceListCheckBox").checked){NaviSearch_Set("price","FREE",0)}else{NaviSearch_Set("price","",0);eval("document.frmNaviSearch.pricelow").disabled=false;eval("document.frmNaviSearch.pricetop").disabled=false}NaviSearch_Submit()}function NaviSearch_Submit(){var a=document.forms.frmNaviSearch;a.pageno.value="1";a.notepageno.value="1";a.mode.value="search";b_SWITCH_SUBTREE=false;a.submit();return false}function callEroticResult(a){if(!a){a=window.event}if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}NaviSearch_Set("mask","default",0);NaviSearch_Set("showmorecatlink","true",0);NaviSearch_Set("catid","53_5306",1);return false}function MoreElements(c,d){var a=document.getElementById("NAV_CONTENT_"+c+"_MORELINK");var b=document.getElementById("NAV_CONTENT_"+c+"_MOREELEMENTS");if(a&&b){if(d=="open"){a.style.display="none";b.style.display="block"}else{b.style.display="none";a.style.display="block"}}return true}function frmSearchSend(){var a=document.forms.frmSearch;var b=document.forms.frmNaviSearch;if((b)&&(a)){b.search1.value=a.search1.value;b.city.value=a.city.value;b.radius.value=a.radius.value;b.submit()}else{if(a.searchbutton){a.searchbutton.value="YES"}a.submit()}return}function CheckFormFieldDefaultValue(d,b,c){var a=b.value;a=a.replace(/^\s+/,"").replace(/\s+$/,"");if(d=="focus"){if(a==c){b.value=""}}else{if(a==""){b.value=c}}return false}function NAVI_CHANGECITY(a,b){if(b==null){b="25"}NaviSearch_Set("city","",0);NaviSearch_Set("citycheck","",0);NaviSearch_Set("vtlat","0",0);NaviSearch_Set("vtlong","0",0);NaviSearch_Set("suburbid","0",0);NaviSearch_Set("radius",b,0);NaviSearch_Set("cityid",a,1);return false}function NAVI_CHANGESUBURB(a,b){NaviSearch_Set("city","",0);NaviSearch_Set("citycheck","",0);NaviSearch_Set("vtlat","0",0);NaviSearch_Set("vtlong","0",0);NaviSearch_Set("suburbid",b,0);NaviSearch_Set("radius","city",0);NaviSearch_Set("cityid",a,1);return false}var b_SWITCH_SUBTREE=true;function NAVI_SWITCH(a){if(b_SWITCH_SUBTREE){switchDisplayById(a)}return false}function DETAIL_SHOWAD(a,c,d){var c=(c==null)?true:c;if(d===undefined){var b="/qmca/detail/detail.html?showadno="+a;if(c){b=b+"&hback=TRUE"}}else{var b=d;if(c){b=b+"?hback=TRUE"}}window.location.href=b;return true}function SUBMIT_SEARCHFORM(a,h){var c=document.forms.frmNaviSearch;var f=new Array();var b=new Array();var d="&";var j="=";var g="";var k="";if(a!=""){c.action=a}if(h.length>1){f=h.split(d);for(var e=0;e<f.length;e++){s_PAIR=f[e];b=s_PAIR.split(j);g=b[0];g=g.toLowerCase();k=b[1];if(typeof c.elements[g]=="undefined"){NewElement=document.createElement("input");NewElement.setAttribute("type","hidden");NewElement.setAttribute("name",g);NewElement.setAttribute("value",k);c.appendChild(NewElement)}else{c.elements[g].value=k}}}c.submit()}function Detail_SendCustomerRequest(a){var b=document.frmNaviSearch;if(b){NaviSearch_Set("mailfrom",a.mailfrom.value,false);NaviSearch_Set("mailtext",a.mailtext.value,false);NaviSearch_Set("codeuser",a.codeuser.value,false);NaviSearch_Set("code",a.code.value,false);NaviSearch_Set("mailaction",a.mailaction.value,false);b.action=a.action;b.submit()}else{a.submit()}}function isSSLActive(){return("https:"==document.location.protocol)}function pintSSLNotifycation(a){objLayer=self.document.getElementById(a);if(objLayer){if(isSSLActive()){objLayer.innerHTML='Diese Seite ist SSL-gesch&uuml;tzt! <img src="/img/common/secure.gif" border="0" align="texttop" alt="SSL-gesch&uuml;tzt">'}else{objLayer.innerHTML="&nbsp;"}}}function aNoFollow(g,c,e,b,f,d,a){aLJS(g,c,e,b,f,d,a)}function aLJS(f,g,e,h,c,a,d,b,j){if(f==""||g==""){return false}if(typeof(b)!="undefined"&&b==false){strElem="span";strHrefOpen="";strHrefClose="";e="";f=""}else{strElem="a";strHrefOpen=' href="';strHrefClose='"'}strHref="<"+strElem+strHrefOpen+f+strHrefClose;if(typeof(e)!="undefined"&&e!=""){strHref+=' target="'+e+'"'}if(typeof(h)!="undefined"&&h!=""){strHref+=' title="'+h+'"'}if(typeof(c)!="undefined"&&c!=""){strHref+=' class="'+c+'"'}if(typeof(a)!="undefined"&&a!=""){strHref+=' style="'+a+'"'}if(typeof(d)!="undefined"&&d!=""){strHref+=' onclick="'+d+'"'}if(typeof(j)!="undefined"&&j!=""){strHref+=' id="'+j+'"'}strHref+=">"+g+"</"+strElem+">";document.write(strHref)}function aImageArea(d,f,e,h,j,b,g,k,c,a){if(d==""||f==""||e==""){return false}strHrefArea='<area href="'+d+'" coords="'+f+'" shape="'+e+'"';if(h){strHrefArea+=' id="'+h+'"'}if(j){strHrefArea+=' onmouseover="'+j+'"'}if(b){strHrefArea+=' onmouseout="'+b+'"'}if(g){strHrefArea+=' title="'+g+'"'}if(k){strHrefArea+=' alt="'+k+'"'}if(c){strHrefArea+=' target="'+c+'"'}if(a){strHrefArea+=' onclick="'+a+'"'}strHrefArea+=">";document.write(strHrefArea)}function GetSiteEnvironment(){if(top.location!=self.location){return"FRAME"}else{if(window.opener){return"POPUP"}else{return"MAIN"}}}function MainWindowOpener(c,a){var b=GetSiteEnvironment();if(b=="FRAME"){top.location.href=c}else{if(b=="POPUP"){window.opener.location.href=c;if(a){window.close()}}else{window.location.href=c}}}var g_qtt=null;var g_qttFx=null;var g_qttTimerId=0;var g_qttSettingsDefault={numQTooltipWidth:null,strQTooltipPosition:"dyn-bottom-right",blnUseFadeIn:false,blnUseFadeOut:false,numFadeDuration:200,numHideDelay:0,strReferenceElementId:null};var g_qttSettingsRuntime={};function initQTooltip(a){if(a){if(a.numQTooltipWidth){g_qttSettingsDefault.numQTooltipWidth=a.numQTooltipWidth}if(a.strQTooltipPosition){g_qttSettingsDefault.strQTooltipPosition=a.strQTooltipPosition}if(a.blnUseFadeIn){g_qttSettingsDefault.blnUseFadeIn=a.blnUseFadeIn}if(a.blnUseFadeOut){g_qttSettingsDefault.blnUseFadeOut=a.blnUseFadeOut}if(a.numFadeDuration){g_qttSettingsDefault.numFadeDuration=a.numFadeDuration}if(a.numHideDelay){g_qttSettingsDefault.numHideDelay=a.numHideDelay}if(a.strReferenceElementId){g_qttSettingsDefault.strReferenceElementId=a.strReferenceElementId}}document.onmousemove=updateQTooltip}function updateQTooltip(k){if(g_qtt!=null){g_qtt=$(g_qtt);var l=parseInt((document.all)?window.event.x+g_qtt.offsetParent.scrollLeft:k.pageX);var j=parseInt((document.all)?window.event.y+g_qtt.offsetParent.scrollTop:k.pageY);var m=(g_qttSettingsRuntime.numQTooltipWidth?g_qttSettingsRuntime.numQTooltipWidth:(g_qttSettingsDefault.numQTooltipWidth?g_qttSettingsDefault.numQTooltipWidth:g_qtt.getStyle("width").toInt()));var e=(g_qttSettingsRuntime.strQTooltipPosition?g_qttSettingsRuntime.strQTooltipPosition:g_qttSettingsDefault.strQTooltipPosition);e=new String(e);if(e.indexOf("static")===0){var g=e.split("|");e=g[0];var f=parseInt(g[1]);var d=parseInt(g[2])}else{if(e.indexOf("relative")===0){var a=$(g_qttSettingsRuntime.strReferenceElementId);var h=e.split("|");e=h[0];var c=a.getLeft().toInt()+parseInt(h[1]);var b=a.getTop().toInt()+parseInt(h[2])}}switch(e){case"dyn-top-left":numQTooltipHeight=g_qtt.getStyle("height").toInt();numQTooltipTop=j-numQTooltipHeight-25;numQTooltipLeft=l-25-g_qttSettingsRuntime.numQTooltipWidth;break;case"dyn-top-right":numQTooltipHeight=g_qtt.getStyle("height").toInt();numQTooltipTop=j-numQTooltipHeight-25;numQTooltipLeft=l+20;break;case"dyn-bottom-left":numQTooltipTop=j+20;numQTooltipLeft=l-25-parseInt(g_qttSettingsRuntime.numQTooltipWidth);break;case"dyn-bottom-right":numQTooltipTop=j+20;numQTooltipLeft=l+20;break;case"static":numQTooltipTop=d;numQTooltipLeft=f;break;case"relative":numQTooltipTop=b;numQTooltipLeft=c;break;default:numQTooltipTop=j+20;numQTooltipLeft=l+20;break}g_qtt.setStyle("width",m);g_qtt.setStyle("top",numQTooltipTop);g_qtt.setStyle("left",numQTooltipLeft)}}function showQTooltip(b,a){if(g_qttTimerId>0){window.clearTimeout(g_qttTimerId);g_qttTimerId=0;if(g_qttSettingsRuntime.strTooltipId&&g_qttSettingsRuntime.strTooltipId==b){return}}if(g_qttFx){g_qttFx.stop();g_qttFx=null;g_qtt.setStyle("display","none");g_qtt=null}resetRuntimeSettings();g_qttSettingsRuntime.strTooltipId=b;g_qtt=$(b);g_qttSettingsRuntime.numQTooltipWidth=(a?(a.numQTooltipWidth?a.numQTooltipWidth:(g_qttSettingsDefault.numQTooltipWidth?g_qttSettingsDefault.numQTooltipWidth:g_qtt.getStyle("width").toInt())):g_qtt.getStyle("width").toInt());g_qttSettingsRuntime.strQTooltipPosition=(a?(a.strQTooltipPosition?a.strQTooltipPosition:g_qttSettingsDefault.strQTooltipPosition):g_qttSettingsDefault.strQTooltipPosition);g_qttSettingsRuntime.blnUseFadeIn=(a?(a.blnUseFadeIn?a.blnUseFadeIn:g_qttSettingsDefault.blnUseFadeIn):g_qttSettingsDefault.blnUseFadeIn);g_qttSettingsRuntime.blnUseFadeOut=(a?(a.blnUseFadeOut?a.blnUseFadeOut:g_qttSettingsDefault.blnUseFadeOut):g_qttSettingsDefault.blnUseFadeOut);g_qttSettingsRuntime.numFadeDuration=(a?(a.numFadeDuration?a.numFadeDuration:g_qttSettingsDefault.numFadeDuration):g_qttSettingsDefault.numFadeDuration);g_qttSettingsRuntime.numHideDelay=(a?(a.numHideDelay?a.numHideDelay:g_qttSettingsDefault.numHideDelay):g_qttSettingsDefault.numHideDelay);g_qttSettingsRuntime.strReferenceElementId=(a?(a.strReferenceElementId?a.strReferenceElementId:g_qttSettingsDefault.strReferenceElementId):g_qttSettingsDefault.strReferenceElementId);if(g_qttSettingsRuntime.blnUseFadeIn){g_qtt.setStyle("opacity",0);g_qtt.setStyle("display","block");g_qttFx=new Fx.Style(g_qtt,"opacity",{duration:g_qttSettingsRuntime.numFadeDuration});g_qttFx.start(0,1)}else{g_qtt.setStyle("display","block")}}function hideQTooltip(b){var a=function(){};g_qtt=$(b);if(g_qttSettingsRuntime.blnUseFadeOut){a=function(){g_qttFx=new Fx.Style(g_qtt,"opacity",{duration:g_qttSettingsRuntime.numFadeDuration,onComplete:function(){g_qtt.setStyle("opacity",1);g_qtt.setStyle("display","none");g_qtt=null;g_qttFx=null}});g_qttFx.start(1,0)}}else{a=function(){g_qtt.setStyle("display","none");g_qtt=null;g_qttFx=null}}if(g_qttSettingsRuntime.numHideDelay>0){g_qttTimerId=window.setTimeout(function(){a();g_qttTimerId=0},g_qttSettingsRuntime.numHideDelay)}else{a()}}function resetRuntimeSettings(){g_qttSettingsRuntime.numQTooltipWidth=null;g_qttSettingsRuntime.strQTooltipPosition=null;g_qttSettingsRuntime.blnUseFadeIn=null;g_qttSettingsRuntime.blnUseFadeOut=null;g_qttSettingsRuntime.numFadeDuration=null;g_qttSettingsRuntime.numHideDelay=null;g_qttSettingsRuntime.strReferenceElementId=null;g_qttSettingsRuntime.strTooltipId=""}var g_blnAcDebugEnabled=false;var g_arrayAutoCompleter=new Array();var g_numAutoCompleterId=0;var g_numActiveId=0;function initAutoCompleter(a){if(typeof(a)=="object"){return function(){g_arrayAutoCompleter[g_numAutoCompleterId]=new AutoCompleter(a,g_numAutoCompleterId);g_numAutoCompleterId++}}else{return function(){}}}var AutoCompleter=new Class({initialize:function(b,c){this.formElement=$(b.formElement);this.containerElement=null;this.strURL=b.strURL;this.strRequestProxy=null;this.strCallback=null;this.strCallbackNoResult=null;this.strCallbackReset=null;this.arrayInfusion=null;this.numAcItems=20;this.numMinLengthNumeric=2;this.numMinLengthNonNumeric=2;this.numDefaultWidthAcContainer=0;this.numWidthAcContainer=0;this.blnAcContainerShown=false;this.numSelectedItem=0;this.lastResponse=null;this.fadeDuration=300;this.fullOpacity=1;this.numLatency=250;this.timerId=false;if($defined(c)){this.acId=c}else{this.acId=0}if($defined(b.aryContainerElements)&&b.aryContainerElements instanceof Array){for(var a=0;a<b.aryContainerElements.length;a++){if($(b.aryContainerElements[a])){this.containerElement=$(b.aryContainerElements[a]);break}}}if($defined(b.arrayInfusion)){this.arrayInfusion=b.arrayInfusion}if($defined(b.strCallback)){this.strCallback=b.strCallback}if($defined(b.strCallbackNoResult)){this.strCallbackNoResult=b.strCallbackNoResult}if($defined(b.strCallbackReset)){this.strCallbackReset=b.strCallbackReset}if($defined(b.numAcItems)){this.numAcItems=b.numAcItems}if($defined(b.numMinLengthNumeric)){this.numMinLengthNumeric=b.numMinLengthNumeric}if($defined(b.numMinLengthNonNumeric)){this.numMinLengthNonNumeric=b.numMinLengthNonNumeric}if($defined(b.strRequestProxy)){this.strRequestProxy=b.strRequestProxy}if($defined(b.numWidthAcContainer)){this.numWidthAcContainer=b.numWidthAcContainer}this.acAjax=new Ajax();this.blnNeedRequest=false;this.formElement.addEvent("keyup",this.processRequestEventPrep.bindWithEvent(this,""));this.formElement.addEvent("focus",this.processRequestEventPrep.bindWithEvent(this,""));this.formElement.setProperty("autocomplete","off");if($("AutoCompleteContainer")){this.acContainer=$("AutoCompleteContainer");this.acContainer.addClass("AutoCompleteContainer");this.numDefaultWidthAcContainer=parseInt(this.acContainer.getStyle("width"))}else{this.acContainer=$(document.createElement("div"));this.acContainer.addClass("AutoCompleteContainer");this.numDefaultWidthAcContainer=parseInt(this.acContainer.getStyle("width"));$(document.getElementsByTagName("body")[0]).appendChild(this.acContainer)}if(!window.opera){$(document).addEvent("keydown",this.processDocumentKeyEvent.bindWithEvent(this,""))}$(document).addEvent("click",this.processDocumentClickEvent.bindWithEvent(this,""));if(g_blnAcDebugEnabled&&$("AcDebugContainer")){$("AcDebugContainer").setStyle("display","block")}},processRequestEventPrep:function(event,myarg){if($defined(event)){this.debugMessage("event.key = "+event.key);if(event.key=="esc"||event.key=="left"||event.key=="right"||event.key=="up"||event.key=="down"||event.key=="enter"){return false}}var _strValue=this.getFormElementValue();if(_strValue!=""){if($defined(this.strCallbackReset)&&event.type!="focus"){var _strOperation=this.strCallbackReset+"();";_strOperation=_strOperation.replace(/"/g,"'");eval(_strOperation)}}g_numActiveId=this.acId;if(this.timerId){window.clearTimeout(this.timerId)}this.timerId=window.setTimeout(function(){g_arrayAutoCompleter[g_numActiveId].processRequestEvent();g_arrayAutoCompleter[g_numActiveId].debugMessage("Timer re-triggered processing of request event.")},this.numLatency)},processRequestEvent:function(event,myarg){if(this.acAjax&&!this.acAjax.running){var _numMinLength=0;var _strValue=this.getFormElementValue();if(_strValue!=""){if(isNaN(_strValue)){_numMinLength=this.numMinLengthNonNumeric}else{_numMinLength=this.numMinLengthNumeric}if(_strValue.length>=_numMinLength){this.debugMessage("Starting request, act="+_strValue+".");if($defined(this.strRequestProxy)){var _strURLParams="act="+_strValue}else{var _strURLParams="act="+escape(_strValue)}if($defined(this.arrayInfusion)){this.arrayInfusion.forEach(function(obj,index){if(obj.type=="static"){_strURLParams+="&"+obj.name+"="+obj.value}else{_strURLParams+="&"+obj.name+"="+obj.source.value}},this)}if($defined(this.strRequestProxy)){var _strRequestURL=this.strRequestProxy+"?url="+this.strURL+escape("?"+_strURLParams)}else{var _strRequestURL=this.strURL+"?"+_strURLParams}this.debugMessage("Request URL: "+_strRequestURL);this.acAjax=new Ajax(_strRequestURL,{method:"get",onComplete:this.processAcData});this.acAjax.acClassInstance=this;this.acAjax.request()}}else{if(this.blnAcContainerShown){this.acContainer.setStyle("opacity",0);this.clearAcContainerNoFade()}if($defined(this.strCallbackReset)){var _strOperation=this.strCallbackReset+"();";_strOperation=_strOperation.replace(/"/g,"'");eval(_strOperation)}}}else{this.blnNeedRequest=true;this.debugMessage("Need to re-trigger processing of request event.")}},processDocumentKeyEvent:function(event,myarg){event=new Event(event);if(this.blnAcContainerShown){var _numAcItems=this.numAcItems;for(var _i=0;_i<this.numAcItems;_i++){var _id=$("acItem_"+_i);if($defined(_id)){_id.removeClass("AcItemHighlight")}else{_numAcItems=_i;break}}switch(event.key){case"up":this.numSelectedItem--;if(this.numSelectedItem<0){this.numSelectedItem=_numAcItems-1}var _idPrev=$("acItem_"+this.numSelectedItem);if($defined(_idPrev)){_idPrev.addClass("AcItemHighlight")}event.stop();break;case"down":this.numSelectedItem++;if(this.numSelectedItem>=_numAcItems){this.numSelectedItem=0}var _idNext=$("acItem_"+this.numSelectedItem);if($defined(_idNext)){_idNext.addClass("AcItemHighlight")}event.stop();break;case"enter":var _acData=this.lastResponse;var _numSelectedItem=this.numSelectedItem;if(_numSelectedItem<0){return}var _strText=this.lastResponse.result_set[_numSelectedItem].display_text;var _strOperation="";if($defined(this.strCallback)){$each(_acData.result_set[_numSelectedItem],function(item,key){if(typeof(item)=="string"){eval("_acData.result_set[ _numSelectedItem ]."+key+" = _acData.result_set[ _numSelectedItem ]."+key+'.replace( /\'/g, "%5C%27" );')}});_strOperation=this.strCallback+"("+Json.toString(_acData.result_set[_numSelectedItem])+");";_strOperation=_strOperation.replace(/"/g,"'")}else{_strOperation="document.forms['"+this.formElement.form.name+"'].elements['"+this.formElement.name+"'].value='"+_strText+"';"}eval(_strOperation);if(this.blnAcContainerShown){this.acContainer.setStyle("display","none");this.blnAcContainerShown=false;this.acContainer.setHTML("")}this.numSelectedItem=-1;event.stop();return false;break;case"esc":this.numSelectedItem=-1;if(this.blnAcContainerShown){this.acContainer.setStyle("opacity",0);this.clearAcContainerNoFade()}event.stop();return false;break}}},processDocumentClickEvent:function(b,a){b=new Event(b);this.numSelectedItem=-1;if(this.blnAcContainerShown){this.acContainer.setStyle("opacity",0);this.clearAcContainerNoFade()}},clearAcContainer:function(){this.acClassInstance.acContainer.setStyle("display","none");this.acClassInstance.blnAcContainerShown=false;this.acClassInstance.acContainer.setHTML("")},clearAcContainerNoFade:function(){this.acContainer.setStyle("display","none");this.blnAcContainerShown=false;this.acContainer.setHTML("")},processAcData:function(response){this.acClassInstance.debugMessage(response);var response=Json.evaluate(response);this.acClassInstance.debugMessage("Processing ac response, act="+response.ac_term+".");this.numSelectedItem=-1;this.acClassInstance.lastResponse=response;this.acClassInstance.displayAcData();if((response.number_of_results==0||response.result_set==false)&&$defined(this.acClassInstance.strCallbackNoResult)){var _strCallbackNoResult=this.acClassInstance.strCallbackNoResult+"();";eval(_strCallbackNoResult)}if(this.acClassInstance.blnNeedRequest){g_numActiveId=this.acClassInstance.acId;this.acClassInstance.blnNeedRequest=false;window.setTimeout(function(){g_arrayAutoCompleter[g_numActiveId].processRequestEvent();g_arrayAutoCompleter[g_numActiveId].debugMessage("Re-triggered processing of request event.")},200);this.acClassInstance.debugMessage("Preparing to re-trigger processing of request event.")}},displayAcData:function(){var _formElementDimension=this.formElement.getCoordinates();var _containerElementDimension=null;if(this.containerElement){_containerElementDimension=this.containerElement.getCoordinates()}if(this.numWidthAcContainer>0){this.acContainer.setStyle("width",this.numWidthAcContainer)}else{this.acContainer.setStyle("width",this.numDefaultWidthAcContainer)}var _acData=this.lastResponse;var _strHTML="";if(_acData.result_set!=false){var _numResults=(_acData.number_of_results>this.numAcItems?this.numAcItems:_acData.number_of_results);for(var _i=0;_i<_numResults;_i++){var _strText=_acData.result_set[_i].display_text;if($defined(this.strCallback)){$each(_acData.result_set[_i],function(item,key){if(typeof(item)=="string"){eval("_acData.result_set[ _i ]."+key+" = _acData.result_set[ _i ]."+key+'.replace( /\'/g, "%5C%27" );')}});var _strOperation=this.strCallback+"("+Json.toString(_acData.result_set[_i])+");";_strOperation=_strOperation.replace(/"/g,"'")}else{var _strOperation="document.forms['"+this.formElement.form.name+"'].elements['"+this.formElement.name+"'].value='"+_strText+"';"}_strHTML+='<div id="acItem_'+_i+'" class="AutoCompleteItem'+(_i==this.numSelectedItem?" AcItemHighlight":"")+'" onclick="'+_strOperation+" $(this).getParent().setStyle('display','none'); g_arrayAutoCompleter[ g_numActiveId ].blnAcContainerShown=false; g_arrayAutoCompleter[ g_numActiveId ].numSelectedItem=0;\" onmouseover=\"g_arrayAutoCompleter[ g_numActiveId ].uhl(); $(this).addClass('AcItemHighlight'); g_arrayAutoCompleter[ g_numActiveId ].numSelectedItem="+_i+';" onmouseout="$(this).removeClass(\'AcItemHighlight\'); g_arrayAutoCompleter[ g_numActiveId ].numSelectedItem=-1;">'+_strText+"</div>";_strHTML=unescape(_strHTML)}}if(_acData.number_of_results>0&&_acData.result_set!=false){var numLeftPos=_formElementDimension.left+1;var numTopPos=_formElementDimension.bottom+1;if(_containerElementDimension){numLeftPos-=_containerElementDimension.left;numTopPos-=_containerElementDimension.top}this.acContainer.setHTML(_strHTML);this.acContainer.setStyle("left",numLeftPos);this.acContainer.setStyle("top",numTopPos);if(!this.blnAcContainerShown){this.acContainer.setStyle("opacity",0);this.acContainer.setStyle("display","block");this.blnAcContainerShown=true;this.acContainer.setStyle("opacity",this.fullOpacity)}}else{this.acContainer.setHTML("");this.acContainer.setStyle("display","none");this.blnAcContainerShown=false}},uhl:function(){for(var b=0;b<this.numAcItems;b++){var a=$("acItem_"+b);if($defined(a)){a.removeClass("AcItemHighlight")}else{break}}},getFormElementValue:function(){return this.formElement.getValue().trim()},debugMessage:function(b){if(g_blnAcDebugEnabled){var a=new Date();var c=a.getHours()+":"+(a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes())+":"+(a.getSeconds()<10?"0"+a.getSeconds():a.getSeconds())+"."+a.getMilliseconds();if($("AcDebugContainer")){$("AcDebugContainer").setHTML($("AcDebugContainer").innerHTML+"<strong>"+c+"</strong>: "+b+"<br />")}}}});if(typeof(g_strAcRequestUrlGlobal)=="undefined"){g_strAcRequestUrlGlobal=location.protocol+"//"+location.hostname+"/services/qai/qac/get_city_info.php"}if(typeof(g_strAcRequestProxyGlobal)=="undefined"){g_strAcRequestProxyGlobal=null}setCityDataGlobal=function(e){var d=document.forms.frmSearch;var a="";var c=d.elements.radius;if(e.suburb_name!=""){a=e.city_name+" "+e.suburb_name}else{a=e.city_name}d.elements.city.value=a;var b="";b=e.city_id+"|"+(e.zip_code!=""?e.zip_code:"00000")+"|"+e.country_id+"|"+a+"|"+e.geo_klat+"|"+e.geo_klng+"|"+c.value+"|"+e.suburb_id+(e.suburb_name!=""?"|"+e.suburb_name:"");d.elements.citycodes.value=b};noDataGlobal=function(){};resetDataGlobal=function(){document.forms.frmSearch.elements.citycodes.value="";document.forms.frmSearch.elements.suburbid.value="";document.forms.frmSearch.elements.suburb.value=""};initAcGlobal=function(){var a=document.forms.frmSearch;objAcDataGlobal={formElement:a.elements.city,aryContainerElements:["QHeader","Centerer"],strURL:g_strAcRequestUrlGlobal,strRequestProxy:g_strAcRequestProxyGlobal,strCallback:"setCityDataGlobal",strCallbackNoResult:"noDataGlobal",strCallbackReset:"resetDataGlobal",numWidthAcContainer:346,numAcItems:20,arrayInfusion:[{type:"static",name:"country",value:"D",source:null},{type:"static",name:"type",value:"search",source:null}]};initAC=initAutoCompleter(objAcDataGlobal);initAC()};function updateCcRadius(){var c=document.forms.frmSearch;var e=c.elements.citycodes;var b=c.elements.radius;var d=new Array();var a="";if(e.value.trim()!=""){d=e.value.split("|");if(d.length>=7){d[6]=b.value;var a=d.join("|");e.value=a}}}if(typeof(g_strAcRequestUrlNavigator)=="undefined"){g_strAcRequestUrlNavigator=location.protocol+"//"+location.hostname+"/services/qai/qac/get_city_info.php"}if(typeof(g_strAcRequestProxyNavigator)=="undefined"){g_strAcRequestProxyNavigator=null}setCityDataNavigator=function(c){var b=document.forms.frmNaviSearch;var a="";if(c.suburb_name!=""){a=c.city_name+" "+c.suburb_name}else{a=c.city_name}b.elements.city.value=a;b.elements.citycheck.value=a;b.elements.vtlat.value=c.geo_klat;b.elements.vtlong.value=c.geo_klng;b.elements.cityid.value=c.city_id;b.elements.zip.value=(c.zip_code!=""?c.zip_code:"00000");b.elements.suburbid.value=c.suburb_id};noDataNavigator=function(){};resetDataNavigator=function(){var a=document.forms.frmNaviSearch;a.elements.citycheck.value="";a.elements.vtlat.value="";a.elements.vtlong.value="";a.elements.cityid.value=0;a.elements.zip.value="";a.elements.suburbid.value=0};initAcNavigator=function(){var a=document.forms.frmNaviSearch;objAcDataNavigator={formElement:a.elements.city,aryContainerElements:["QHeader","Centerer"],strURL:g_strAcRequestUrlNavigator,strRequestProxy:g_strAcRequestProxyNavigator,strCallback:"setCityDataNavigator",strCallbackNoResult:"noDataNavigator",strCallbackReset:"resetDataNavigator",numAcItems:20,arrayInfusion:[{type:"static",name:"country",value:"D",source:null},{type:"static",name:"type",value:"insert",source:null}]};initAC=initAutoCompleter(objAcDataNavigator);initAC()};if(typeof(g_strAcRequestUrlAutoSuggest)=="undefined"){g_strAcRequestUrlAutoSuggest=location.protocol+"//"+location.hostname+"/services/qai/qac/auto_suggest.php"}if(typeof(g_strAcRequestProxyAutoSuggest)=="undefined"){g_strAcRequestProxyAutoSuggest=null}setDataAutoSuggest=function(d){var c=document.forms.frmSearch;var a=new String(d.suggest);var b=new RegExp("<(/*)"+d.emphasize_tag+">","gi");a=a.replace(b,"");c.elements.search1.value=a};noDataAutoSuggest=function(){};resetDataAutoSuggest=function(){};initAcAutoSuggest=function(){var a=document.forms.frmSearch;objAcDataAutoSuggest={formElement:a.elements.search1,aryContainerElements:["QHeader","Centerer"],strURL:g_strAcRequestUrlAutoSuggest,strRequestProxy:g_strAcRequestProxyAutoSuggest,strCallback:"setDataAutoSuggest",strCallbackNoResult:"noDataAutoSuggest",strCallbackReset:"resetDataAutoSuggest",numAcItems:10,numMinLengthNumeric:1,numMinLengthNonNumeric:1,numWidthAcContainer:297,arrayInfusion:[{type:"dynamic",name:"catid",value:null,source:a.elements.catid},{type:"static",name:"wt",value:"json",source:null},{type:"static",name:"ar",value:"status,suggest",source:null},{type:"static",name:"fl",value:"suggest,pathmap",source:null}]};initAC=initAutoCompleter(objAcDataAutoSuggest);initAC()};function setfrmSearchAction(e){var c=(e.catid.value!="")?e.catid.value:0;var b=e.city.value;var d=0;var a=0;if(a!="0"){e.action="/kleinanzeigen/cat_"+c+"_cts_"+a+".html"}else{e.action="/kleinanzeigen/cat_"+c+"_ct_"+d+".html"}return true}initPolePos=function(){g_blnDisableScroll=false;g_strContainerId="ContentPoleposition_ResultContainer";g_strScrollerId="ContentPoleposition_ResultScroller";g_numBlocks=parseInt($(g_strScrollerId).className.replace(/blocknum_/,""));g_numSegment=1;g_numContainerWidth=$(g_strContainerId).getStyle("width").toInt();g_numScrollerWidth=g_numContainerWidth*g_numBlocks;$(g_strContainerId).setStyle("overflow","hidden");$(g_strScrollerId).setStyle("width",g_numScrollerWidth+"px");g_numMultiplier=Math.ceil(g_numScrollerWidth/g_numContainerWidth);g_numDiff=(g_numMultiplier*g_numContainerWidth)-g_numScrollerWidth;g_numScrollDuration=500;if(g_numBlocks<=1){$("imgNavigateLeft").setStyle("display","none");$("imgNavigateRight").setStyle("display","none")}};function scrollLeft(){var d=0;if(!g_blnDisableScroll){g_blnDisableScroll=true;g_numSegment++;if(g_numSegment>g_numBlocks){g_numSegment=g_numBlocks}var b=$(g_strScrollerId).getStyle("margin-left").toInt();if(Math.abs(b)<(g_numScrollerWidth-g_numContainerWidth)){if(Math.abs((b-g_numContainerWidth)-g_numContainerWidth)>g_numScrollerWidth){d=g_numDiff+(g_numContainerWidth);if(d>g_numContainerWidth){d=0}}var a=b-g_numContainerWidth+d;var c=new Fx.Style($(g_strScrollerId),"margin-left",{duration:g_numScrollDuration,onComplete:function(){g_blnDisableScroll=false;if(g_numSegment>=g_numBlocks){navHighlight("right",false)}}});c.start(b,a)}else{g_blnDisableScroll=false}}}function scrollRight(){if(!g_blnDisableScroll){g_blnDisableScroll=true;g_numSegment--;if(g_numSegment<1){g_numSegment=1}var b=$(g_strScrollerId).getStyle("margin-left").toInt();if(b<0){var a=0;if(Math.abs(b)>=g_numContainerWidth){a=b+g_numContainerWidth}var c=new Fx.Style($(g_strScrollerId),"margin-left",{duration:g_numScrollDuration,onComplete:function(){g_blnDisableScroll=false;if(g_numSegment<=1){navHighlight("left",false)}}});c.start(b,a)}else{g_blnDisableScroll=false}}}function navHighlight(a,f){var d="/img/common/";if(a=="left"){var c="imgNavigateLeft"}else{if(a=="right"){var c="imgNavigateRight"}}var b=$(c);if((a=="left"&&g_numSegment<=1)||(a=="right"&&g_numSegment>=g_numBlocks)){e=d+"navigate_"+a+"_e7.gif"}else{if(f==true){var e=d+"navigate_"+a+"_blue.gif"}else{var e=d+"navigate_"+a+"_e7.gif"}}b.src=e}function ImageResize(a,e,c){var d=document.getElementById(a);var b=d.width;if((e>0)&&(b<e)){d.width=e}else{if((c>0)&&(b>c)){d.width=c}}}function addBookmark(b,a){if(window.sidebar){window.sidebar.addPanel(b,a,"")}else{if(window.external){window.external.AddFavorite(a,b)}else{if(!window.sidebar&&!window.external){alert("Fehler:\nEs konnte aufgrund technischer Problemen kein Lesezeichen/Favorit gesetzt werden.")}}}}function makeStartpage(a,b){if(document.all){a.style.behavior="url(#default#homepage)";a.setHomePage(b)}else{if(confirm(unescape("Ihre Browser unterst%FCtzt diese Funktion nicht.\n%0AM%F6chten Sie statt dessen ein Lesezeichen setzen%3F"))){addBookmark(document.title,location.href)}return false}}function ShowDetailMap(b,a){var c="/qmca/detail/searchmap.html?showadno="+b;GB_showCenter(a,c,650,650);return false}function CloseGB(){parent.parent.GB_hide();return true}function GotoPageNavi(b,c,a){if(b>=1){var d=document.forms.frmNaviSearch;d.reset();if(c.toLowerCase()=="search"){d.pageno.value=b}else{d.notepageno.value=b}d.action=a;d.submit()}}function ID_SWITCH(a){switchDisplayById(a);return false};
/* ../util.js */
function switchDisplayById(a){objElement=document.getElementById(a);if(objElement){objElement.style.display=(objElement.style.display=="none"?"block":"none")}}function setDisplayById(a,b){objElement=document.getElementById(a);if(objElement){objElement.style.display=b}}function ReplaceString(a,c,d){var b=0;while(b<d.length){if(d.substring(b,b+a.length)==a){d=d.substring(0,b)+c+d.substring(b+a.length,d.length);b+=c.length}else{b++}}return d}function trim(a){return a.replace(/^\s+|\s+$/g,"")}function fastTrim(a){var a=a.replace(/^\s\s*/,""),b=/\s/,c=a.length;while(b.test(a.charAt(--c))){}return a.slice(0,c+1)}function is_coordinate(a){if(typeof a!=="number"){return false}if(a.toString().indexOf(".")==-1){return !!(parseInt(a))}return !!(a%1)}function isCookie(){document.cookie="true";if(document.cookie==""){return false}else{return true}}function setCookie(f,e,h,g,c,a){if(h){h=h*1000;var d=new Date();d.setTime(d.getTime());var b=new Date(d.getTime()+h)}document.cookie=f+"="+escape(e)+((h)?";expires="+b.toGMTString():"")+((g)?";path="+g:"")+((c)?";domain="+c:"")+((a)?";secure":"")}function getCookie(a){aryCookies=document.cookie.split(";");blnCookieFound=false;strCookieValue="";for(i=0,k=aryCookies.length;i<k;i++){aryCookie=aryCookies[i].split("=");strCookieName=trim(aryCookie[0]);if(a==strCookieName){blnCookieFound=true;if(aryCookie.length>1){strCookieValue=unescape(trim(aryCookie[1]))}return strCookieValue;break}}return(blnCookieFound==false)?null:strCookieValue}function deleteCookie(b,c,a){if(getCookie(b)){document.cookie=b+"="+ +((c)?";path="+c:"")+((a)?";domain="+a:"")+";expires=Thu, 01-Jan-70 00:00:01 GMT"}}function getCookieDomain(){var b=location.hostname;var a=b.split(".");if(a.length>=2){b="."+a.slice(-2).join(".")}return b}Array.prototype.foreach=function(b){for(var a=0;a<this.length;a++){b(a,this[a])}};window.onDomReady=initReady;function initReady(a){if(document.addEventListener){document.addEventListener("DOMContentLoaded",a,false)}else{document.onreadystatechange=function(){readyState(a)}}}function readyState(a){if(document.readyState=="interactive"||document.readyState=="complete"){a()}}function getBrowserInfo(){var b="";var a="";if(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){a=new Number(RegExp.$1);b="Firefox "+a}else{if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){a=new Number(RegExp.$1);b="Microsoft IE "+a}else{if(/Chrome\/([0-9]+)/.test(navigator.userAgent)){a=new Number(RegExp.$1);b="Chrome "+a}else{if(/(\d+\.\d+)[^\/]+Safari/.test(navigator.userAgent)){a=new Number(RegExp.$1);b="Safari "+a}else{if(/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){a=new Number(RegExp.$1);b="Opera "+a}else{b="unknown"}}}}}return b+" / "+navigator.platform}function getStyle(d,a){var c=document.getElementById(d);if(c.currentStyle){var b=c.currentStyle[a]}else{if(window.getComputedStyle){var b=document.defaultView.getComputedStyle(c,null).getPropertyValue(a)}}return b}function emuCheckbox(d){var a=d.className;var b=/checkbox-active/;var c=b.exec(a);if(c==null){a+=" checkbox-active"}else{a=a.replace(/checkbox-active/g,"")}d.className=a};
/* ../greybox.js */
AJS={BASE_URL:"",drag_obj:null,drag_elm:null,_drop_zones:[],_cur_pos:null,getScrollTop:function(){var a;if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body){a=document.body.scrollTop}}return a},addClass:function(){var c=AJS.forceArray(arguments);var b=c.pop();var a=function(d){if(!new RegExp("(^|\\s)"+b+"(\\s|$)").test(d.className)){d.className+=(d.className?" ":"")+b}};AJS.map(c,function(d){a(d)})},setStyle:function(){var c=AJS.forceArray(arguments);var b=c.pop();var a=c.pop();AJS.map(c,function(d){d.style[a]=AJS.getCssDim(b)})},extend:function(d){var c=new this("no_init");for(k in d){var b=c[k];var a=d[k];if(b&&b!=a&&typeof a=="function"){a=this._parentize(a,b)}c[k]=a}return new AJS.Class(c)},log:function(a){if(window.console){console.log(a)}else{var b=AJS.$("ajs_logger");if(!b){b=AJS.DIV({id:"ajs_logger",style:"color: green; position: absolute; left: 0"});b.style.top=AJS.getScrollTop()+"px";AJS.ACN(AJS.getBody(),b)}AJS.setHTML(b,""+a)}},setHeight:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"height");AJS.setStyle.apply(null,a)},_getRealScope:function(a,c){c=AJS.$A(c);var b=a._cscope||window;return function(){var d=AJS.$FA(arguments).concat(c);return a.apply(b,d)}},documentInsert:function(a){if(typeof(a)=="string"){a=AJS.HTML2DOM(a)}document.write('<span id="dummy_holder"></span>');AJS.swapDOM(AJS.$("dummy_holder"),a)},getWindowSize:function(c){c=c||document;var b,a;if(self.innerHeight){b=self.innerWidth;a=self.innerHeight}else{if(c.documentElement&&c.documentElement.clientHeight){b=c.documentElement.clientWidth;a=c.documentElement.clientHeight}else{if(c.body){b=c.body.clientWidth;a=c.body.clientHeight}}}return{w:b,h:a}},flattenList:function(b){var c=[];var a=function(e,d){AJS.map(d,function(f){if(f==null){}else{if(AJS.isArray(f)){a(e,f)}else{e.push(f)}}})};a(c,b);return c},isFunction:function(a){return(typeof a=="function")},setEventKey:function(a){a.key=a.keyCode?a.keyCode:a.charCode;if(window.event){a.ctrl=window.event.ctrlKey;a.shift=window.event.shiftKey}else{a.ctrl=a.ctrlKey;a.shift=a.shiftKey}switch(a.key){case 63232:a.key=38;break;case 63233:a.key=40;break;case 63235:a.key=39;break;case 63234:a.key=37;break}},removeElement:function(){var a=AJS.forceArray(arguments);AJS.map(a,function(b){AJS.swapDOM(b,null)})},_unloadListeners:function(){if(AJS.listeners){AJS.map(AJS.listeners,function(c,b,a){AJS.REV(c,b,a)})}AJS.listeners=[]},join:function(b,a){try{return a.join(b)}catch(d){var c=a[0]||"";AJS.map(a,function(e){c+=b+e},1);return c+""}},getIndex:function(d,c,b){for(var a=0;a<c.length;a++){if(b&&b(c[a])||d==c[a]){return a}}return -1},isIn:function(c,a){var b=AJS.getIndex(c,a);if(b!=-1){return true}else{return false}},isArray:function(a){return a instanceof Array},setLeft:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"left");AJS.setStyle.apply(null,a)},appendChildNodes:function(a){if(arguments.length>=2){AJS.map(arguments,function(b){if(AJS.isString(b)){b=AJS.TN(b)}if(AJS.isDefined(b)){a.appendChild(b)}},1)}return a},getElementsByTagAndClassName:function(g,f,d,b){var h=[];if(!AJS.isDefined(d)){d=document}if(!AJS.isDefined(g)){g="*"}var a=d.getElementsByTagName(g);var e=a.length;var c=new RegExp("(^|\\s)"+f+"(\\s|$)");for(i=0,j=0;i<e;i++){if(c.test(a[i].className)||f==null){h[j]=a[i];j++}}if(b){return h[0]}else{return h}},isOpera:function(){return(navigator.userAgent.toLowerCase().indexOf("opera")!=-1)},isString:function(a){return(typeof a=="string")},hideElement:function(b){var a=AJS.forceArray(arguments);AJS.map(a,function(c){c.style.display="none"})},setOpacity:function(b,a){b.style.opacity=a;b.style.filter="alpha(opacity="+a*100+")"},insertBefore:function(b,a){a.parentNode.insertBefore(b,a);return b},setWidth:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"width");AJS.setStyle.apply(null,a)},createArray:function(a){if(AJS.isArray(a)&&!AJS.isString(a)){return a}else{if(!a){return[]}else{return[a]}}},isDict:function(b){var a=String(b);return a.indexOf(" Object")!=-1},isMozilla:function(){return(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1&&navigator.productSub>=20030210)},removeEventListener:function(e,d,a,c){var b="ajsl_"+d+a;if(!c){c=false}a=e[b]||a;if(e["on"+d]==a){e["on"+d]=e[b+"old"]}if(e.removeEventListener){e.removeEventListener(d,a,c);if(AJS.isOpera()){e.removeEventListener(d,a,!c)}}else{if(e.detachEvent){e.detachEvent("on"+d,a)}}},callLater:function(a,c){var b=function(){a()};window.setTimeout(b,c)},setTop:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"top");AJS.setStyle.apply(null,a)},_createDomShortcuts:function(){var b=["ul","li","td","tr","th","tbody","table","input","span","b","a","div","img","button","h1","h2","h3","h4","h5","h6","br","textarea","form","p","select","option","optgroup","iframe","script","center","dl","dt","dd","small","pre","i"];var a=function(c){AJS[c.toUpperCase()]=function(){return AJS.createDOM.apply(null,[c,arguments])}};AJS.map(b,a);AJS.TN=function(c){return document.createTextNode(c)}},addCallback:function(a){this.callbacks.unshift(a)},bindMethods:function(c){for(var b in c){var a=c[b];if(typeof(a)=="function"){c[b]=AJS.$b(a,c)}}},partial:function(b){var a=AJS.$FA(arguments);a.shift();return function(){a=a.concat(AJS.$FA(arguments));return b.apply(window,a)}},isNumber:function(a){return(typeof a=="number")},getCssDim:function(a){if(AJS.isString(a)){return a}else{return a+"px"}},isIe:function(){return(navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1)},removeClass:function(){var c=AJS.forceArray(arguments);var a=c.pop();var b=function(d){d.className=d.className.replace(new RegExp("\\s?"+a,"g"),"")};AJS.map(c,function(d){b(d)})},setHTML:function(b,a){b.innerHTML=a;return b},map:function(d,f,c,a){var e=0,b=d.length;if(c){e=c}if(a){b=a}for(e;e<b;e++){var g=f(d[e],e);if(g!=undefined){return g}}},addEventListener:function(h,g,l,f,e){var d="ajsl_"+g+l;if(!e){e=false}AJS.listeners=AJS.$A(AJS.listeners);if(AJS.isIn(g,["keypress","keydown","keyup","click"])){var c=l;l=function(m){AJS.setEventKey(m);return c.apply(window,arguments)}}var b=AJS.isIn(g,["submit","load","scroll","resize"]);var a=AJS.$A(h);AJS.map(a,function(n){if(f){var m=l;l=function(r){AJS.REV(n,g,l);return m.apply(window,arguments)}}if(b){var q=n["on"+g];var o=function(){if(q){l(arguments);return q(arguments)}else{return l(arguments)}};n[d]=o;n[d+"old"]=q;h["on"+g]=o}else{n[d]=l;if(n.attachEvent){n.attachEvent("on"+g,l)}else{if(n.addEventListener){n.addEventListener(g,l,e)}}AJS.listeners.push([n,g,l])}})},preloadImages:function(){AJS.AEV(window,"load",AJS.$p(function(a){AJS.map(a,function(c){var b=new Image();b.src=c})},arguments))},forceArray:function(a){var b=[];AJS.map(a,function(c){b.push(c)});return b},update:function(b,a){for(var c in a){b[c]=a[c]}return b},getBody:function(){return AJS.$bytc("body")[0]},HTML2DOM:function(b,a){var c=AJS.DIV();c.innerHTML=b;if(a){return c.childNodes[0]}else{return c}},getElement:function(a){if(AJS.isString(a)||AJS.isNumber(a)){return document.getElementById(a)}else{return a}},showElement:function(){var a=AJS.forceArray(arguments);AJS.map(a,function(b){b.style.display=""})},bind:function(b,c,a){b._cscope=c;return AJS._getRealScope(b,a)},createDOM:function(f,d){var e=0,c;var h=document.createElement(f);var a=d[0];if(AJS.isDict(d[e])){for(k in a){c=a[k];if(k=="style"||k=="s"){h.style.cssText=c}else{if(k=="c"||k=="class"||k=="className"){h.className=c}else{h.setAttribute(k,c)}}}e++}if(a==null){e=1}for(var b=e;b<d.length;b++){var c=d[b];if(c){var g=typeof(c);if(g=="string"||g=="number"){c=AJS.TN(c)}h.appendChild(c)}}return h},swapDOM:function(c,b){c=AJS.getElement(c);var a=c.parentNode;if(b){b=AJS.getElement(b);a.replaceChild(b,c)}else{a.removeChild(c)}return b},isDefined:function(a){return(a!="undefined"&&a!=null)}};AJS.$=AJS.getElement;AJS.$$=AJS.getElements;AJS.$f=AJS.getFormElement;AJS.$p=AJS.partial;AJS.$b=AJS.bind;AJS.$A=AJS.createArray;AJS.DI=AJS.documentInsert;AJS.ACN=AJS.appendChildNodes;AJS.RCN=AJS.replaceChildNodes;AJS.AEV=AJS.addEventListener;AJS.REV=AJS.removeEventListener;AJS.$bytc=AJS.getElementsByTagAndClassName;AJS.$AP=AJS.absolutePosition;AJS.$FA=AJS.forceArray;AJS.addEventListener(window,"unload",AJS._unloadListeners);AJS._createDomShortcuts();AJS.Class=function(b){var a=function(){if(arguments[0]!="no_init"){return this.init.apply(this,arguments)}};a.prototype=b;AJS.update(a,AJS.Class.prototype);return a};AJS.Class.prototype={extend:function(c){var b=new this("no_init");for(k in c){var a=b[k];var d=c[k];if(a&&a!=d&&typeof d=="function"){d=this._parentize(d,a)}b[k]=d}return new AJS.Class(b)},implement:function(a){AJS.update(this.prototype,a)},_parentize:function(b,a){return function(){this.parent=a;return b.apply(this,arguments)}}};script_loaded=true;script_loaded=true;AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(c,b){var a=new AJS.fx.Base();a.elm=AJS.$(c);a.options.duration=600;a.setOptions(b);AJS.update(a,{increase:function(){if(this.now==7){c.style.backgroundColor="#fff"}else{c.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)]}}});return a.custom(6,0)},fadeIn:function(c,a){a=a||{};if(!a.from){a.from=0;AJS.setOpacity(c,0)}if(!a.to){a.to=1}var b=new AJS.fx.Style(c,"opacity",a);return b.custom(a.from,a.to)},fadeOut:function(b,a){a=a||{};if(!a.from){a.from=1}if(!a.to){a.to=0}a.duration=300;var c=new AJS.fx.Style(b,"opacity",a);return c.custom(a.from,a.to)},setWidth:function(b,a){var c=new AJS.fx.Style(b,"width",a);return c.custom(a.from,a.to)},setHeight:function(b,a){var c=new AJS.fx.Style(b,"height",a);return c.custom(a.from,a.to)}};AJS.fx.Base=new AJS.Class({init:function(a){this.options={onStart:function(){},onComplete:function(){},transition:AJS.fx.Transitions.sineInOut,duration:500,wait:true,fps:50};AJS.update(this.options,a);AJS.bindMethods(this)},setOptions:function(a){AJS.update(this.options,a)},step:function(){var a=new Date().getTime();if(a<this.time+this.options.duration){this.cTime=a-this.time;this.setNow()}else{setTimeout(AJS.$b(this.options.onComplete,this,[this.elm]),10);this.clearTimer();this.now=this.to}this.increase()},setNow:function(){this.now=this.compute(this.from,this.to)},compute:function(b,c){var a=c-b;return this.options.transition(this.cTime,b,a,this.options.duration)},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this},_start:function(a,b){if(!this.options.wait){this.clearTimer()}if(this.timer){return}setTimeout(AJS.$p(this.options.onStart,this.elm),10);this.from=a;this.to=b;this.time=new Date().getTime();this.timer=setInterval(this.step,Math.round(1000/this.options.fps));return this},custom:function(a,b){return this._start(a,b)},set:function(a){this.now=a;this.increase();return this},setStyle:function(c,a,b){if(this.property=="opacity"){AJS.setOpacity(c,b)}else{AJS.setStyle(c,a,b)}}});AJS.fx.Style=AJS.fx.Base.extend({init:function(c,a,b){this.parent();this.elm=c;this.setOptions(b);this.property=a},increase:function(){this.setStyle(this.elm,this.property,this.now)}});AJS.fx.Styles=AJS.fx.Base.extend({init:function(b,a){this.parent();this.elm=AJS.$(b);this.setOptions(a);this.now={}},setNow:function(){for(p in this.from){this.now[p]=this.compute(this.from[p],this.to[p])}},custom:function(b){if(this.timer&&this.options.wait){return}var a={};var c={};for(p in b){a[p]=b[p][0];c[p]=b[p][1]}return this._start(a,c)},increase:function(){for(var a in this.now){this.setStyle(this.elm,a,this.now[a])}}});AJS.fx.Transitions={linear:function(e,a,g,f){return g*e/f+a},sineInOut:function(e,a,g,f){return -g/2*(Math.cos(Math.PI*e/f)-1)+a}};script_loaded=true;script_loaded=true;var b_CLOSE=true;function gbCLOSE(a){b_CLOSE=a}var GB_CURRENT=null;GB_hide=function(a){GB_CURRENT.hide(a)};GreyBox=new AJS.Class({init:function(c){this.use_fx=AJS.fx;this.type="page";this.overlay_click_close=true;this.salt=0;this.root_dir=GB_ROOT_DIR;this.callback_fns=[];this.reload_on_close=false;this.src_loader=this.root_dir+"loader_frame.html";var b=window.location.hostname.indexOf("www");var a=this.src_loader.indexOf("www");if(b!=-1&&a==-1){this.src_loader=this.src_loader.replace("://","://www.")}if(b==-1&&a!=-1){this.src_loader=this.src_loader.replace("://www.","://")}this.show_loading=true;AJS.update(this,c)},addCallback:function(a){if(a){this.callback_fns.push(a)}},show:function(b){GB_CURRENT=this;this.url=b;var a=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(a),function(c){c.style.visibility="hidden"});this.createElements();return false},hide:function(a){var b=this;AJS.callLater(function(){var e=b.callback_fns;if(e!=[]){AJS.map(e,function(f){f()})}b.onHide();if(b.use_fx){var d=b.overlay;AJS.fx.fadeOut(b.overlay,{onComplete:function(){AJS.removeElement(d);d=null},duration:300});AJS.removeElement(b.g_window)}else{AJS.removeElement(b.g_window,b.overlay)}b.removeFrame();AJS.REV(window,"scroll",_GB_setOverlayDimension);AJS.REV(window,"resize",_GB_update);var c=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(c),function(f){f.style.visibility="visible"});GB_CURRENT=null;if(b.reload_on_close){window.location.reload()}if(AJS.isFunction(a)){a()}},10)},update:function(){this.setOverlayDimension();this.setFrameSize();this.setWindowPosition()},createElements:function(){this.initOverlay();this.g_window=AJS.DIV({id:"GB_window"});AJS.hideElement(this.g_window);AJS.getBody().insertBefore(this.g_window,this.overlay.nextSibling);this.initFrame();this.initHook();this.update();var a=this;if(this.use_fx){AJS.fx.fadeIn(this.overlay,{duration:300,to:0.8,onComplete:function(){a.onShow();AJS.showElement(a.g_window);a.startLoading()}})}else{AJS.setOpacity(this.overlay,0.8);AJS.showElement(this.g_window);this.onShow();this.startLoading()}AJS.AEV(window,"scroll",_GB_setOverlayDimension);AJS.AEV(window,"resize",_GB_update)},removeFrame:function(){try{AJS.removeElement(this.iframe)}catch(a){}this.iframe=null},startLoading:function(){this.iframe.src=this.src_loader+"?s="+this.salt++;AJS.showElement(this.iframe)},setOverlayDimension:function(){var b=AJS.getWindowSize();if(AJS.isMozilla()||AJS.isOpera()){AJS.setWidth(this.overlay,"100%")}else{AJS.setWidth(this.overlay,b.w)}var a=Math.max(AJS.getScrollTop()+b.h,AJS.getScrollTop()+this.height);if(a<AJS.getScrollTop()){AJS.setHeight(this.overlay,a)}else{AJS.setHeight(this.overlay,AJS.getScrollTop()+b.h)}},initOverlay:function(){this.overlay=AJS.DIV({id:"GB_overlay"});if(this.overlay_click_close){AJS.AEV(this.overlay,"click",GB_hide)}AJS.setOpacity(this.overlay,0);AJS.getBody().insertBefore(this.overlay,AJS.getBody().firstChild)},initFrame:function(){if(!this.iframe){var a={name:"GB_frame","class":"GB_frame",frameBorder:0};if(AJS.isIe()){a.src='javascript:false;document.write("");'}this.iframe=AJS.IFRAME(a);this.middle_cnt=AJS.DIV({"class":"content"},this.iframe);this.top_cnt=AJS.DIV();this.bottom_cnt=AJS.DIV();AJS.ACN(this.g_window,this.top_cnt,this.middle_cnt,this.bottom_cnt)}},onHide:function(){},onShow:function(){},setFrameSize:function(){},setWindowPosition:function(){},initHook:function(){}});_GB_update=function(){if(GB_CURRENT){GB_CURRENT.update()}};_GB_setOverlayDimension=function(){if(GB_CURRENT){GB_CURRENT.setOverlayDimension()}};AJS.preloadImages(GB_ROOT_DIR+"indicator.gif");script_loaded=true;var GB_SETS={};function decoGreyboxLinks(){var a=AJS.$bytc("a");AJS.map(a,function(d){if(d.getAttribute("href")&&d.getAttribute("rel")){var b=d.getAttribute("rel");if(b.indexOf("gb_")==0){var f=b.match(/\w+/)[0];var e=b.match(/\[(.*)\]/)[1];var c=0;var g={caption:d.title||"",url:d.href};if(f=="gb_pageset"||f=="gb_imageset"){if(!GB_SETS[e]){GB_SETS[e]=[]}GB_SETS[e].push(g);c=GB_SETS[e].length}if(f=="gb_pageset"){d.onclick=function(){GB_showFullScreenSet(GB_SETS[e],c);return false}}if(f=="gb_imageset"){d.onclick=function(){GB_showImageSet(GB_SETS[e],c);return false}}if(f=="gb_image"){d.onclick=function(){GB_showImage(g.caption,g.url);return false}}if(f=="gb_page"){d.onclick=function(){var h=e.split(/, ?/);GB_show(g.caption,g.url,parseInt(h[1]),parseInt(h[0]));return false}}if(f=="gb_page_fs"){d.onclick=function(){GB_showFullScreen(g.caption,g.url);return false}}if(f=="gb_page_center"){d.onclick=function(){var h=e.split(/, ?/);GB_showCenter(g.caption,g.url,parseInt(h[1]),parseInt(h[0]));return false}}}}})}AJS.AEV(window,"load",decoGreyboxLinks);GB_showImage=function(c,d,a){var b={width:300,height:300,type:"image",fullscreen:false,center_win:true,caption:c,callback_fn:a};var e=new GB_Gallery(b);return e.show(d)};GB_showPage=function(e,a,d){var b={type:"page",caption:e,callback_fn:d,fullscreen:true,center_win:false};var c=new GB_Gallery(b);return c.show(a)};GB_Gallery=GreyBox.extend({init:function(a){this.parent({});this.img_close=this.root_dir+"g_close.gif";AJS.update(this,a);this.addCallback(this.callback_fn)},initHook:function(){AJS.addClass(this.g_window,"GB_Gallery");var d=AJS.DIV({"class":"inner"});this.header=AJS.DIV({"class":"GB_header"},d);AJS.setOpacity(this.header,0);AJS.getBody().insertBefore(this.header,this.overlay.nextSibling);var b=AJS.TD({id:"GB_caption","class":"caption",width:"40%"},this.caption);var g=AJS.TD({id:"GB_middle","class":"middle",width:"20%"});var f=AJS.IMG({src:this.img_close});AJS.AEV(f,"click",GB_hide);var e=AJS.TD({"class":"close",width:"40%"},f);var c=AJS.TBODY(AJS.TR(b,g,e));var a=AJS.TABLE({cellspacing:"0",cellpadding:0,border:0},c);AJS.ACN(d,a);if(this.fullscreen){AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this))}else{AJS.AEV(window,"scroll",AJS.$b(this._setHeaderPos,this))}},setFrameSize:function(){var a=this.overlay.offsetWidth;var b=AJS.getWindowSize();if(this.fullscreen){this.width=a-40;this.height=b.h-80}AJS.setWidth(this.iframe,this.width);AJS.setHeight(this.iframe,this.height);AJS.setWidth(this.header,a)},_setHeaderPos:function(){AJS.setTop(this.header,AJS.getScrollTop()+10)},setWindowPosition:function(){var c=this.overlay.offsetWidth;var b=AJS.getWindowSize();AJS.setLeft(this.g_window,((c-50-this.width)/2));var a=AJS.getScrollTop()+55;if(!this.center_win){AJS.setTop(this.g_window,a)}else{var d=((b.h-this.height)/2)+20+AJS.getScrollTop();if(d<0){d=0}if(a>d){d=a}AJS.setTop(this.g_window,d)}this._setHeaderPos()},onHide:function(){AJS.removeElement(this.header);AJS.removeClass(this.g_window,"GB_Gallery")},onShow:function(){if(this.use_fx){AJS.fx.fadeIn(this.header,{to:1})}else{AJS.setOpacity(this.header,1)}}});AJS.preloadImages(GB_ROOT_DIR+"g_close.gif");GB_showFullScreenSet=function(e,d,c){var b={type:"page",fullscreen:true,center_win:false};var a=new GB_Sets(b,e);a.addCallback(c);a.showSet(d-1);return false};GB_showImageSet=function(e,d,c){var b={type:"image",fullscreen:false,center_win:true,width:300,height:300};var a=new GB_Sets(b,e);a.addCallback(c);a.showSet(d-1);return false};GB_Sets=GB_Gallery.extend({init:function(a,b){this.parent(a);if(!this.img_next){this.img_next=this.root_dir+"next.gif"}if(!this.img_prev){this.img_prev=this.root_dir+"prev.gif"}this.current_set=b},showSet:function(b){this.current_index=b;var a=this.current_set[this.current_index];this.show(a.url);this._setCaption(a.caption);this.btn_prev=AJS.IMG({"class":"left",src:this.img_prev});this.btn_next=AJS.IMG({"class":"right",src:this.img_next});AJS.AEV(this.btn_prev,"click",AJS.$b(this.switchPrev,this));AJS.AEV(this.btn_next,"click",AJS.$b(this.switchNext,this));GB_STATUS=AJS.SPAN({"class":"GB_navStatus"});AJS.ACN(AJS.$("GB_middle"),this.btn_prev,GB_STATUS,this.btn_next);this.updateStatus()},updateStatus:function(){AJS.setHTML(GB_STATUS,(this.current_index+1)+" / "+this.current_set.length);if(this.current_index==0){AJS.addClass(this.btn_prev,"disabled")}else{AJS.removeClass(this.btn_prev,"disabled")}if(this.current_index==this.current_set.length-1){AJS.addClass(this.btn_next,"disabled")}else{AJS.removeClass(this.btn_next,"disabled")}},_setCaption:function(a){AJS.setHTML(AJS.$("GB_caption"),a)},updateFrame:function(){var a=this.current_set[this.current_index];this._setCaption(a.caption);this.url=a.url;this.startLoading()},switchPrev:function(){if(this.current_index!=0){this.current_index--;this.updateFrame();this.updateStatus()}},switchNext:function(){if(this.current_index!=this.current_set.length-1){this.current_index++;this.updateFrame();this.updateStatus()}}});AJS.AEV(window,"load",function(){AJS.preloadImages(GB_ROOT_DIR+"next.gif",GB_ROOT_DIR+"prev.gif")});GB_show=function(b,c,g,f,d){var a={caption:b,height:g||500,width:f||500,fullscreen:false,callback_fn:d};var e=new GB_Window(a);return e.show(c)};GB_showCenter=function(g,a,e,c,d){var b={caption:g,center_win:true,height:e||500,width:c||500,fullscreen:false,callback_fn:d};var f=new GB_Window(b);return f.show(a)};GB_showFullScreen=function(d,c,b){var a={caption:d,fullscreen:true,callback_fn:b};var e=new GB_Window(a);return e.show(c)};GB_Window=GreyBox.extend({init:function(a){this.parent({});this.img_header=this.root_dir+"header_bg.gif";this.img_close=this.root_dir+"w_close.gif";this.show_close_img=true;AJS.update(this,a);this.addCallback(this.callback_fn)},initHook:function(){AJS.addClass(this.g_window,"GB_Window");this.header=AJS.TABLE({"class":"header"});this.header.style.backgroundImage="url("+this.img_header+")";var e=AJS.TD({"class":"caption"},this.caption);var c=AJS.TD({"class":"close"});if(this.show_close_img){var b=AJS.IMG({src:this.img_close});var a=AJS.SPAN("schliessen");var d=AJS.DIV(b,a);AJS.AEV([b,a],"mouseover",function(){AJS.addClass(a,"on")});AJS.AEV([b,a],"mouseout",function(){AJS.removeClass(a,"on")});AJS.AEV([b,a],"mousedown",function(){AJS.addClass(a,"click")});AJS.AEV([b,a],"mouseup",function(){AJS.removeClass(a,"click")});AJS.AEV([b,a],"click",GB_hide);if(b_CLOSE){AJS.ACN(c,d)}}tbody_header=AJS.TBODY();AJS.ACN(tbody_header,AJS.TR(e,c));AJS.ACN(this.header,tbody_header);AJS.ACN(this.top_cnt,this.header);if(this.fullscreen){AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this))}},setFrameSize:function(){if(this.fullscreen){var a=AJS.getWindowSize();overlay_h=a.h;this.width=Math.round(this.overlay.offsetWidth-(this.overlay.offsetWidth/100)*10);this.height=Math.round(overlay_h-(overlay_h/100)*10)}AJS.setWidth(this.header,this.width+6);AJS.setWidth(this.iframe,this.width);AJS.setHeight(this.iframe,this.height)},setWindowPosition:function(){var b=AJS.getWindowSize();AJS.setLeft(this.g_window,((b.w-this.width)/2)-13);if(!this.center_win){AJS.setTop(this.g_window,AJS.getScrollTop())}else{var a=((b.h-this.height)/2)-20+AJS.getScrollTop();if(a<0){a=0}AJS.setTop(this.g_window,a)}}});AJS.preloadImages(GB_ROOT_DIR+"w_close.gif",GB_ROOT_DIR+"header_bg.gif");script_loaded=true;
