

/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
 * $Rev: 5685 $
 */
(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else
return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value);}}return values;}else
return(this[0].value||"").replace(/\r/g,"");}return undefined;}if(value.constructor==Number)value+='';return this.each(function(){if(this.nodeType!=1)return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){var src=target[name],copy=options[name];if(target===copy)continue;if(deep&&copy&&typeof copy=="object"&&!copy.nodeType)target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)target[name]=copy;}return target;};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)script.text=data;else
script.appendChild(document.createTextNode(data));head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!==undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando);}delete jQuery.cache[id];}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object)if(callback.apply(object[name],args)===false)break;}else
for(;i<length;)if(callback.apply(object[i++],args)===false)break;}else{if(length==undefined){for(name in object)if(callback.call(object[name],name,object[name])===false)break;}else
for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i];}if(name=="opacity"&&ret=="")ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)return;if(elem.constructor==Number)elem+='';if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&&notxml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else
while(i)ret[--i]=array[i];}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)if(array[i]===elem)return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++])if(elem.nodeType!=8)first[pos++]=elem;}else
while(elem=second[i++])first[pos++]=elem;return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv!=!callback(elems[i],i))ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)ret[ret.length]=value;}return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)jQuery(args[i])[original](this);});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n);}if(m=="+")break;}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true;}var add=false;if(first==0){if(node.nodeIndex==last)add=true;}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i<args.length)jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}jQuery.ready();})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(numStyles===undefined)numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}jQuery.ready();})();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!='string')return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else
xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else
jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s]);}function complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.call(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].call(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!timers[i]())timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done)this.options.complete.call(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return results;};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0);};});})();

/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright Â© 2008 George McGinley Smith
 * All rights reserved.
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuart',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	}
});

/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-12-20 08:43:48 -0600 (Thu, 20 Dec 2007) $
 * $Rev: 4257 $
 *
 * Version: 1.2
 *
 * Requires: jQuery 1.2+
 */
(function($){$.dimensions={version:'1.2'};$.each(['Height','Width'],function(i,name){$.fn['inner'+name]=function(){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';return this.is(':visible')?this[0]['client'+name]:num(this,name.toLowerCase())+num(this,'padding'+torl)+num(this,'padding'+borr);};$.fn['outer'+name]=function(options){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';options=$.extend({margin:false},options||{});var val=this.is(':visible')?this[0]['offset'+name]:num(this,name.toLowerCase())+num(this,'border'+torl+'Width')+num(this,'border'+borr+'Width')+num(this,'padding'+torl)+num(this,'padding'+borr);return val+(options.margin?(num(this,'margin'+torl)+num(this,'margin'+borr)):0);};});$.each(['Left','Top'],function(i,name){$.fn['scroll'+name]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(name=='Left'?val:$(window)['scrollLeft'](),name=='Top'?val:$(window)['scrollTop']()):this['scroll'+name]=val;}):this[0]==window||this[0]==document?self[(name=='Left'?'pageXOffset':'pageYOffset')]||$.boxModel&&document.documentElement['scroll'+name]||document.body['scroll'+name]:this[0]['scroll'+name];};});$.fn.extend({position:function(){var left=0,top=0,elem=this[0],offset,parentOffset,offsetParent,results;if(elem){offsetParent=this.offsetParent();offset=this.offset();parentOffset=offsetParent.offset();offset.top-=num(elem,'marginTop');offset.left-=num(elem,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&$.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return $(offsetParent);}});function num(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;};})(jQuery);

/*
 * jQuery minoTooltip
 */
(function($){
	$.fn.minoTooltip = function() {
		function over(which) {
			var content = $("div.minoTooltip_Content", which).html();
			if ( content!="" && content!=null ) {
				$("body").append("<div id=\"minoTooltip_"+$.data(which)+"\" class=\"minoTooltip_Container\"><table class=\"minoTooltip_Table\"><tr><td class=\"lo pngfix\">&nbsp;</td><td class=\"o pngfix\">&nbsp;</td><td class=\"ro pngfix\">&nbsp;</td></tr><tr><td class=\"l pngfix\">&nbsp;</td><td class=\"content\">"+content+"</td><td class=\"r pngfix\">&nbsp;</td></tr><tr><td class=\"lu pngfix\">&nbsp;</td><td class=\"u pngfix\">&nbsp;</td><td class=\"ru pngfix\">&nbsp;</td></tr></table></div>");
				tip_container = $("#minoTooltip_"+$.data(which));

				var self_pos = $(which).offset();
				new_top = self_pos.top - tip_container.height();
				new_left = self_pos.left + ($(which).width()-tip_container.width())/2;

				tip_container.css('top',new_top+"px");
				tip_container.css('left',new_left+"px");
				tip_container.animate({marginTop:"0px"},400);
			}			
//			if ( content!="" && content!=null ) {
//				$(which).after("<div id=\"minoTooltip_"+$.data(which)+"\" class=\"minoTooltip_Container\"><table class=\"minoTooltip_Table\"><tr><td class=\"lo\">&nbsp;</td><td class=\"o\">&nbsp;</td><td class=\"ro\">&nbsp;</td></tr><tr><td class=\"l\">&nbsp;</td><td class=\"content\">"+content+"</td><td class=\"r\">&nbsp;</td></tr><tr><td class=\"lu\">&nbsp;</td><td class=\"u\">&nbsp;</td><td class=\"ru\">&nbsp;</td></tr></table></div>");
//				tip_container = $("#minoTooltip_"+$.data(which));
//				new_top = -tip_container.height();
//				new_left = ($(which).width()-tip_container.width())/2;
//				if ( Number($(which).css('marginTop').replace("px", ""))==$(which).css('marginTop').replace("px", "") ) {
//					new_top += Number($(which).css('marginTop').replace("px", ""));
//				}
//				if ( Number($(which).css('marginLeft').replace("px", ""))==$(which).css('marginLeft').replace("px", "") ) {
//					new_left += Number($(which).css('marginLeft').replace("px", ""));
//				}
//				var self_pos = $(which).position();
//				if ( self_pos.left!="" && self_pos.left!=null && self_pos.top!="" && self_pos.top!=null ) {
//					new_top = self_pos.top + new_top;
//					new_left = self_pos.left + new_left;
//				}
//				tip_container.css('top',new_top+"px");
//				tip_container.css('left',new_left+"px");
//				tip_container.animate({marginTop:"0px"},400);
//			}
			if ( $(which).hasClass('fragezeichen_cursor') ) {
				$(which).css('cursor','help');
			} else if ( $(which).hasClass('pointer_cursor') ) {
				$(which).css('cursor','pointer');
			}
		}
		function out(which) {
			$("#minoTooltip_"+$.data(which)).remove();
			$(which).css('cursor','auto');
		}
		
		return this.each(function(){
			if ( $("div.minoTooltip_Content", this).length==0 && $(this).attr('title')!="" ) {
				$(this).prepend("<div class=\"minoTooltip_Content\"><span style=\"display:block; width:200px; white-space:normal; padding:6px;\">"+$(this).attr('title')+"</span></div>");
			}
			$(this).hover(function(){over(this);}, function(){out(this);}).removeAttr('title');
			if ( $(this).attr('href')=="#" ) {
				$(this).click(function(){out(this); return false;});
			} else {
				$(this).click(function(){out(this);});
			}
		});
	};
})(jQuery);

/*
 *  corner() takes a single string argument:  $('#myDiv').corner("effect corners width")
 *
 *  effect:  name of the effect to apply, such as round, bevel, notch, bite, etc (default is round). 
 *  corners: one or more of: top, bottom, tr, tl, br, or bl. 
 *           by default, all four corners are adorned. 
 *  width:   width of the effect; in the case of rounded corners this is the radius. 
 *           specify this value using the px suffix such as 10px (and yes, it must be pixels).
 *
 * @author Dave Methvin (http://methvin.com/jquery/jq-corner.html)
 * @author Mike Alsup   (http://jquery.malsup.com/corner/)
 */
;(function($) { 

var moz = $.browser.mozilla && /gecko/i.test(navigator.userAgent);
var webkit = $.browser.safari && $.browser.version >= 3;

var expr = $.browser.msie && (function() {
    var div = document.createElement('div');
    try { div.style.setExpression('width','0+0'); }
    catch(e) { return false; }
    return true;
})();
    
function sz(el, p) { 
    return parseInt($.css(el,p))||0; 
};
function hex2(s) {
    var s = parseInt(s).toString(16);
    return ( s.length < 2 ) ? '0'+s : s;
};
function gpc(node) {
    for ( ; node && node.nodeName.toLowerCase() != 'html'; node = node.parentNode ) {
        var v = $.css(node,'backgroundColor');
        if (v == 'rgba(0, 0, 0, 0)')
            continue; // webkit
        if (v.indexOf('rgb') >= 0) { 
            var rgb = v.match(/\d+/g); 
            return '#'+ hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]);
        }
        if ( v && v != 'transparent' )
            return v;
    }
    return '#ffffff';
};

function getWidth(fx, i, width) {
    switch(fx) {
    case 'round':  return Math.round(width*(1-Math.cos(Math.asin(i/width))));
    case 'cool':   return Math.round(width*(1+Math.cos(Math.asin(i/width))));
    case 'sharp':  return Math.round(width*(1-Math.cos(Math.acos(i/width))));
    case 'bite':   return Math.round(width*(Math.cos(Math.asin((width-i-1)/width))));
    case 'slide':  return Math.round(width*(Math.atan2(i,width/i)));
    case 'jut':    return Math.round(width*(Math.atan2(width,(width-i-1))));
    case 'curl':   return Math.round(width*(Math.atan(i)));
    case 'tear':   return Math.round(width*(Math.cos(i)));
    case 'wicked': return Math.round(width*(Math.tan(i)));
    case 'long':   return Math.round(width*(Math.sqrt(i)));
    case 'sculpt': return Math.round(width*(Math.log((width-i-1),width)));
    case 'dog':    return (i&1) ? (i+1) : width;
    case 'dog2':   return (i&2) ? (i+1) : width;
    case 'dog3':   return (i&3) ? (i+1) : width;
    case 'fray':   return (i%2)*width;
    case 'notch':  return width; 
    case 'bevel':  return i+1;
    }
};

$.fn.corner = function(options) {
    // in 1.3+ we can fix mistakes with the ready state
	if (this.length == 0) {
        if (!$.isReady && this.selector) {
            var s = this.selector, c = this.context;
            $(function() {
                $(s,c).corner(options);
            });
        }
        return this;
	}

    return this.each(function(index){
		var $this = $(this);
		var o = (options || $this.attr($.fn.corner.defaults.metaAttr) || '').toLowerCase();
		var keep = /keep/.test(o);                       // keep borders?
		var cc = ((o.match(/cc:(#[0-9a-f]+)/)||[])[1]);  // corner color
		var sc = ((o.match(/sc:(#[0-9a-f]+)/)||[])[1]);  // strip color
		var width = parseInt((o.match(/(\d+)px/)||[])[1]) || 10; // corner width
		var re = /round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;
		var fx = ((o.match(re)||['round'])[0]);
		var edges = { T:0, B:1 };
		var opts = {
			TL:  /top|tl|left/.test(o),       TR:  /top|tr|right/.test(o),
			BL:  /bottom|bl|left/.test(o),    BR:  /bottom|br|right/.test(o)
		};
		if ( !opts.TL && !opts.TR && !opts.BL && !opts.BR )
			opts = { TL:1, TR:1, BL:1, BR:1 };
			
		// support native rounding
		if ($.fn.corner.defaults.useNative && fx == 'round' && (moz || webkit) && !cc && !sc) {
			if (opts.TL)
				$this.css(moz ? '-moz-border-radius-topleft' : '-webkit-border-top-left-radius', width + 'px');
			if (opts.TR)
				$this.css(moz ? '-moz-border-radius-topright' : '-webkit-border-top-right-radius', width + 'px');
			if (opts.BL)
				$this.css(moz ? '-moz-border-radius-bottomleft' : '-webkit-border-bottom-left-radius', width + 'px');
			if (opts.BR)
				$this.css(moz ? '-moz-border-radius-bottomright' : '-webkit-border-bottom-right-radius', width + 'px');
			return;
		}
			
		var strip = document.createElement('div');
		strip.style.overflow = 'hidden';
		strip.style.height = '1px';
		strip.style.backgroundColor = sc || 'transparent';
		strip.style.borderStyle = 'solid';
	
        var pad = {
            T: parseInt($.css(this,'paddingTop'))||0,     R: parseInt($.css(this,'paddingRight'))||0,
            B: parseInt($.css(this,'paddingBottom'))||0,  L: parseInt($.css(this,'paddingLeft'))||0
        };
		
		// ADDED BY MN - damit das Element eine CSS-Width bekommt, die seiner realen, nicht vorher durch CSS festgelegten Größe entspricht.
		// das braucht der IE6, damit er die Elemente floaten kann (wie z.B. in der Navi)
		this.style.width = $(this).width()+'px';
		// ---------------

        if (typeof this.style.zoom != undefined) this.style.zoom = 1; // force 'hasLayout' in IE
        if (!keep) this.style.border = 'none';
        strip.style.borderColor = cc || gpc(this.parentNode);
        var cssHeight = $.curCSS(this, 'height');

        for (var j in edges) {
            var bot = edges[j];
            // only add stips if needed
            if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) {
                strip.style.borderStyle = 'none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none');
                var d = document.createElement('div');
                $(d).addClass('jquery-corner');
                var ds = d.style;

                bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild);

                if (bot && cssHeight != 'auto') {
                    if ($.css(this,'position') == 'static')
                        this.style.position = 'relative';
                    ds.position = 'absolute';
                    ds.bottom = ds.left = ds.padding = ds.margin = '0';
                    if (expr)
                        ds.setExpression('width', 'this.parentNode.offsetWidth');
                    else
                        ds.width = '100%';
                }
                else if (!bot && $.browser.msie) {
                    if ($.css(this,'position') == 'static')
                        this.style.position = 'relative';
                    ds.position = 'absolute';
                    ds.top = ds.left = ds.right = ds.padding = ds.margin = '0';
                    
                    // fix ie6 problem when blocked element has a border width
                    if (expr) {
                        var bw = sz(this,'borderLeftWidth') + sz(this,'borderRightWidth');
                        ds.setExpression('width', 'this.parentNode.offsetWidth - '+bw+'+ "px"');
                    }
                    else
                        ds.width = '100%';
                }
                else {
                	ds.position = 'relative';
                    ds.margin = !bot ? '-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px' : 
                                        (pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px';                
                }

                for (var i=0; i < width; i++) {
                    var w = Math.max(0,getWidth(fx,i, width));
                    var e = strip.cloneNode(false);
                    e.style.borderWidth = '0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px';
                    bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild);
                }
            }
        }
    });
};

$.fn.uncorner = function() { 
	if (moz || webkit)
		this.css(moz ? '-moz-border-radius' : '-webkit-border-radius', 0);
	$('div.jquery-corner', this).remove();
	return this;
};

// expose options
$.fn.corner.defaults = {
	useNative: true, // true if plugin should attempt to use native browser support for border radius rounding
	metaAttr:  'data-corner' // name of meta attribute to use for options
};
    
})(jQuery);


/**
 * Flash (http://jquery.lukelutman.com/plugins/flash)
 * A jQuery plugin for embedding Flash movies.
 * 
 * Version 1.0
 * November 9th, 2006
 *
 * Copyright (c) 2006 Luke Lutman (http://www.lukelutman.com)
 * Dual licensed under the MIT and GPL licenses.
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.opensource.org/licenses/gpl-license.php
 * 
 * Inspired by:
 * SWFObject (http://blog.deconcept.com/swfobject/)
 * UFO (http://www.bobbyvandersluis.com/ufo/)
 * sIFR (http://www.mikeindustries.com/sifr/)
 * 
 * IMPORTANT: 
 * The packed version of jQuery breaks ActiveX control
 * activation in Internet Explorer. Use JSMin to minifiy
 * jQuery (see: http://jquery.lukelutman.com/plugins/flash#activex).
 *
 **/ 
;(function($){
	
var $$;

/**
 * 
 * @desc Replace matching elements with a flash movie.
 * @author Luke Lutman
 * @version 1.0.1
 *
 * @name flash
 * @param Hash htmlOptions Options for the embed/object tag.
 * @param Hash pluginOptions Options for detecting/updating the Flash plugin (optional).
 * @param Function replace Custom block called for each matched element if flash is installed (optional).
 * @param Function update Custom block called for each matched if flash isn't installed (optional).
 * @type jQuery
 *
 * @cat plugins/flash
 * 
 * @example $('#hello').flash({ src: 'hello.swf' });
 * @desc Embed a Flash movie.
 *
 * @example $('#hello').flash({ src: 'hello.swf' }, { version: 8 });
 * @desc Embed a Flash 8 movie.
 *
 * @example $('#hello').flash({ src: 'hello.swf' }, { expressInstall: true });
 * @desc Embed a Flash movie using Express Install if flash isn't installed.
 *
 * @example $('#hello').flash({ src: 'hello.swf' }, { update: false });
 * @desc Embed a Flash movie, don't show an update message if Flash isn't installed.
 *
**/
$$ = jQuery.fn.flash = function(htmlOptions, pluginOptions, replace, update) {
	
	// Set the default block.
	var block = replace || $$.replace;
	
	// Merge the default and passed plugin options.
	pluginOptions = $$.copy($$.pluginOptions, pluginOptions);
	
	// Detect Flash.
	if(!$$.hasFlash(pluginOptions.version)) {
		// Use Express Install (if specified and Flash plugin 6,0,65 or higher is installed).
		if(pluginOptions.expressInstall && $$.hasFlash(6,0,65)) {
			// Add the necessary flashvars (merged later).
			var expressInstallOptions = {
				flashvars: {  	
					MMredirectURL: location,
					MMplayerType: 'PlugIn',
					MMdoctitle: jQuery('title').text() 
				}					
			};
		// Ask the user to update (if specified).
		} else if (pluginOptions.update) {
			// Change the block to insert the update message instead of the flash movie.
			block = update || $$.update;
		// Fail
		} else {
			// The required version of flash isn't installed.
			// Express Install is turned off, or flash 6,0,65 isn't installed.
			// Update is turned off.
			// Return without doing anything.
			return this;
		}
	}
	
	// Merge the default, express install and passed html options.
	htmlOptions = $$.copy($$.htmlOptions, expressInstallOptions, htmlOptions);
	
	// Invoke $block (with a copy of the merged html options) for each element.
	return this.each(function(){
		block.call(this, $$.copy(htmlOptions));
	});
	
};
/**
 *
 * @name flash.copy
 * @desc Copy an arbitrary number of objects into a new object.
 * @type Object
 * 
 * @example $$.copy({ foo: 1 }, { bar: 2 });
 * @result { foo: 1, bar: 2 };
 *
**/
$$.copy = function() {
	var options = {}, flashvars = {};
	for(var i = 0; i < arguments.length; i++) {
		var arg = arguments[i];
		if(arg == undefined) continue;
		jQuery.extend(options, arg);
		// don't clobber one flash vars object with another
		// merge them instead
		if(arg.flashvars == undefined) continue;
		jQuery.extend(flashvars, arg.flashvars);
	}
	options.flashvars = flashvars;
	return options;
};
/*
 * @name flash.hasFlash
 * @desc Check if a specific version of the Flash plugin is installed
 * @type Boolean
 *
**/
$$.hasFlash = function() {
	// look for a flag in the query string to bypass flash detection
	if(/hasFlash\=true/.test(location)) return true;
	if(/hasFlash\=false/.test(location)) return false;
	var pv = $$.hasFlash.playerVersion().match(/\d+/g);
	var rv = String([arguments[0], arguments[1], arguments[2]]).match(/\d+/g) || String($$.pluginOptions.version).match(/\d+/g);
	for(var i = 0; i < 3; i++) {
		pv[i] = parseInt(pv[i] || 0);
		rv[i] = parseInt(rv[i] || 0);
		// player is less than required
		if(pv[i] < rv[i]) return false;
		// player is greater than required
		if(pv[i] > rv[i]) return true;
	}
	// major version, minor version and revision match exactly
	return true;
};
/**
 *
 * @name flash.hasFlash.playerVersion
 * @desc Get the version of the installed Flash plugin.
 * @type String
 *
**/
$$.hasFlash.playerVersion = function() {
	// ie
	try {
		try {
			// avoid fp6 minor version lookup issues
			// see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
			var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
			try { axo.AllowScriptAccess = 'always';	} 
			catch(e) { return '6,0,0'; }				
		} catch(e) {}
		return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
	// other browsers
	} catch(e) {
		try {
			if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
				return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1];
			}
		} catch(e) {}		
	}
	return '0,0,0';
};
/**
 *
 * @name flash.htmlOptions
 * @desc The default set of options for the object or embed tag.
 *
**/
$$.htmlOptions = {
	height: 240,
	flashvars: {},
	pluginspage: 'http://www.adobe.com/go/getflashplayer',
	src: '#',
	type: 'application/x-shockwave-flash',
	width: 320		
};
/**
 *
 * @name flash.pluginOptions
 * @desc The default set of options for checking/updating the flash Plugin.
 *
**/
$$.pluginOptions = {
	expressInstall: false,
	update: true,
	version: '6.0.65'
};
/**
 *
 * @name flash.replace
 * @desc The default method for replacing an element with a Flash movie.
 *
**/
$$.replace = function(htmlOptions) {
	this.innerHTML = '<div class="alt">'+this.innerHTML+'</div>';
	jQuery(this)
		.addClass('flash-replaced')
		.prepend($$.transform(htmlOptions));
};
/**
 *
 * @name flash.update
 * @desc The default method for replacing an element with an update message.
 *
**/
$$.update = function(htmlOptions) {
	var url = String(location).split('?');
	url.splice(1,0,'?hasFlash=true&');
	url = url.join('');
	var msg = '<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+url+'">Click here.</a></p>';
	this.innerHTML = '<span class="alt">'+this.innerHTML+'</span>';
//	jQuery(this) --- MN Edit (3 Zeilen auskommentiert)
//		.addClass('flash-update')
//		.prepend(msg);
};
/**
 *
 * @desc Convert a hash of html options to a string of attributes, using Function.apply(). 
 * @example toAttributeString.apply(htmlOptions)
 * @result foo="bar" foo="bar"
 *
**/
function toAttributeString() {
	var s = '';
	for(var key in this)
		if(typeof this[key] != 'function')
			s += key+'="'+this[key]+'" ';
	return s;		
};
/**
 *
 * @desc Convert a hash of flashvars to a url-encoded string, using Function.apply(). 
 * @example toFlashvarsString.apply(flashvarsObject)
 * @result foo=bar&foo=bar
 *
**/
function toFlashvarsString() {
	var s = '';
	for(var key in this)
		if(typeof this[key] != 'function')
			s += key+'='+encodeURIComponent(this[key])+'&';
	return s.replace(/&$/, '');		
};
/**
 *
 * @name flash.transform
 * @desc Transform a set of html options into an embed tag.
 * @type String 
 *
 * @example $$.transform(htmlOptions)
 * @result <embed src="foo.swf" ... />
 *
 * Note: The embed tag is NOT standards-compliant, but it 
 * works in all current browsers. flash.transform can be
 * overwritten with a custom function to generate more 
 * standards-compliant markup.
 *
**/
$$.transform = function(htmlOptions) {
	htmlOptions.toString = toAttributeString;
	if(htmlOptions.flashvars) htmlOptions.flashvars.toString = toFlashvarsString;
	return '<embed ' + String(htmlOptions) + '/>';		
};

/**
 *
 * Flash Player 9 Fix (http://blog.deconcept.com/2006/07/28/swfobject-143-released/)
 *
**/
if (window.attachEvent) {
	window.attachEvent("onbeforeunload", function(){
		__flash_unloadHandler = function() {};
		__flash_savedUnloadHandler = function() {};
	});
}
	
})(jQuery);

/*
 * jQuery Example Plugin 1.3.4
 * Populate form inputs with example text that disappears on focus.
 *
 * e.g.
 *  $('input#name').example('Bob Smith');
 *  $('input[@title]').example(function() {
 *    return $(this).attr('title');
 *  });
 *  $('textarea#message').example('Type your message here', {
 *    class_name: 'example_text',
 *    hide_label: true
 *  });
 *
 * Copyright (c) Paul Mucur (http://mucur.name), 2007-2008.
 * Dual-licensed under the BSD (BSD-LICENSE.txt) and GPL (GPL-LICENSE.txt)
 * licenses.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
(function(A){A.fn.example=function(D,C){var B=A.extend({},A.fn.example.defaults,C,{example_text:D});var E=A.isFunction(B.example_text);if(!A.fn.example.bound_class_names[B.class_name]){A(window).unload(function(){A("."+B.class_name).val("")});A("form").submit(function(){A(this).find("."+B.class_name).val("")});A.fn.example.bound_class_names[B.class_name]=true}return this.each(function(){var G=A(this);var H=A.metadata?A.extend({},B,G.metadata()):B;if(A.browser.msie&&!G.attr("defaultValue")&&(E?G.val()!="":G.val()==H.example_text)){G.val("")}if(G.val()==""){G.addClass(B.class_name);G.val(E?H.example_text.call(this):H.example_text)}if(B.hide_label){var F=A("label[@for="+G.attr("id")+"]");F.next("br").hide();F.hide()}G.focus(function(){if(A(this).is("."+B.class_name)){A(this).val("");A(this).removeClass(B.class_name)}});G.blur(function(){if(A(this).val()==""){A(this).addClass(B.class_name);A(this).val(E?H.example_text.call(this):H.example_text)}})})};A.fn.example.defaults={example_text:"",class_name:"example",hide_label:false};A.fn.example.bound_class_names=[]})(jQuery);

/**
 *
 * Copyright (c) 2007 Tom Deater (http://www.tomdeater.com)
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 */
 
(function($) {
	/**
	 * attaches a character counter to each textarea element in the jQuery object
	 * usage: $("#myTextArea").charCounter(max, settings);
	 */
	
	$.fn.charCounter = function (max, settings) {
		max = max || 100;
		settings = $.extend({
			container: "<span></span>",
			classname: "charcounter",
			format: "(%1 characters remaining)",
			pulse: true,
			delay: 0
		}, settings);
		var p, timeout;
		
		function count(el, container) {
			el = $(el);
			if (el.val().length > max) {
			    el.val(el.val().substring(0, max));
			    if (settings.pulse && !p) {
			    	pulse(container, true);
			    };
			};
			if (settings.delay > 0) {
				if (timeout) {
					window.clearTimeout(timeout);
				}
				timeout = window.setTimeout(function () {
					container.html(settings.format.replace(/%1/, (max - el.val().length)));
				}, settings.delay);
			} else {
				container.html(settings.format.replace(/%1/, (max - el.val().length)));
			}
		};
		
		function pulse(el, again) {
			if (p) {
				window.clearTimeout(p);
				p = null;
			};
			el.animate({ opacity: 0.1 }, 100, function () {
				$(this).animate({ opacity: 1.0 }, 100);
			});
			if (again) {
				p = window.setTimeout(function () { pulse(el) }, 200);
			};
		};
		
		return this.each(function () {
			var container = (!settings.container.match(/^<.+>$/)) 
				? $(settings.container) 
				: $(settings.container)
					.insertAfter(this)
					.addClass(settings.classname);
			$(this)
				.bind("keydown", function () { count(this, container); })
				.bind("keypress", function () { count(this, container); })
				.bind("keyup", function () { count(this, container); })
				.bind("focus", function () { count(this, container); })
				.bind("mouseover", function () { count(this, container); })
				.bind("mouseout", function () { count(this, container); })
				.bind("paste", function () { 
					var me = this;
					setTimeout(function () { count(me, container); }, 10);
				});
			if (this.addEventListener) {
				this.addEventListener('input', function () { count(this, container); }, false);
			};
			count(this, container);
		});
	};

})(jQuery);

// vertical positioning in the viewport
(function($){
  $.fn.vCenter = function(options) {
    var pos = {
      sTop : function() {
        return window.pageYOffset || document.documentElement && document.documentElement.scrollTop ||	document.body.scrollTop;
      },
      wHeight : function() { 
        return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body.clientHeight;
      }
    };
    return this.each(function(index) {
      if (index == 0) {
        var $this = $(this);
        var elHeight = $this.height();
		    var elTop = pos.sTop() + (pos.wHeight() / 2) - (elHeight / 2);
        $this.css({
          position: 'absolute',
          marginTop: '0',
          top: elTop
        });
      }
    });
  };
})(jQuery);

/*
 * jqDnR - Minimalistic Drag'n'Resize for jQuery.
 *
 * Copyright (c) 2007 Brice Burgess <bhb@iceburg.net>, http://www.iceburg.net
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * $Version: 2007.08.19 +r2
 */

(function($){
$.fn.jqDrag=function(h){return i(this,h,'d');};
$.fn.jqResize=function(h){return i(this,h,'r');};
$.jqDnR={dnr:{},e:0,
drag:function(v){
 if(M.k == 'd')E.css({left:M.X+v.pageX-M.pX,top:M.Y+v.pageY-M.pY});
 else E.css({width:Math.max(v.pageX-M.pX+M.W,0),height:Math.max(v.pageY-M.pY+M.H,0)});
  return false;},
stop:function(){E.css('opacity',M.o);$().unbind('mousemove',J.drag).unbind('mouseup',J.stop);}
};
var J=$.jqDnR,M=J.dnr,E=J.e,
i=function(e,h,k){return e.each(function(){h=(h)?$(h,e):e;
 h.bind('mousedown',{e:e,k:k},function(v){var d=v.data,p={};E=d.e;
 // attempt utilization of dimensions plugin to fix IE issues
 if(E.css('position') != 'relative'){try{E.position(p);}catch(e){}}
 M={X:p.left||f('left')||0,Y:p.top||f('top')||0,W:f('width')||E[0].scrollWidth||0,H:f('height')||E[0].scrollHeight||0,pX:v.pageX,pY:v.pageY,k:d.k,o:E.css('opacity')};
 E.css({opacity:0.8});$().mousemove($.jqDnR.drag).mouseup($.jqDnR.stop);
 return false;
 });
});},
f=function(k){return parseInt(E.css(k))||false;};
})(jQuery);

/*
 * jqModal - Minimalist Modaling with jQuery
 *   (http://dev.iceburg.net/jquery/jqmodal/)
 *
 * Copyright (c) 2007,2008 Brice Burgess <bhb@iceburg.net>
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 * 
 * $Version: 07/06/2008 +r13
 */
(function($) {
$.fn.jqm=function(o){
var p={
overlay: 50,
overlayClass: 'jqmOverlay',
closeClass: 'jqmClose',
trigger: '.jqModal',
ajax: F,
ajaxText: '',
target: F,
modal: F,
toTop: F,
onShow: F,
onHide: F,
onLoad: F
};
return this.each(function(){if(this._jqm)return H[this._jqm].c=$.extend({},H[this._jqm].c,o);s++;this._jqm=s;
H[s]={c:$.extend(p,$.jqm.params,o),a:F,w:$(this).addClass('jqmID'+s),s:s};
if(p.trigger)$(this).jqmAddTrigger(p.trigger);
});};

$.fn.jqmAddClose=function(e){return hs(this,e,'jqmHide');};
$.fn.jqmAddTrigger=function(e){return hs(this,e,'jqmShow');};
$.fn.jqmShow=function(t){return this.each(function(){$.jqm.open(this._jqm,t);});};
$.fn.jqmHide=function(t){return this.each(function(){$.jqm.close(this._jqm,t)});};

$.jqm = {
hash:{},
open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(parseInt(h.w.css('z-index'))),z=(z>0)?z:3000,o=$('<div></div>').css({height:'100%',width:'100%',position:'fixed',left:0,top:0,'z-index':z-1,opacity:c.overlay/100});if(h.a)return F;h.t=t;h.a=true;h.w.css('z-index',z);
 if(c.modal) {if(!A[0])L('bind');A.push(s);}
 else if(c.overlay > 0)h.w.jqmAddClose(o);
 else o=F;

 h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):F;
 if(ie6){$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in {Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'");}}

 if(c.ajax) {var r=c.target||h.w,u=c.ajax,r=(typeof r == 'string')?$(r,h.w):$(r),u=(u.substr(0,1) == '@')?$(t).attr(u.substring(1)):u;
  r.html(c.ajaxText).load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h);});}
 else if(cc)h.w.jqmAddClose($(cc,h.w));

 if(c.toTop&&h.o)h.w.before('<span id="jqmP'+h.w[0]._jqm+'"></span>').insertAfter(h.o);	
 (c.onShow)?c.onShow(h):h.w.show();e(h);return F;
},
close:function(s){var h=H[s];if(!h.a)return F;h.a=F;
 if(A[0]){A.pop();if(!A[0])L('unbind');}
 if(h.c.toTop&&h.o)$('#jqmP'+h.w[0]._jqm).after(h.w).remove();
 if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove();} return F;
},
params:{}};
var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version == "6.0"),F=false,
i=$('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),
e=function(h){if(ie6)if(h.o)h.o.html('<p style="width:100%;height:100%"/>').prepend(i);else if(!$('iframe.jqm',h.w)[0])h.w.prepend(i); f(h);},
f=function(h){try{$(':input:visible',h.w)[0].focus();}catch(_){}},
L=function(t){$()[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m);},
m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return !r;},
hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function() {
 if(!this[c]){this[c]=[];$(this).click(function(){for(var i in {jqmShow:1,jqmHide:1})for(var s in this[i])if(H[this[i][s]])H[this[i][s]].w[i](this);return F;});}this[c].push(s);});});};
})(jQuery);

/**
 * jQuery lightBox plugin
 * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
 * and adapted to me for use like a plugin from jQuery.
 * @name jquery-lightbox-0.5.js
 * @author Leandro Vieira Pinho - http://leandrovieira.com
 * @version 0.5
 * @date April 11, 2008
 * @category jQuery plugin
 * @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
 * @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
 * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
 */
(function($) {
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){$.2N.3g=6(4){4=23.2H({2B:\'#34\',2g:0.8,1d:F,1M:\'18/5-33-Y.16\',1v:\'18/5-1u-2Q.16\',1E:\'18/5-1u-2L.16\',1W:\'18/5-1u-2I.16\',19:\'18/5-2F.16\',1f:10,2A:3d,2s:\'1j\',2o:\'32\',2j:\'c\',2f:\'p\',2d:\'n\',h:[],9:0},4);f I=N;6 20(){1X(N,I);u F}6 1X(1e,I){$(\'1U, 1S, 1R\').l({\'1Q\':\'2E\'});1O();4.h.B=0;4.9=0;7(I.B==1){4.h.1J(v 1m(1e.17(\'J\'),1e.17(\'2v\')))}j{36(f i=0;i<I.B;i++){4.h.1J(v 1m(I[i].17(\'J\'),I[i].17(\'2v\')))}}2n(4.h[4.9][0]!=1e.17(\'J\')){4.9++}D()}6 1O(){$(\'m\').31(\'<e g="q-13"></e><e g="q-5"><e g="5-s-b-w"><e g="5-s-b"><1w g="5-b"><e 2V="" g="5-k"><a J="#" g="5-k-V"></a><a J="#" g="5-k-X"></a></e><e g="5-Y"><a J="#" g="5-Y-29"><1w W="\'+4.1M+\'"></a></e></e></e><e g="5-s-b-T-w"><e g="5-s-b-T"><e g="5-b-A"><1i g="5-b-A-1t"></1i><1i g="5-b-A-1g"></1i></e><e g="5-1s"><a J="#" g="5-1s-22"><1w W="\'+4.1W+\'"></a></e></e></e></e>\');f z=1D();$(\'#q-13\').l({2K:4.2B,2J:4.2g,S:z[0],P:z[1]}).1V();f R=1p();$(\'#q-5\').l({1T:R[1]+(z[3]/10),1c:R[0]}).E();$(\'#q-13,#q-5\').C(6(){1a()});$(\'#5-Y-29,#5-1s-22\').C(6(){1a();u F});$(G).2G(6(){f z=1D();$(\'#q-13\').l({S:z[0],P:z[1]});f R=1p();$(\'#q-5\').l({1T:R[1]+(z[3]/10),1c:R[0]})})}6 D(){$(\'#5-Y\').E();7(4.1d){$(\'#5-b,#5-s-b-T-w,#5-b-A-1g\').1b()}j{$(\'#5-b,#5-k,#5-k-V,#5-k-X,#5-s-b-T-w,#5-b-A-1g\').1b()}f Q=v 1j();Q.1P=6(){$(\'#5-b\').2D(\'W\',4.h[4.9][0]);1N(Q.S,Q.P);Q.1P=6(){}};Q.W=4.h[4.9][0]};6 1N(1o,1r){f 1L=$(\'#5-s-b-w\').S();f 1K=$(\'#5-s-b-w\').P();f 1n=(1o+(4.1f*2));f 1y=(1r+(4.1f*2));f 1I=1L-1n;f 2z=1K-1y;$(\'#5-s-b-w\').3f({S:1n,P:1y},4.2A,6(){2y()});7((1I==0)&&(2z==0)){7($.3e.3c){1H(3b)}j{1H(3a)}}$(\'#5-s-b-T-w\').l({S:1o});$(\'#5-k-V,#5-k-X\').l({P:1r+(4.1f*2)})};6 2y(){$(\'#5-Y\').1b();$(\'#5-b\').1V(6(){2u();2t()});2r()};6 2u(){$(\'#5-s-b-T-w\').38(\'35\');$(\'#5-b-A-1t\').1b();7(4.h[4.9][1]){$(\'#5-b-A-1t\').2p(4.h[4.9][1]).E()}7(4.h.B>1){$(\'#5-b-A-1g\').2p(4.2s+\' \'+(4.9+1)+\' \'+4.2o+\' \'+4.h.B).E()}}6 2t(){$(\'#5-k\').E();$(\'#5-k-V,#5-k-X\').l({\'K\':\'1C M(\'+4.19+\') L-O\'});7(4.9!=0){7(4.1d){$(\'#5-k-V\').l({\'K\':\'M(\'+4.1v+\') 1c 15% L-O\'}).11().1k(\'C\',6(){4.9=4.9-1;D();u F})}j{$(\'#5-k-V\').11().2m(6(){$(N).l({\'K\':\'M(\'+4.1v+\') 1c 15% L-O\'})},6(){$(N).l({\'K\':\'1C M(\'+4.19+\') L-O\'})}).E().1k(\'C\',6(){4.9=4.9-1;D();u F})}}7(4.9!=(4.h.B-1)){7(4.1d){$(\'#5-k-X\').l({\'K\':\'M(\'+4.1E+\') 2l 15% L-O\'}).11().1k(\'C\',6(){4.9=4.9+1;D();u F})}j{$(\'#5-k-X\').11().2m(6(){$(N).l({\'K\':\'M(\'+4.1E+\') 2l 15% L-O\'})},6(){$(N).l({\'K\':\'1C M(\'+4.19+\') L-O\'})}).E().1k(\'C\',6(){4.9=4.9+1;D();u F})}}2k()}6 2k(){$(d).30(6(12){2i(12)})}6 1G(){$(d).11()}6 2i(12){7(12==2h){U=2Z.2e;1x=27}j{U=12.2e;1x=12.2Y}14=2X.2W(U).2U();7((14==4.2j)||(14==\'x\')||(U==1x)){1a()}7((14==4.2f)||(U==37)){7(4.9!=0){4.9=4.9-1;D();1G()}}7((14==4.2d)||(U==39)){7(4.9!=(4.h.B-1)){4.9=4.9+1;D();1G()}}}6 2r(){7((4.h.B-1)>4.9){2c=v 1j();2c.W=4.h[4.9+1][0]}7(4.9>0){2b=v 1j();2b.W=4.h[4.9-1][0]}}6 1a(){$(\'#q-5\').2a();$(\'#q-13\').2T(6(){$(\'#q-13\').2a()});$(\'1U, 1S, 1R\').l({\'1Q\':\'2S\'})}6 1D(){f o,r;7(G.1h&&G.28){o=G.26+G.2R;r=G.1h+G.28}j 7(d.m.25>d.m.24){o=d.m.2P;r=d.m.25}j{o=d.m.2O;r=d.m.24}f y,H;7(Z.1h){7(d.t.1l){y=d.t.1l}j{y=Z.26}H=Z.1h}j 7(d.t&&d.t.1A){y=d.t.1l;H=d.t.1A}j 7(d.m){y=d.m.1l;H=d.m.1A}7(r<H){1z=H}j{1z=r}7(o<y){1B=o}j{1B=y}21=v 1m(1B,1z,y,H);u 21};6 1p(){f o,r;7(Z.1Z){r=Z.1Z;o=Z.2M}j 7(d.t&&d.t.1F){r=d.t.1F;o=d.t.1Y}j 7(d.m){r=d.m.1F;o=d.m.1Y}2q=v 1m(o,r);u 2q};6 1H(2C){f 2x=v 2w();1q=2h;3h{f 1q=v 2w()}2n(1q-2x<2C)};u N.11(\'C\').C(20)}})(23);',62,204,'||||settings|lightbox|function|if||activeImage||image||document|div|var|id|imageArray||else|nav|css|body||xScroll||jquery|yScroll|container|documentElement|return|new|box||windowWidth|arrPageSizes|details|length|click|_set_image_to_view|show|false|window|windowHeight|jQueryMatchedObj|href|background|no|url|this|repeat|height|objImagePreloader|arrPageScroll|width|data|keycode|btnPrev|src|btnNext|loading|self||unbind|objEvent|overlay|key||gif|getAttribute|images|imageBlank|_finish|hide|left|fixedNavigation|objClicked|containerBorderSize|currentNumber|innerHeight|span|Image|bind|clientWidth|Array|intWidth|intImageWidth|___getPageScroll|curDate|intImageHeight|secNav|caption|btn|imageBtnPrev|img|escapeKey|intHeight|pageHeight|clientHeight|pageWidth|transparent|___getPageSize|imageBtnNext|scrollTop|_disable_keyboard_navigation|___pause|intDiffW|push|intCurrentHeight|intCurrentWidth|imageLoading|_resize_container_image_box|_set_interface|onload|visibility|select|object|top|embed|fadeIn|imageBtnClose|_start|scrollLeft|pageYOffset|_initialize|arrayPageSize|btnClose|jQuery|offsetHeight|scrollHeight|innerWidth||scrollMaxY|link|remove|objPrev|objNext|keyToNext|keyCode|keyToPrev|overlayOpacity|null|_keyboard_action|keyToClose|_enable_keyboard_navigation|right|hover|while|txtOf|html|arrayPageScroll|_preload_neighbor_images|txtImage|_set_navigation|_show_image_data|title|Date|date|_show_image|intDiffH|containerResizeSpeed|overlayBgColor|ms|attr|hidden|blank|resize|extend|close|opacity|backgroundColor|next|pageXOffset|fn|offsetWidth|scrollWidth|prev|scrollMaxX|visible|fadeOut|toLowerCase|style|fromCharCode|String|DOM_VK_ESCAPE|event|keydown|append|of|ico|000|fast|for||slideDown||100|250|msie|400|browser|animate|lightBox|do'.split('|'),0,{}));
})(jQuery);

/*
 * --------------------------------------------------------------------
 * jQuery-Plugin "Rolla"
 * (c) Thomas Petrovic 2008
 *
 * http://www.FreaKzero.com
 * http://www.bonsai.co.at
 *
 * Demo & Doc: http://dev.freakzero.com/jquery/rolla
 * Copyright (c) 2008 Thomas Petrovic
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 *
 * Version: 1.2 // Last Edited: 25.03.2008 15:16:15
 * =====>>> MODIFIED BY MN <<=========
 * --------------------------------------------------------------------
 */
(function($) {
	$.rollaHover = function(settings){
		//overrideable defaults
		settings = jQuery.extend({
			 imgDir: '/_images/buttons',
			 onFade: 'normal',
			 outFade: 'fast',
			 mainOpacity: "1",
			 css: 'rolla'
		}, settings);
		
	// Recognize msie6
	   $.browser.msie6 = $.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent);
	
	// Define Short Vars
	   var cssClass = settings.css;
	   var imgClass = "img."+cssClass;
	
	// Set Image Path and new Array for Text to Image Regocnize
	   var arr_a = [];
	   var imagepath = settings.imgDir+"/";
	
	// A-TAGS ===============================
		$('a.'+cssClass+'[rel]').each(function(k){
			mn_attribs = $(this).attr('rel').replace(/ nofollow/,"");
			mn_attribs = mn_attribs.split("-");
			$(this).css("padding","0px");
			$(this).css("background-color","transparent");
			$(this).css("background-image","url("+imagepath+mn_attribs[0]+".gif)");
			$(this).css("display","block");
			$(this).css("width",mn_attribs[1]+"px");
			$(this).css("height",mn_attribs[2]+"px");
			// get Items from image folder from Linktext
			$(this).html("<img src=\""+imagepath+mn_attribs[0]+".gif\" name=\""+mn_attribs[0]+"\" alt=\""+$(this).attr('title')+"\" class=\""+cssClass+" rolla_replaced\">");
		});
	   
	// ImageSelect-TAGS by MN =====================
		$('input.'+cssClass+'[name][src]').each(function(k){
			mn_attribs = $(this).attr('name').split("-");
			$(this).hide().before("<a href='#' onclick='return submit_form(\""+mn_attribs[3]+"\");' class='"+cssClass+" rolla_replaced' style='padding:0px; background-image:url("+imagepath+mn_attribs[0]+".gif); display:block; width:"+mn_attribs[1]+"px; height:"+mn_attribs[2]+"px;'><img src='"+imagepath+mn_attribs[0]+".gif' name='"+mn_attribs[0]+"' title='"+$(this).attr('alt')+"' alt='"+$(this).attr('alt')+"' class='"+cssClass+"'></a>");
		});
	
	// =======================================
	// Jquery IE6 Hide Bug -> Flickering -> No Animation Block
	  if ($.browser.msie6) {
			$(imgClass).hover(
			  function(){
			  if($(this).attr("src").indexOf("-on#hover") == -1) {
				var newSrc = $(this).attr("src").replace(".gif","-on.gif#hover");
				$(this).attr("src",newSrc);
			  }
			   }, function(){
				if($(this).attr("src").indexOf("-on.gif#hover") != -1 ) {
				  var oldSrc = $(this).attr("src").replace("-on.gif#hover",".gif");
					$(this).attr("src",oldSrc);
				}
			});
	  } else {
	// All Other Browsers -> with Animation
		$(imgClass).bind("mouseenter",function(){
			var newSrc = $(this).attr("name")+"-on.gif";
			$(this).attr("src",imagepath+newSrc).css("opacity","0").animate({opacity: settings.mainOpacity},settings.onFade);
		}).bind("mouseleave",function(){
		   var oldSrc = $(this).attr("name")+".gif";
		   $(this).animate({opacity: 0},settings.outFade,function(){
		   $(this).attr("src",imagepath+oldSrc);
				// dequeue for flickering debug (when mouse too fast)
				$(imgClass).dequeue();
		   });
		});
	  }
	}
})(jQuery);

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(3(C){C.a={1L:{P:3(E,F,H){6 G=C.a[E].i;17(6 D 1M H){G.q[D]=G.q[D]||[];G.q[D].1N([F,H[D]])}},1l:3(D,F,E){6 H=D.q[F];5(!H){4}17(6 G=0;G<H.1m;G++){5(D.8[H[G][0]]){H[G][1].w(D.b,E)}}}},o:{},c:3(D){5(C.a.o[D]){4 C.a.o[D]}6 E=C(\'<1O 1K="a-1J">\').1g(D).c({1F:"1G",X:"-1o",1H:"-1o",1I:"1P"}).1E("1d");C.a.o[D]=!!((!(/1X|1Y/).h(E.c("1Z"))||(/^[1-9]/).h(E.c("1W"))||(/^[1-9]/).h(E.c("1V"))||!(/1u/).h(E.c("1R"))||!(/1S|1T\\(0, 0, 0, 0\\)/).h(E.c("1U"))));20{C("1d").19(0).1D(E.19(0))}1y(F){}4 C.a.o[D]},1z:3(D){C(D).p("l","14").c("1k","1u")},1A:3(D){C(D).p("l","1C").c("1k","")},1x:3(G,E){6 D=/X/.h(E||"X")?"1B":"1w",F=7;5(G[D]>0){4 f}G[D]=1;F=G[D]>0?f:7;G[D]=0;4 F}};6 B=C.Q.u;C.Q.u=3(){C("*",2).P(2).1Q("u");4 B.w(2,1t)};3 A(E,F,G){6 D=C[E][F].2q||[];D=(N D=="O"?D.x(/,?\\s+/):D);4(C.2l(G,D)!=-1)}C.n=3(E,D){6 F=E.x(".")[0];E=E.x(".")[1];C.Q[E]=3(J){6 H=(N J=="O"),I=2n.i.2m.1l(1t,1);5(H&&A(F,E,J)){6 G=C.M(2[0],E);4(G?G[J].w(G,I):2j)}4 2.2k(3(){6 K=C.M(2,E);5(H&&K&&C.2o(K[J])){K[J].w(K,I)}2p{5(!H){C.M(2,E,2r C[F][E](2,J))}}})};C[F][E]=3(I,H){6 G=2;2.e=E;2.1f=F+"-"+E;2.8=C.1c({},C.n.r,C[F][E].r,H);2.b=C(I).g("m."+E,3(L,J,K){4 G.m(J,K)}).g("z."+E,3(K,J){4 G.z(J)}).g("u",3(){4 G.1a()});2.1b()};C[F][E].i=C.1c({},C.n.i,D)};C.n.i={1b:3(){},1a:3(){2.b.2h(2.e)},z:3(D){4 2.8[D]},m:3(D,E){2.8[D]=E;5(D=="j"){2.b[E?"1g":"27"](2.1f+"-j")}},28:3(){2.m("j",7)},21:3(){2.m("j",f)}};C.n.r={j:7};C.a.13={2i:3(){6 D=2;2.b.g("25."+2.e,3(E){4 D.1s(E)});5(C.y.R){2.1j=2.b.p("l");2.b.p("l","14")}2.22=7},23:3(){2.b.10("."+2.e);(C.y.R&&2.b.p("l",2.1j))},1s:3(F){(2.d&&2.k(F));2.t=F;6 E=2,G=(F.24==1),D=(N 2.8.V=="O"?C(F.1p).29().P(F.1p).2a(2.8.V).1m:7);5(!G||D||!2.16(F)){4 f}2.v=!2.8.W;5(!2.v){2.2f=2g(3(){E.v=f},2.8.W)}5(2.Y(F)&&2.S(F)){2.d=(2.Z(F)!==7);5(!2.d){F.2e();4 f}}2.11=3(H){4 E.1n(H)};2.12=3(H){4 E.k(H)};C(1e).g("1r."+2.e,2.11).g("1h."+2.e,2.12);4 7},1n:3(D){5(C.y.R&&!D.2d){4 2.k(D)}5(2.d){2.U(D);4 7}5(2.Y(D)&&2.S(D)){2.d=(2.Z(2.t,D)!==7);(2.d?2.U(D):2.k(D))}4!2.d},k:3(D){C(1e).10("1r."+2.e,2.11).10("1h."+2.e,2.12);5(2.d){2.d=7;2.1i(D)}4 7},Y:3(D){4(T.2b(T.1q(2.t.15-D.15),T.1q(2.t.1v-D.1v))>=2.8.18)},S:3(D){4 2.v},Z:3(D){},U:3(D){},1i:3(D){},16:3(D){4 f}};C.a.13.r={V:2c,18:1,W:0}})(26);',62,152,'||this|function|return|if|var|false|options||ui|element|css|_mouseStarted|widgetName|true|bind|test|prototype|disabled|mouseUp|unselectable|setData|widget|cssCache|attr|plugins|defaults||_mouseDownEvent|remove|_mouseDelayMet|apply|split|browser|getData|||||||||||||data|typeof|string|add|fn|msie|mouseDelayMet|Math|mouseDrag|cancel|delay|top|mouseDistanceMet|mouseStart|unbind|_mouseMoveDelegate|_mouseUpDelegate|mouse|on|pageX|mouseCapture|for|distance|get|destroy|init|extend|body|document|widgetBaseClass|addClass|mouseup|mouseStop|_mouseUnselectable|MozUserSelect|call|length|mouseMove|5000px|target|abs|mousemove|mouseDown|arguments|none|pageY|scrollLeft|hasScroll|catch|disableSelection|enableSelection|scrollTop|off|removeChild|appendTo|position|absolute|left|display|gen|class|plugin|in|push|div|block|triggerHandler|backgroundImage|transparent|rgba|backgroundColor|width|height|auto|default|cursor|try|disable|started|mouseDestroy|which|mousedown|jQuery|removeClass|enable|parents|filter|max|null|button|preventDefault|_mouseDelayTimer|setTimeout|removeData|mouseInit|undefined|each|inArray|slice|Array|isFunction|else|getter|new'.split('|'),0,{}))


eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4(E){E.1z("e.5",{1A:4(){7 G=2.d;3(G.1y){7 J=2.c.X("a").o(G.1c);3(J.1i){3(J.o(G.n).1i){G.6=J}q{G.6=J.j().j().1B();J.u("1x")}}}G.8=2.c.X(G.n);G.6=C(G.8,G.6);3(E.Z.1k){2.c.X("a").l("1w","1")}3(!2.c.1s("e-5")){2.c.u("e-5");E("<1g 1j=\'e-5-1r\'/>").1u(G.8);E("<1g 1j=\'e-5-1D\'/>").1R(G.8);G.8.u("e-5-n").1G("1F","0")}7 I;3(G.14){I=2.c.j().b();G.8.O(4(){I-=E(2).1n()});7 H=0;G.8.g().O(4(){H=V.1p(H,E(2).1I()-E(2).b())}).b(I-H)}q{3(G.h){I=0;G.8.g().O(4(){I=V.1p(I,E(2).1n())}).b(I)}}G.8.12(G.6||"").g().13();G.6.j().Q().u(G.w);3(G.x){2.c.1K((G.x)+".5",F)}},W:4(G){F.11(2.c[0],{z:C(2.d.8,G)[0]})},1P:4(){2.d.8.g().l("1J","");3(2.d.14||2.d.h){2.d.8.g().l("b","")}E.1H(2.c[0],"5");2.c.1E("e-5").1L(".5")}});4 B(H,G){9 4(){9 H.1M(G,1S)}}4 D(I){3(!E.k(2,"5")){9}7 G=E.k(2,"5");7 H=G.d;H.m=I?0:--H.m;3(H.m){9}3(H.1Q){H.f.1N(H.i).l({b:"",1l:""})}E(2).1O("18",[E.x.1T({1C:"18",z:G.c[0]}),H.k],H.1v)}4 A(G,K,L,J,M){7 I=E.k(2,"5").d;I.f=G;I.i=K;I.k=L;7 H=B(D,2);I.m=K.y()===0?G.y():K.y();3(I.R){3(!I.t&&J){E.e.5.10[I.R]({f:T([]),i:K,v:H,P:M,h:I.h})}q{E.e.5.10[I.R]({f:G,i:K,v:H,P:M,h:I.h})}}q{3(!I.t&&J){G.1t()}q{K.13();G.U()}H(Y)}}4 F(L){7 J=E.k(2,"5").d;3(J.2c){9 r}3(!L.z&&!J.t){J.6.j().Q().17(J.w);7 I=J.6.g(),M={d:J,16:T([]),19:J.6,1a:T([]),15:I},G=(J.6=E([]));A.11(2,G,I,M);9 r}7 K=E(L.z);K=E(K.2a(J.n)[0]||K);7 H=K[0]==J.6[0];3(J.m||(J.t&&H)){9 r}3(!K.28(J.n)){9}J.6.j().Q().17(J.w);3(!H){K.j().Q().u(J.w)}7 G=K.g(),I=J.6.g(),M={d:J,16:K,19:J.6,1a:G,15:I},N=J.8.1b(J.6[0])>J.8.1b(K[0]);J.6=H?E([]):K;A.11(2,G,I,M,H,N);9 r}4 C(H,G){9 G!=1U?26 G=="27"?H.o(":1d("+G+")"):H.12(H.12(G)):G===r?E([]):H.o(":1d(0)")}E.1q(E.e.5,{1Z:{w:"1Y",t:Y,R:"S",x:"1X",n:"a",h:Y,m:0,1c:4(){9 2.1o.1e()==1V.1o.1e()}},10:{S:4(G,I){G=E.1q({p:"1f",s:1W},G,I);3(!G.i.y()){G.f.1h({b:"U"},G);9}7 H=G.i.b(),J=G.f.b(),K=J/H;G.f.l({b:0,1l:"1m"}).U();G.i.o(":1m").O(G.v).25().o(":24").1h({b:"13"},{23:4(L){7 M=(H-L)*K;3(E.Z.1k||E.Z.21){M=V.20(M)}G.f.b(M)},s:G.s,p:G.p,v:4(){3(!G.h){G.f.l("b","2g")}G.v()}})},2h:4(G){2.S(G,{p:G.P?"2e":"1f",s:G.P?2b:2i})},29:4(G){2.S(G,{p:"2f",s:22})}}});E.2d.W=4(G){9 2.5("W",G)}})(T);',62,143,'||this|if|function|accordion|active|var|headers|return||height|element|options|ui|toShow|next|autoHeight|toHide|parent|data|css|running|header|filter|easing|else|false|duration|alwaysOpen|addClass|complete|selectedClass|event|size|target|||||||||||||||each|down|andSelf|animated|slide|jQuery|show|Math|activate|find|true|browser|animations|call|not|hide|fillSpace|oldContent|newHeader|toggleClass|accordionchange|oldHeader|newContent|index|navigationFilter|eq|toLowerCase|swing|span|animate|length|class|msie|overflow|hidden|outerHeight|href|max|extend|left|hasClass|toggle|insertBefore|change|zoom|current|navigation|widget|init|prev|type|right|removeClass|tabindex|attr|removeData|innerHeight|display|bind|unbind|apply|add|triggerHandler|destroy|clearStyle|appendTo|arguments|fix|undefined|location|300|click|selected|defaults|ceil|opera|700|step|visible|end|typeof|number|is|easeslide|parents|1000|disabled|fn|bounceout|easeinout|auto|bounceslide|200'.split('|'),0,{}))


DateInput=(function(A){function B(C,D){if(typeof (D)!="object"){D={}}A.extend(this,B.DEFAULT_OPTS,D);this.input=A(C);this.bindMethodsToObj("show","hide","hideIfClickOutside","selectDate","prevMonth","nextMonth");this.build();this.selectDate();this.hide()}B.DEFAULT_OPTS={month_names:["January","February","March","April","May","June","July","August","September","October","November","December"],short_month_names:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],short_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],start_of_week:1};B.prototype={build:function(){this.monthNameSpan=A('<span class="month_name"></span>');var C=A('<p class="month_nav"></p>').append(A('<a href="#" class="prev">&laquo;</a>').click(this.prevMonth)," ",this.monthNameSpan," ",A('<a href="#" class="next">&raquo;</a>').click(this.nextMonth));var D="<table><thead><tr>";A(this.adjustDays(this.short_day_names)).each(function(){D+="<th>"+this+"</th>"});D+="</tr></thead><tbody></tbody></table>";this.dateSelector=this.rootLayers=A('<div class="date_selector"></div>').append(C,D).appendTo(document.body);if(A.browser.msie&&A.browser.version<7){this.ieframe=A('<iframe class="date_selector_ieframe" frameborder="0" src="#"></iframe>').insertBefore(this.dateSelector);this.rootLayers=this.rootLayers.add(this.ieframe)}this.tbody=A("tbody",this.dateSelector);this.input.change(this.bindToObj(function(){this.selectDate()}))},selectMonth:function(E){this.currentMonth=new Date(E.getFullYear(),E.getMonth(),1);var D=this.rangeStart(E),I=this.rangeEnd(E);var H=this.daysBetween(D,I);var G="";for(var F=0;F<=H;F++){var C=new Date(D.getFullYear(),D.getMonth(),D.getDate()+F);if(this.isFirstDayOfWeek(C)){G+="<tr>"}if(C.getMonth()==E.getMonth()){G+='<td date="'+this.dateToString(C)+'"><a href="#">'+C.getDate()+"</a></td>"}else{G+='<td class="unselected_month" date="'+this.dateToString(C)+'">'+C.getDate()+"</td>"}if(this.isLastDayOfWeek(C)){G+="</tr>"}}this.monthNameSpan.empty().append(this.monthName(E)+" "+E.getFullYear());this.tbody.empty().append(G);A("a",this.tbody).click(this.bindToObj(function(J){this.selectDate(this.stringToDate(A(J.target).parent().attr("date")));this.hide();return false}));A("td[date="+this.dateToString(new Date())+"]",this.tbody).addClass("today")},selectDate:function(C){if(typeof (C)=="undefined"){C=this.stringToDate(this.input.val())}if(C){this.selectedDate=C;this.selectMonth(C);var D=this.dateToString(C);A("td[date="+D+"]",this.tbody).addClass("selected");if(this.input.val()!=D){this.input.val(D).change()}}else{this.selectMonth(new Date())}},show:function(){this.rootLayers.css("display","block");this.setPosition();this.input.unbind("focus",this.show);A([window,document.body]).click(this.hideIfClickOutside)},hide:function(){this.rootLayers.css("display","none");A([window,document.body]).unbind("click",this.hideIfClickOutside);this.input.focus(this.show)},hideIfClickOutside:function(C){if(C.target!=this.input[0]&&!this.insideSelector(C)){this.hide()}},stringToDate:function(C){var D;if(D=C.match(/^(\d{1,2}) ([^\s]+) (\d{4,4})$/)){return new Date(D[3],this.shortMonthNum(D[2]),D[1])}else{return null}},dateToString:function(C){return C.getDate()+" "+this.short_month_names[C.getMonth()]+" "+C.getFullYear()},setPosition:function(){var C=this.input.offset();this.rootLayers.css({top:C.top+this.input.outerHeight(),left:C.left});if(this.ieframe){this.ieframe.css({width:this.dateSelector.outerWidth(),height:this.dateSelector.outerHeight()})}},moveMonthBy:function(C){this.selectMonth(new Date(this.currentMonth.setMonth(this.currentMonth.getMonth()+C)))},prevMonth:function(){this.moveMonthBy(-1);return false},nextMonth:function(){this.moveMonthBy(1);return false},monthName:function(C){return this.month_names[C.getMonth()]},insideSelector:function(C){var D=this.dateSelector.offset();D.right=D.left+this.dateSelector.outerWidth();D.bottom=D.top+this.dateSelector.outerHeight();return C.pageY<D.bottom&&C.pageY>D.top&&C.pageX<D.right&&C.pageX>D.left},bindToObj:function(D){var C=this;return function(){return D.apply(C,arguments)}},bindMethodsToObj:function(){for(var C=0;C<arguments.length;C++){this[arguments[C]]=this.bindToObj(this[arguments[C]])}},indexFor:function(E,D){for(var C=0;C<E.length;C++){if(D==E[C]){return C}}},monthNum:function(C){return this.indexFor(this.month_names,C)},shortMonthNum:function(C){return this.indexFor(this.short_month_names,C)},shortDayNum:function(C){return this.indexFor(this.short_day_names,C)},daysBetween:function(D,C){D=Date.UTC(D.getFullYear(),D.getMonth(),D.getDate());C=Date.UTC(C.getFullYear(),C.getMonth(),C.getDate());return(C-D)/86400000},changeDayTo:function(F,C,E){var D=E*(Math.abs(C.getDay()-F-(E*7))%7);return new Date(C.getFullYear(),C.getMonth(),C.getDate()+D)},rangeStart:function(C){return this.changeDayTo(this.start_of_week,new Date(C.getFullYear(),C.getMonth()),-1)},rangeEnd:function(C){return this.changeDayTo((this.start_of_week-1)%7,new Date(C.getFullYear(),C.getMonth()+1,0),1)},isFirstDayOfWeek:function(C){return C.getDay()==this.start_of_week},isLastDayOfWeek:function(C){return C.getDay()==(this.start_of_week-1)%7},adjustDays:function(E){var D=[];for(var C=0;C<E.length;C++){D[C]=E[(C+this.start_of_week)%7]}return D}};A.fn.date_input=function(C){return this.each(function(){new B(this,C)})};A.date_input={initialize:function(C){A("input.date_input").date_input(C)}};return B})(jQuery)

/* ======= jQuery INIT ========== */
jQuery.noConflict();

if ( window.location.hostname.indexOf('www.jameda')>=0 || window.location.hostname.indexOf('dev.jameda')>=0 ) { var site_layout = "jameda"; }
if ( window.location.hostname.indexOf('arztsuche.focus.de')>=0 ) { var site_layout = "focus"; }
if ( window.location.hostname.indexOf('bild.jameda')>=0 || window.location.hostname.indexOf('arztsuche.bild.de')>=0 ) { var site_layout = "bild"; }

jQuery(document).ready(function($){

	// nur auf www.jameda.de oder dev.jameda.de laden!
	if ( site_layout == "jameda" ) {
		
		// Themen-Übersicht MouseEvents
		function themen_einblenden() { jQuery('#themen_nav_mousearea .schatten').stop(true,true).slideDown(500); jQuery('#all_link_container').css({opacity:1}); }
		function themen_ausblenden() { jQuery('#themen_nav_mousearea .schatten').slideUp(500); jQuery('#all_link_container').css({opacity:0.8}); }
		jQuery('#all_link_container').bind('mouseenter', themen_einblenden);
		jQuery('#themen_nav_mousearea').bind('mouseleave', themen_ausblenden);
		
		// Focus auf Login, falls Login
		if ( document.register_form && document.register_form.email ) {
			document.register_form.email.focus();
		}
		// Focus auf Login, falls Login
		else if ( document.login_form && document.login_form.email ) {
			document.login_form.email.focus();
		}
		
		// --- Link und Image-Button Hover Replacement
		$.rollaHover();
		
		// --- Teaser Boxen mit Mouse-Aktionen versehen
		$('.teaser_box_link_div').hover(function(){$(this).addClass('teaser_box_link_div_hover');},	function(){$(this).removeClass('teaser_box_link_div_hover');});
		$('.teaser_box_link_div').click(function(){$(this).find('a.master').click()});
		
		// --- Flash sIFR
		function render_flashText(selector) {
			$(selector).flash(
				{ src: '/_scripts/jquery/flash/jameda_font.swf', wmode: 'transparent' },
				{ version: 8 },
				function(htmlOptions) {
					var params = ($(this).attr('rel')) ? $(this).attr('rel').split(':') : false;
					if ( params[2]=="center" ) {
						htmlOptions.flashvars.txt = "<p align=\"center\">" + this.innerHTML+"</p>";
					} else {
						htmlOptions.flashvars.txt = this.innerHTML;
					}
					if ( $(this).hasClass('red') ) {
						htmlOptions.flashvars.css = "* { color: #D4160D; font-weight:bold; } a { color: #D4160D; text-decoration: underline; }";
					}
					this.innerHTML = '<div class="alt_flash_text">'+this.innerHTML+'</div>';
					var $alt = $(this.firstChild);
					htmlOptions.height = ( params!=false && params[0]!="-" ) ? params[0] : $alt.height();
					htmlOptions.width = ( params!=false && params[1]!="-" ) ? params[1] : $alt.width();
					$(this)
						.addClass('flash-replaced')
						.prepend($.fn.flash.transform(htmlOptions));	
				}
			);
		}
		render_flashText('.make_flash');

		// --- Datepicker
		$.extend(DateInput.DEFAULT_OPTS, {
		  month_names: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
		  short_month_names: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
		  short_day_names: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
		
		  stringToDate: function(string) {
			var matches;
			if (matches = string.match(/^(\d{4,4})-(\d{2,2})-(\d{2,2})$/)) {
			  return new Date(matches[1], matches[2] - 1, matches[3]);
			} else {
			  return null;
			};
		  },
		
		  dateToString: function(date) {
			var month = (date.getMonth() + 1).toString();
			var dom = date.getDate().toString();
			if (month.length == 1) month = "0" + month;
			if (dom.length == 1) dom = "0" + dom;
			return  date.getFullYear() + "-" + month + "-" + dom;
		  }
		});
		$(".date_input").date_input();
	}

	/*// --- AutoCompleter
	$("#such_namen").autocomplete("http://www.jameda.eu/_scripts/jquery/autocomplete/result_namen.php", {
		minChars: 4,
		max: 25,
		delay: 600,
		//matchSubset: 0,
		width: 230,
		selectFirst: false,
		extraParams: {
			gruppe: function() { return $("#suchbox_gruppen").val(); } // Ergebnis hängt von Gruppen Dropdown ab
		},
		highlight: function(value, term) {
			term = term.replace(/,/g, "");
			term = term.replace(/ /g, ",&nbsp;");
			return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");
		},
		formatResult: function(data) {
			return data[1];
		}
	});
	$("#such_namen").result(function(event, data, formatted) {
		if (data && data[0]!="..." ) {
			if ( data[2]!="" ) { $("#autocomplete").val(data[2]); }
			else { $("#autocomplete").val("yes"); }
			$("#such_adress").val("");
			$('#such_submit').click();
		}
	});
	$("#suchbox_gruppen").change(function() {$("#such_namen").flushCache();}); // Cache leeren, wenn Gruppen Dropdown verändert wird*/

	// --- Enter-Taste auch im IE bei Formularen zum abschicken aktivieren - obwohl kein submit-Button sichtbar ist
	// mino: aber vorher checken, ob die Pfeil-Runter-Taste gedrückt wurde, denn dann macht der User eine Auswahl und dann soll bei Enter noch nicht submitted werden
	arrow_down_pressed = new Array();
	$('input').keydown(function(e){
		if (e.keyCode == 40) { // Nach-unten Key
			arrow_down_pressed[$(this)] = true;
		} else if (e.keyCode == 13 ) { // Enter Key
			if ( arrow_down_pressed[$(this)] ) {
				arrow_down_pressed[$(this)] = false;
			} else {
				$(this).parents("form").find("input:image").click();
				return false;
			}
		}
	}).blur(function(e){
		arrow_down_pressed[$(this)] = false;
	});

	// --- Corner Plugin
	$('.corner_tl').corner("notch tl 1px");
	$('.corner_bl').corner("notch bl 1px");
	$('.corner_tr').corner("notch tr 1px");
	$('.corner_br').corner("notch br 1px");
	$('.corner_all').corner("notch 1px");
	
	// --- Sort-Leiste Hover
	$('#sort_leiste a.up').css({backgroundPosition: 'right -288px'});
	$('#sort_leiste a').hover(
		function(){
			if ( $(this).hasClass('aktiv') && $(this).hasClass('down') ) { $(this).css({backgroundPosition: 'right -288px'}); }
			else if ( $(this).hasClass('aktiv') && $(this).hasClass('up') ) { $(this).css({backgroundPosition: 'right -307px'}); }
			else { $(this).css({backgroundPosition: 'right -269px'}); } },
		function(){
			if ( $(this).hasClass('aktiv') && $(this).hasClass('down') ) { $(this).css({backgroundPosition: 'right -307px'}); }
			else if ( $(this).hasClass('aktiv') && $(this).hasClass('up') ) { $(this).css({backgroundPosition: 'right -288px'}); }
			else { $(this).css({backgroundPosition: 'right -250px'}); } }
	);
	
	// --- Form Input Example
	$('.form_example').example(function() {
		return $(this).attr('title');
	});
	
	// --- old Tooltip
	if ( typeof htmltooltip != "undefined" ) {
		htmltooltip.render();
	}
	
	// --- mino Tooltip
	if ( $.isFunction($.fn.minoTooltip) ) {
		$('.minoTooltip').minoTooltip();
	}
	
	// --- Waiter entfernen
	$('.wait_cursor').removeClass('wait_cursor');
	$('#suchbox2_select1_content').css('background-image','none');
	
	// --- jqModal
	$('#ajax_window').jqm({
		ajax: '@href',
		ajaxText: '<div style="padding:30px; background-color:#fff;"><strong>Bitte warten...</strong></div>',
		trigger: 'a.ajax_window_link',
		cache: false,
		onLoad: function(hash){
			if ( site_layout=="jameda" ) {
				render_flashText('#ajax_window .make_flash');
				temp_omni_pfad = ($(hash.t).attr('name')) ? $(hash.t).attr('name') : $(hash.t).attr('href').substring(21,$(hash.t).attr('href').length-4);
				if ( $(hash.t).attr('name')!="no_omni_count" ) { setomni('popbox/'+temp_omni_pfad,'partner',omni_agof);	}
			}},
		onShow: function(hash){
			if (document.all) { document.body.scroll = "no"; }
			else { $('body').css('overflow','hidden'); }
			$('#superbanner').hide();
			$('#skyscraper').hide();
			$('#eyeDiv').hide();
			if ( $(hash.t).hasClass('breit') ) { // breite Lightbox (statt 600px)
				hash.w.addClass('jqmWindow_breit');
			}
			if ( $(hash.t).attr('rel').indexOf('vcenter')!=-1 ) { // fixe Höhe übermittelt, deshalb vCenter machen
				$('#ajax_window div:first').height(Number($(hash.t).attr('rel').substring(8)));
				hash.w.jqmShow().vCenter().fadeIn(1000);
			} else {
				hash.w.jqmShow().fadeIn(1000);
			}
		},
		onHide: function(hash){
			if (document.all) { document.body.scroll = ""; }
			else { $('body').css('overflow',''); }
			$('#superbanner').show();
			$('#skyscraper').show();
			$('#eyeDiv').show();
			hash.w.find('.flash-replaced').remove();
			hash.w.fadeOut(600, function(){
				if ( $(hash.t).hasClass('breit') ) { // breite Lightbox (statt 600px)
					hash.w.removeClass('jqmWindow_breit');
				}
				hash.o.remove();
			});
		}
	});
	$('#ajax_suchbox_window').jqm({
		ajax: '/_scripts/output_suchbox2.php',
		ajaxText: '<div style="height:565px; text-align:center; color:#666; background-color:#FFFFFF;"><img src="/_images/loading2.gif" width="32" height="32" style="margin-top:240px;" /><br /><br />laden...</div>',
		cache: false,
		onLoad: function(hash){
			if ( site_layout=="jameda" ) {
				render_flashText('#ajax_suchbox_window .make_flash');
			}},
		onShow: function(hash){
			$('#superbanner').hide();
			$('#skyscraper').hide();
			$('#eyeDiv').hide();
			hash.w.jqmShow().vCenter().slideDown(600);
		},
		// nicht faden im IE6, da das irgendwie nicht funzt (jqModal-Window bleibt stehen)
		onHide: function(hash){
			$('#superbanner').show();
			$('#skyscraper').show();
			$('#eyeDiv').show();
			if ( site_layout=="jameda" || site_layout=="focus" ) {
				setomni('suchbox2'+suchbox2_omnipfad,'partner',omni_agof);
			}
			(!window.XMLHttpRequest) ? hash.w.fadeOut(500,function(){hash.o.remove();}) : hash.w.slideUp(500,function(){hash.o.remove();});
		}
	});
		// Alert Confirm Replace
		$('#jqmalert').jqm({modal: true, trigger: false});
		$('#jqmconfirm').jqm({modal: true, trigger: false});
	
	// --- Lightbox
	$('a[@rel*=lightbox]').lightBox({
		overlayBgColor: '#069BD2',
		overlayOpacity: 0.6,
		imageLoading: '/_scripts/jquery/lightbox/lightbox-ico-loading.gif',
		imageBtnClose: '/_scripts/jquery/lightbox/lightbox-btn-close.gif',
		imageBtnPrev: '/_scripts/jquery/lightbox/lightbox-btn-prev.gif',
		imageBtnNext: '/_scripts/jquery/lightbox/lightbox-btn-next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Bild',
		txtOf: 'von'
	});
	$('a[@rel*=lightbox_black]').lightBox({
		overlayBgColor: '#000000',
		overlayOpacity: 0.6,
		imageLoading: '/_scripts/jquery/lightbox/lightbox-ico-loading.gif',
		imageBtnClose: '/_scripts/jquery/lightbox/lightbox-btn-close.gif',
		imageBtnPrev: '/_scripts/jquery/lightbox/lightbox-btn-prev.gif',
		imageBtnNext: '/_scripts/jquery/lightbox/lightbox-btn-next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Bild',
		txtOf: 'von'
	});

	// --- Accordion für FOCUS-Leistungen
	$('#focus_leistungen_container').accordion({
		header: "a.accord_head",
		autoHeight: false,
		alwaysOpen: false,
		active: ".init_open",
		selectedClass: "aktiv"
	});
	$("#focus_leistungen_container").bind("accordionchange", function(event, ui) {
		if ( site_layout=="jameda" || site_layout=="focus" ) {
			setomni('change_focus_leistungen','partner',omni_agof);
		}
	});
	$('#suchen_sitemap').accordion({
		header: "h2.sitemap_accord_head",
		autoHeight: false,
		alwaysOpen: false,
		active: ".init_open",
		selectedClass: "aktiv"
	});
	$("#suchen_sitemap").bind("accordionchange", function(event, ui) {
		if ( site_layout=="jameda" || site_layout=="focus" ) {
			setomni('suchen-bewerten_sitemap','partner',omni_agof);
		}
	});
});
	// Alert Replace für jqModal
	function alert(msg,goto_url) {
		jQuery('#jqmalert').jqmShow().vCenter().find('div.jqmAlertContent').html(msg);
	}
	// Confirm Replace für jqModal
	function confirm(msg,callback) {
		jQuery('#jqmconfirm').jqmShow().vCenter().find('div.jqmAlertContent').html(msg).end().find('a.jqmbutton').click(function(){
			if ( jQuery(this).hasClass('jqm_ok') ) {
				if (typeof callback == 'string') { window.location.href = callback; }
				else { callback(); }
			}
			jQuery('#jqmconfirm').jqmHide();
			return false;
		});
	}

/* ======= Focus Ads ========== */
//var adsc_keyword="adtest2008"; // only for testing to show deno ads
var adsc_keyword="";         // for live operating
var adsc_layout = "frontpage";     // Typ der Seite, Ressort, Rubrik, Artikel, Galerie...
var adsc_bannerwidth = "728";       // Breite Superbanner
var adsc_bannerheight = "90";       // Hohe Superbanner
var adsc_cad1width = "300";       // Breite Content Ad
var adsc_cad1height = "250";      // Hoehe Content Ad
var adsc_skyscraperwidth = "1";  // Breite Skyscraper
var adsc_skyscraperheight = "2"; // Hoehe Skyscraper
var adsc_skyscraperposx = "830"; // X Position SkyScraper, Breite Content mit Rand

var google_color_border = "cecece";
var google_color_bg = "FFFFFF";
var google_color_link = "069BD2";
var google_color_url = "666666";
var google_color_text = "000000";
var google_ui_features = "rc:0";

function set_background_trans() { // von mino geschrieben, damit beim Wallpaper die Seite eingefärbt werden kann
	document.body.style.backgroundImage = "none";
	document.getElementById('supersuperdiv').style.backgroundImage = "none";
	document.getElementById('superdiv').style.backgroundImage = "none";
}

/* ======= Suchbox-Funktionen ========== */
function hover_cursor(action) {
	if (action=="over") {
		document.body.style.cursor = 'pointer';
	} else {
		document.body.style.cursor = 'default';
	}
}
function checkbox_click(which, box_id, from_suchbox2, force) {
	box = (from_suchbox2) ? document.getElementById('suchbox2_'+box_id) : document.getElementById(box_id);
	if ( typeof force!='undefined' && force!='' ) {
		do_check = (force=="checked") ? true : false;
		box.checked = do_check;
		if (from_suchbox2) { // auch in Suchbox1 übernehmen
			document.getElementById(box_id).checked = do_check;
			(do_check) ? jQuery('#filter_checkbox_'+box_id).show() : jQuery('#filter_checkbox_'+box_id).hide();
		}
	} else if ( !box.readOnly ) {
		if (!which) {
			if ( box.checked ) {
				box.checked = false;
				if (from_suchbox2) { // auch in Suchbox1 übernehmen
					document.getElementById(box_id).checked = false;
					jQuery('#filter_checkbox_'+box_id).hide();
				}
			} else {
				box.checked = true;
				if (from_suchbox2) {
					jQuery('#filter_checkbox_'+box_id).show();
					document.getElementById(box_id).checked = true;
				}
			}
		} else {
			if (from_suchbox2) {
				if ( !box.checked ) {
					jQuery('#filter_checkbox_'+box_id).hide();
					document.getElementById(box_id).checked = false;
				} else {
					jQuery('#filter_checkbox_'+box_id).show();
					document.getElementById(box_id).checked = true;
				}
			}
			return true;
		}
	}
	return false;
}
function select_dropdown_option(dropdown, which) {
	for ( i=0; i<document.getElementById(dropdown).options.length; i++ ) {
		if ( document.getElementById(dropdown).options[i].value == which ) {
			document.getElementById(dropdown).options[i].selected = true;
		}
	}
}

/* ======= Suchbox v1 ======== */
var google_maps_is_loaded = false;
var map;
var bounds;
var geocoder = false;
function prefetch_coords() {
	document.getElementById('suchbox').style.display = 'none';
	document.getElementById('suchbox_loading').style.display = 'block';
	if ( jQuery('#such_adress').attr('value')!="" && jQuery('#such_adress').attr('value')!="Strasse, PLZ, Ort" ) {
		if (jQuery("#suchbox form[name='suchform']").attr('target')=='_blank') { jQuery("#suchbox form[name='suchform']").attr('target','_top'); } // falls Google-Callback benutzt wird, darf das FORM-Target nicht _blank sein, weil sonst der IE-Popupblocker zuschlägt
		if ( !google_maps_is_loaded ) {
			if ( typeof google != 'undefined' ) {
				google.load("maps", "2",{"callback":load_geocoder, "other_params":"sensor=false"});
			} else {
				submit_search(null, null);
			}
		} else {
			load_geocoder();
		}
	} else {
		submit_search(null, null);
	}
	return false;
}
function load_geocoder() {
	google_maps_is_loaded = true;
	if ( geocoder === false ) {
		geocoder = new google.maps.ClientGeocoder();
	}
	geocoder.setBaseCountryCode('de');
	geocoder.getLocations(document.suchform.address.value+", Germany", fetched_coords);
}
function set_gm_geocode_vars(obj) {
	if ( obj.AddressDetails.Country && obj.AddressDetails.Country.AdministrativeArea && obj.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea ) {
		var temp_response = obj.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea;

		if ( temp_response.Locality ) {
			if ( temp_response.Locality.Thoroughfare ) {
				gmThoroughfareName = temp_response.Locality.Thoroughfare.ThoroughfareName;
			} else if ( temp_response.Locality.DependentLocality && temp_response.Locality.DependentLocality.Thoroughfare ) {
				gmThoroughfareName = temp_response.Locality.DependentLocality.Thoroughfare.ThoroughfareName;
			} else {
				gmThoroughfareName = "";
			}
			if ( temp_response.Locality.PostalCode ) {
				gmPostalCodeNumber = temp_response.Locality.PostalCode.PostalCodeNumber;
			} else if ( temp_response.Locality.DependentLocality && temp_response.Locality.DependentLocality.PostalCode ) {
				gmPostalCodeNumber = temp_response.Locality.DependentLocality.PostalCode.PostalCodeNumber;
			} else {
				gmPostalCodeNumber = "";
			}
			if ( temp_response.Locality.DependentLocality && temp_response.Locality.DependentLocality.DependentLocalityName ) {
				gmDependentLocalityName = temp_response.Locality.DependentLocality.DependentLocalityName;
			} else {
				gmDependentLocalityName = "";
			}
			gmLocalityName = temp_response.Locality.LocalityName;
		} else {
			gmThoroughfareName = "";
			gmPostalCodeNumber = "";
			gmDependentLocalityName = "";
			gmLocalityName = "";
		}
		gmSubAdministrativeAreaName = temp_response.SubAdministrativeAreaName;
		gmAdministrativeAreaName = obj.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName;
	} else if ( obj.AddressDetails.Country && obj.AddressDetails.Country.AdministrativeArea ) {
		gmThoroughfareName = "";
		gmPostalCodeNumber = "";
		gmDependentLocalityName = "";
		gmLocalityName = "";
		gmSubAdministrativeAreaName = "";
		gmAdministrativeAreaName = obj.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName;
	} else {
		gmThoroughfareName = "";
		gmPostalCodeNumber = "";
		gmDependentLocalityName = "";
		gmLocalityName = "";
		gmSubAdministrativeAreaName = "";
		gmAdministrativeAreaName = "";
	}
}
function fetched_coords(response) {
	// Keine Antwort
	if ( !response || response.Status.code!=200 ) {
		alert('Der Ort bzw. die Adresse konnte nicht gefunden werden.<br>Bitte ändern Sie Ihre Eingabe. ('+response.Status.code+')');
		document.getElementById('suchbox').style.display = 'block';
		document.getElementById('suchbox_loading').style.display = 'none';
		return false;
	} else {
		set_gm_geocode_vars(response.Placemark[0])
		// noch mal nach Ort suchen, wenn nur nach PLZ gesucht wurde 
		if ( document.suchform.address.value.length==5 && Number(document.suchform.address.value)==document.suchform.address.value && gmLocalityName!="" && gmLocalityName!=gmSubAdministrativeAreaName ) {
			document.suchform.address.value = gmLocalityName+", "+gmSubAdministrativeAreaName;
			geocoder.getLocations(gmLocalityName+", "+gmSubAdministrativeAreaName+", Germany", fetched_coords);
			return false;
		} else {
			// Mehrere Ergebnisse gefunden
			if ( response.Placemark.length > 1 ) {
				jQuery("#geocode_response").html("<div style=\"margin-bottom:6px;\">Es wurden mehrere M&ouml;glichkeiten gefunden.<br><strong>Bitte w&auml;hlen Sie:</strong></div>");
				reale_treffer = 0;
				for (i=0; i<response.Placemark.length; i++) {
					treffer = response.Placemark[i];
					if ( treffer.AddressDetails.Country && treffer.AddressDetails.Country.CountryNameCode=="DE" ) {
						reale_treffer++;
						set_gm_geocode_vars(treffer);
						linktext = (gmPostalCodeNumber!="") ? gmPostalCodeNumber+" "+gmLocalityName : gmLocalityName;
						linktext = (gmThoroughfareName!="") ? gmThoroughfareName+", "+linktext : linktext;
						linktext = (gmSubAdministrativeAreaName!=gmLocalityName && gmThoroughfareName=="" && gmPostalCodeNumber=="") ? linktext+", "+gmSubAdministrativeAreaName : linktext;
						search_params = (gmSubAdministrativeAreaName==gmLocalityName) ? "'"+gmThoroughfareName+"','"+gmPostalCodeNumber+"','"+gmLocalityName+"','','"+gmAdministrativeAreaName+"'" : "'"+gmThoroughfareName+"','"+gmPostalCodeNumber+"','"+gmLocalityName+"','"+gmSubAdministrativeAreaName+"','"+gmAdministrativeAreaName+"'";
						jQuery("#geocode_response").append("<a class=\"google_multiple\" href=\"javascript:submit_search("+treffer.Point.coordinates[0]+","+treffer.Point.coordinates[1]+","+search_params+");\">"+linktext+"</a>");
					}
				}
				if ( reale_treffer > 1 ) {
					jQuery("#geocode_response").append("<div style=\"margin-top:6px;\" class=\"blue\"><strong>&laquo;&nbsp;<a href=\"#\" onclick=\"document.getElementById('suchbox').style.display='block'; document.getElementById('geocode_response').style.display='none';\">zur&uuml;ck zur Suche</a></strong></div>");
					document.getElementById('suchbox_loading').style.display = 'none';
					document.getElementById('geocode_response').style.display = 'block';
				} else {
					submit_search(response.Placemark[0].Point.coordinates[0], response.Placemark[0].Point.coordinates[1], gmThoroughfareName, gmPostalCodeNumber, gmLocalityName, gmSubAdministrativeAreaName, gmAdministrativeAreaName);
				}
			// Ein Ergebis gefunden
			} else {
				submit_search(response.Placemark[0].Point.coordinates[0], response.Placemark[0].Point.coordinates[1], gmThoroughfareName, gmPostalCodeNumber, gmLocalityName, gmSubAdministrativeAreaName, gmAdministrativeAreaName);
			}
		}
	}
}
function submit_search(coord_lat, coord_lng, gmThoroughfareName, gmPostalCodeNumber, gmLocalityName, gmSubAdministrativeAreaName, gmAdministrativeAreaName) {
	if (coord_lat && coord_lng) {
		document.suchform.geocode_serialized.value = coord_lat+"_"+coord_lng+"_"+gmThoroughfareName+"_"+gmPostalCodeNumber+"_"+gmLocalityName+"_"+gmSubAdministrativeAreaName+"_"+gmAdministrativeAreaName;
		if ( gmThoroughfareName!="" ) {
			document.suchform.address.value = gmThoroughfareName+", "+gmPostalCodeNumber+" "+gmLocalityName;
		} else if ( gmPostalCodeNumber!="" ) {
			document.suchform.address.value = gmPostalCodeNumber+" "+gmLocalityName;
		} else if ( gmDependentLocalityName!="" ) {
			document.suchform.address.value = gmDependentLocalityName+", "+gmLocalityName;
		} else if ( gmLocalityName!="" ) {
			document.suchform.address.value = (gmLocalityName!=gmAdministrativeAreaName) ? gmLocalityName+", "+gmAdministrativeAreaName : gmLocalityName;
		} else if ( document.suchform.address.value.length!=5 && Number(document.suchform.address.value)!=document.suchform.address.value ) {
			document.suchform.address.value = gmAdministrativeAreaName;
		}
	}
	if ( typeof is_suchbox_widget!="undefined" && is_suchbox_widget==true ) {
		document.getElementById('geocode_response').style.display = 'none';
		document.getElementById('suchbox_loading').style.display = 'none';
		document.getElementById('suchbox').style.display = 'block';
	} else if ( google_maps_is_loaded ) {
		google.maps.Unload();
	}
	document.suchform.submit();
}

/* ======= Suchbox v2 ======== */
var suchbox2_omnipfad = "";
var filter_grupen_ebene = new Array();
var filter_fach_ebene = new Array();
var suchbox2_last_gruppenlink = new Array('','',''); // object_ref | fachs | id
var suchbox2_last_fachlink = new Array('','','',''); // object_ref | theras | id
var suchbox2_last_theralink = new Array('','',''); // object_ref | _leer_ | id
var suchbox2_last_dialink = new Array('','',''); // object_ref | _leer_ | id

function suchbox2_open() {
	// zusätzliche jqModal-Window-Opener Links, die nicht von anfang an da waren, sondern nachgeladen wurden
	jQuery('#ajax_suchbox_window').jqmShow();
	return false;
}
function suchbox2_select_gruppe(link_ref, gruppe, hat_fachs, hat_filter) {
	if ( suchbox2_last_gruppenlink[0]!=link_ref ) { // klick aufs gleiche verhindern
		// vorher geklickten reseten
		if ( suchbox2_last_gruppenlink[0]!="" ) {
			if ( jQuery(suchbox2_last_gruppenlink[0]).hasClass('with_fachs_aktiv') ) {
				jQuery(suchbox2_last_gruppenlink[0]).removeClass('with_fachs_aktiv');
			} else {
				jQuery(suchbox2_last_gruppenlink[0]).removeClass('without_fachs_aktiv');
			}
			jQuery(suchbox2_last_gruppenlink[0]).css('color','');
		}
		// neuen markieren
		if (hat_fachs) {
			jQuery(link_ref).addClass('with_fachs_aktiv');
		} else {
			jQuery(link_ref).addClass('without_fachs_aktiv');
		}
		jQuery(link_ref).css('color','#FFFFFF');
		// --- Filter-Checkboxen
		for ( i in filter_gruppen_ebene ) { // ertsmal alle als sichtbar markieren
			filter_gruppen_ebene[i][0] = 'visible';
		}
		if ( gruppe!="" ) { // alle wieder zum ausblenden markieren, die bei aktueller Gruppe nicht möglich sind
			for ( i in filter_gruppen_ebene ) { // Filter auf Gruppenebene ausblenden
				if ( hat_filter=="" || hat_filter.indexOf(filter_gruppen_ebene[i][1])==-1 ) { // Filter in dieser Gruppe nicht verfügbar
					filter_gruppen_ebene[i][0] = 'hidden';
				}
			}
			for ( i in filter_fach_ebene ) { // Filter auf Fachebene ausblenden
				filter_fach_ebene[i][0] = 'hidden';
			}
			suchbox2_update_filter();
		}
		// neue Aktionen ausführen
		set_suchbox_element('gruppe', Array(gruppe, jQuery(link_ref).html()) );
		if ( suchbox2_last_gruppenlink[2]!="" && suchbox2_last_gruppenlink[2]!=jQuery(link_ref).attr('id') ) {
			suchbox2_delete('fach');
			suchbox2_delete('thera');
			suchbox2_delete('dia');
		}
		suchbox2_last_gruppenlink = new Array(link_ref, hat_fachs, jQuery(link_ref).attr('id'));
		if ( hat_fachs ) {
			jQuery('#suchbox2_fachs').html('<div style="margin:100px 50px 0px 0px; text-align:center; color:#666;"><img src="/_images/loading2.gif" width="32" height="32" /><br /><br />laden...</div>');
			load_content('/_scripts/load_ajax_content.php', 'which=fachgebiet_select&load_for_suchbox2=true&gruppe='+gruppe, 'suchbox2_fachs', true);
		} else {
			jQuery('#suchbox2_fachs').html('<br />&nbsp;&nbsp;&nbsp;&nbsp;&raquo; <em>keine Unterteilung nach Fachgebieten vorhanden</em>');
		}
	}
	return false;
}
function suchbox2_select_fach(link_ref, fach, hat_theras, hat_filter, thera) {
	if ( suchbox2_last_fachlink[0]!=link_ref ) {
		// --- vorher geklickten reseten
		if ( suchbox2_last_fachlink[0]!="" ) {
			if ( jQuery(suchbox2_last_fachlink[0]).hasClass('with_theras_aktiv') ) {
				jQuery(suchbox2_last_fachlink[0]).removeClass('with_theras_aktiv');
			} else {
				jQuery(suchbox2_last_fachlink[0]).removeClass('without_theras_aktiv');
			}
			jQuery(suchbox2_last_fachlink[0]).css('color','');
		}
		// --- neuen markieren
		if (hat_theras) {
			jQuery(link_ref).addClass('with_theras_aktiv');
		} else {
			jQuery(link_ref).addClass('without_theras_aktiv');
		}
		jQuery(link_ref).css('color','#FFFFFF');
		// --- Filter-Checkboxen
		for ( i in filter_fach_ebene ) { // ertsmal alle als sichtbar markieren
			filter_fach_ebene[i][0] = 'visible';
		}
		for ( i in filter_fach_ebene ) { // alle wieder zum ausblenden markieren, die bei aktueller Fach nicht möglich sind
			if ( fach=="" ) {
				filter_fach_ebene[i][0] = 'visible';
			} else if ( hat_filter=="" || hat_filter.indexOf(filter_fach_ebene[i][1])==-1 ) { // Filter in dieser Fach nicht verfügbar
				filter_fach_ebene[i][0] = 'hidden';
			}
		}
		suchbox2_update_filter();
		// --- neue Aktionen ausführen
		if ( fach!="" ) {
			set_suchbox_element('fach', Array(fach, jQuery(link_ref).html()) );
		} else {
			suchbox2_delete('fach');
		}
		suchbox2_last_fachlink = new Array(link_ref, hat_theras, jQuery(link_ref).attr('id'));
		if ( hat_theras ) {
			jQuery("#suchbox2_spalten_container").animate({marginLeft: "-400px"}, 1500);
			if ( suchbox2_last_gruppenlink[0]!="" && jQuery("#suchbox2_selected_gruppe_in_fach").length==0 ) { // Gruppe einblenden, damit die geändert werden kann und die Höhe des Fach-Scrollers verringern
				jQuery("#suchbox2_fachs_container").prepend('<div style="padding:0px 15px;" id="suchbox2_selected_gruppe_in_fach"><a href="#" onclick="return suchbox2_change_gruppe();" style="display:block; color:#000; text-decoration:none; padding: 2px 0px 10px 2px;"><strong style="font-size:16px;">'+jQuery(suchbox2_last_gruppenlink[0]).html()+'</strong>&nbsp;&nbsp;&nbsp;<img src="/_images/suchbox2_change_button.gif" border="0" align="top" /></a></div>');
				jQuery("#suchbox2_fachs div:first").height(jQuery("#suchbox2_fachs").height()-35);
			}
			jQuery('#suchbox2_theras').html('<div style="margin:70px 20px 0px 0px; text-align:center; color:#666;"><img src="/_images/loading2.gif" width="32" height="32" /><br /><br />laden...</div>');
			load_content('/_scripts/load_ajax_content.php', 'which=thera_dia_select&load_for_suchbox2=true&thera='+thera, 'suchbox2_theras', true);
		} else {
			jQuery('#suchbox2_theras').html('<div style="margin:20px 0px 0px 42px;"><em>&raquo; keine Therapie- oder<br />&nbsp;&nbsp;&nbsp;Diagnose-M&ouml;glichkeiten vorhanden</em></div>');
		}
	}
	return false;
}
function suchbox2_select_thera(link_ref, wert) {
	// --- vorher geklickten reseten
	if ( suchbox2_last_theralink[0]!="" ) {
		jQuery(suchbox2_last_theralink[0]).removeClass('theralink_aktiv');
		jQuery(suchbox2_last_theralink[0]).css('color','');
	}
	// --- neuen markieren
	jQuery(link_ref).addClass('theralink_aktiv');
	jQuery(link_ref).css('color','#FFFFFF');
	// --- neue Aktionen ausführen
	if ( wert!="" ) {
		set_suchbox_element('thera', Array(wert, jQuery(link_ref).html()) );
	} else {
		suchbox2_delete('thera');
	}
	suchbox2_last_theralink = new Array(link_ref,'',jQuery(link_ref).attr('id'));
	return false;
}
function suchbox2_select_dia(link_ref, wert) {
	// --- vorher geklickten reseten
	if ( suchbox2_last_dialink[0]!="" ) {
		jQuery(suchbox2_last_dialink[0]).removeClass('theralink_aktiv');
		jQuery(suchbox2_last_dialink[0]).css('color','');
	}
	// --- neuen markieren
	jQuery(link_ref).addClass('theralink_aktiv');
	jQuery(link_ref).css('color','#FFFFFF');
	// --- neue Aktionen ausführen
	if ( wert!="" ) {
		set_suchbox_element('dia', Array(wert, jQuery(link_ref).html()) );
	} else {
		suchbox2_delete('dia');
	}
	suchbox2_last_dialink = new Array(link_ref,'',jQuery(link_ref).attr('id'));
	return false;
}

function suchbox2_update_filter() {
	// erst Fach-Ebene durchgehen, da später von Gruppe überstimmt werden soll
	if ( site_layout != "bild" ) {
		for ( i in filter_fach_ebene ) {
			if ( jQuery('#suchbox2_filter_checkbox_'+filter_fach_ebene[i][1]).length > 0 ) { // gibt's diesen Filter im HTML eigentlich?
				if ( filter_fach_ebene[i][0]=='visible' && jQuery('#suchbox2_filter_checkbox_'+filter_fach_ebene[i][1]).is(':hidden') ) {
					jQuery('#suchbox2_filter_checkbox_'+filter_fach_ebene[i][1]).css('background-color','#ffaba7').fadeIn(600,function(){jQuery(this).css('background-color','')});
				} else if ( filter_fach_ebene[i][0]=='hidden' && jQuery('#suchbox2_filter_checkbox_'+filter_fach_ebene[i][1]).is(':visible') ) {
					jQuery('#suchbox2_filter_checkbox_'+filter_fach_ebene[i][1]).hide();
					checkbox_click(jQuery('#'+filter_fach_ebene[i][1]), filter_fach_ebene[i][1], true, 'unchecked');
				}
			}
		}
		for ( i in filter_gruppen_ebene ) {
			if ( jQuery('#suchbox2_filter_checkbox_'+filter_gruppen_ebene[i][1]).length > 0 ) { // gibt's diesen Filter im HTML eigentlich?
				if ( filter_gruppen_ebene[i][0]=='visible' && jQuery('#suchbox2_filter_checkbox_'+filter_gruppen_ebene[i][1]).is(':hidden') ) {
					jQuery('#suchbox2_filter_checkbox_'+filter_gruppen_ebene[i][1]).css('background-color','#ffaba7').fadeIn(600,function(){jQuery(this).css('background-color','')});
				} else if ( filter_gruppen_ebene[i][0]=='hidden' && jQuery('#suchbox2_filter_checkbox_'+filter_gruppen_ebene[i][1]).is(':visible') ) {
					jQuery('#suchbox2_filter_checkbox_'+filter_gruppen_ebene[i][1]).hide();
					checkbox_click(jQuery('#'+filter_gruppen_ebene[i][1]), filter_gruppen_ebene[i][1], true, 'unchecked');
				}
			}
		}
		// checken, ob min. eine Table visible ist
		( jQuery('#suchbox2_filter table:visible').length > 0 ) ? jQuery('#suchbox2_filter').show() : jQuery('#suchbox2_filter').hide();
	}
}
function set_suchbox_element(which, params) {
	if ( which=="gruppe" ) {
		jQuery('#suchbox_gruppen').attr('value', params[0]);
		jQuery('#suchbox2_select1_content').html(params[1]);
		suchbox2_omnipfad = "/"+ersetze_sonderzeichen(params[1]);
	}
	if ( which=="fach" ) {
		jQuery('#suchbox_fachgebiete').attr('value', params[0]);
		jQuery('.suchbox2_select1').css('background-position','-454px -923px');
		jQuery('#suchbox2_select2_container').show();
		jQuery('#suchbox2_select2_fach').show().html("<a href=\"#\" onclick=\"return suchbox2_delete('fach');\" class=\"suchbox2_select2_del\" title=\"Kriterium entfernen...\"><img src=\"/_images/suchbox2_delete.gif\" border=\"0\" /></a><a href=\"#\" onclick=\"return suchbox2_open();\" class=\"suchbox2_select2\" title=\"Fachgebiet &auml;ndern...\"><strong>"+params[1]+"</strong></a>");
		suchbox2_omnipfad += "/"+ersetze_sonderzeichen(params[1]);
	}
	if ( which=="thera" ) {
		jQuery('#suchbox2_thera').attr('value', params[0]);
		jQuery('#suchbox2_select2_thera').show().html("<a href=\"#\" onclick=\"return suchbox2_delete('thera');\" class=\"suchbox2_select2_del\" title=\"Kriterium entfernen...\"><img src=\"/_images/suchbox2_delete.gif\" border=\"0\" /></a><a href=\"#\" onclick=\"return suchbox2_open();\" class=\"suchbox2_select2\" title=\"Therapie &auml;ndern...\">"+params[1]+"</a>");
	}
	if ( which=="dia" ) {
		jQuery('#suchbox2_dia').attr('value', params[0]);
		jQuery('#suchbox2_select2_dia').show().html("<a href=\"#\" onclick=\"return suchbox2_delete('dia');\" class=\"suchbox2_select2_del\" title=\"Kriterium entfernen...\"><img src=\"/_images/suchbox2_delete.gif\" border=\"0\" /></a><a href=\"#\" onclick=\"return suchbox2_open();\" class=\"suchbox2_select2\" title=\"Diagnose-M&ouml;glichkeit &auml;ndern...\">"+params[1]+"</a>");
	}
	return false;
}
function suchbox2_delete(which) {
	if ( which=="fach" ) {
		jQuery('#suchbox_fachgebiete').attr('value', '');
		jQuery('#suchbox2_select2_fach').fadeOut(500).html('');
		suchbox2_last_fachlink = new Array('','','');
	}
	if ( which=="thera" ) {
		jQuery('#suchbox2_thera').attr('value', '');
		jQuery('#suchbox2_select2_thera').fadeOut(500).html('');
		suchbox2_last_theralink = new Array('','','');
	}
	if ( which=="dia" ) {
		jQuery('#suchbox2_dia').attr('value', '');
		jQuery('#suchbox2_select2_dia').fadeOut(500).html('');
		suchbox2_last_dialink = new Array('','','');
	}
	if ( jQuery('#suchbox2_select2_fach').html()=="" && jQuery('#suchbox2_select2_thera').html()=="" && jQuery('#suchbox2_select2_dia').html()=="" ) {
		jQuery('.suchbox2_select1').css('background-position','-454px -900px');
		jQuery('#suchbox2_select2_container').fadeOut(500);
	}
	return false;
}
function suchbox2_change_gruppe() {
	jQuery("#suchbox2_spalten_container").animate({marginLeft: "0px"}, 1000);
	if ( jQuery("#suchbox2_selected_gruppe_in_fach").is(':visible') ) {
		jQuery("#suchbox2_selected_gruppe_in_fach").remove();
		jQuery("#suchbox2_fachs div:first").height(jQuery("#suchbox2_fachs").height()+35);
	}
	return false;
}
function pre_select_suchbox2_option(which,wert) {
	if ( which=="gruppe" ) {
		if ( suchbox2_last_gruppenlink[2]!="" ) { // vorher in Suchbox2 Gruppe selected
			jQuery('#'+suchbox2_last_gruppenlink[2]).click();
		} else if ( wert!="" && jQuery('#suchbox_gruppen').attr('value')!="" ) { // Session-Wert vorhanden, aber nicht über kleines "x" gelöscht
			jQuery('#gruppen_link_'+wert).click();
		}
	}
	else if ( which=="fachgebiet" ) {
		if ( suchbox2_last_fachlink[2]!="" ) { // vorher in Suchbox2 Fachgebiet selected
			jQuery('#'+suchbox2_last_fachlink[2]).click();
		} else if ( wert!="" && jQuery('#suchbox_fachgebiete').attr('value')!="" ) { // Session-Wert vorhanden, und nicht über kleines "x" gelöscht
			jQuery('#fach_link_'+wert).click();
		} else { // vorher keine Fachgebiets-Suche gesucht, oder nachträglich Gruppe geändert
			jQuery('#fach_link_').click();
		}
	}
	else if ( which=="thera" ) {
		if ( suchbox2_last_theralink[2]!="" ) { // vorher in Suchbox2 Fachgebiet selected
			jQuery('#'+suchbox2_last_theralink[2]).click();
		} else if ( wert!="" && jQuery('#suchbox2_thera').attr('value')!="" ) { // Session-Wert vorhanden, und nicht über kleines "x" gelöscht
			jQuery('#thera_link_'+wert).click();
		} else { // vorher keine Fachgebiets-Suche gesucht, oder nachträglich Gruppe geändert
			jQuery('#thera_link_').click();
		}
	}
	else if ( which=="dia" ) {
		if ( suchbox2_last_dialink[2]!="" ) { // vorher in Suchbox2 Fachgebiet selected
			jQuery('#'+suchbox2_last_dialink[2]).click();
		} else if ( wert!="" && jQuery('#suchbox2_dia').attr('value')!="" ) { // Session-Wert vorhanden, und nicht über kleines "x" gelöscht
			jQuery('#dia_link'+wert).click();
		} else { // vorher keine Fachgebiets-Suche gesucht, oder nachträglich Gruppe geändert
			jQuery('#dia_link_').click();
		}
	}
}
function suchbox2_suche_starten() {
	jQuery('#ajax_suchbox_window').jqmHide();
	prefetch_coords();
	return false;
}

// AJAX ======================================
var httpRequest = false;
var noResult = "Kein Ergebnis";

function load_content(url, params, outputId, own_loader) {
	if ( own_loader!==true ) { document.getElementById(outputId).innerHTML = "laden..."; }
	httpRequest = false;
	if(window.XMLHttpRequest)  // Mozilla, Safari,...
	   httpRequest = new XMLHttpRequest();
	else if(window.ActiveXObject) { // IE
	   try {
		   httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
	}
	   catch (e) {
		   try {
			   httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
	 }
		   catch (e) {}
	   }
	}
	if(!httpRequest) 
	  return false;
	httpRequest.onreadystatechange = function() {
		if (httpRequest.readyState == 4) {
			if (httpRequest.status == 200) 
				handleHttpResponse(httpRequest.responseText, outputId);
			else
			  return false;
		}
		else
		   return false;
	} 
	httpRequest.open('post', url, true);
	httpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	httpRequest.send(params);
	return false;
}
function handleHttpResponse(content, outputId) {
	if(!document.getElementById)
		return false;
	if(!document.getElementById(outputId))
		return false;
	if (content == "FALSE") {
		document.getElementById(outputId).innerHTML = noResult;
	} else {
		document.getElementById(outputId).innerHTML = content;
		evalScript(content);
	}
}
function evalScript(scripts) {
	try {
		if (scripts != '') {
			var script = "";
			scripts = scripts.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi, function(){ if (scripts !== null) script += arguments[1] + '\n'; return '';});
			if (script) (window.execScript) ? window.execScript(script) : window.setTimeout(script, 0);
		}
		return false;
	}
	catch(e) { alert(e)	}
}

/* ======= Allgemeines Javascript ========== */
function geheZu(ziel) {
	document.location.href = ziel.replace(/§/g, "/");
	return false;
}
var bisher_empfohlen = new Array();
function do_empfehlung(ref_id, ist_bewertbar, art) {
	if ( bisher_empfohlen[ref_id] != true && bisher_empfohlen[ref_id] != "working" ) {
		jQuery('#empfehlen_container_'+ref_id+' div.minoTooltip_Content').html(''); // empty minoTooltip
		if ( jQuery('#empfehlen_'+ref_id+' img').length == 0 ) {
			jQuery('#empfehlen_'+ref_id+' div').css('marginTop','-2px').prepend('<img src="/_images/loading2_small_invers.gif" border="0" style="margin-bottom:4px;" /><br />');
		}
		jQuery.ajax({type: "GET", cache: false, url: "/_scripts/load_ajax_content.php", data: "which=empfehlung&response=json&ref_id="+ref_id+"&art="+art+"&ist_bewertbar="+ist_bewertbar, dataType: 'json', success: function(response){after_empfehlung(response, false);}});
		bisher_empfohlen[ref_id] = true;
	} else if ( bisher_empfohlen[ref_id] != "working" ) {
		jQuery.ajax({type: "GET", cache: false, url: "/_scripts/load_ajax_content.php", data: "which=undo_empfehlung&response=json&ref_id="+ref_id+"&art="+art+"&ist_bewertbar="+ist_bewertbar, dataType: 'json', success: function(response){after_empfehlung(response, true);}});
		bisher_empfohlen[ref_id] = "working";
	}
	return false;
}
function after_empfehlung(r, undo) {
	if ( undo===true ) {
		animate_px = new Array('-48px','-20px','-10px -280px','-10px -324px','Jetzt erneut empfehlen...'); // DIV from, DIV to, Background-Position Erfolg, Background-Position kein Erfolg
	} else {
		animate_px = new Array('-20px','-48px','-10px -346px','-10px -324px','Klicken Sie erneut, um die Empfehlung r&uuml;ckg&auml;ngig zu machen.');
	}
	if ( r.msg=="success" ) {
		if ( undo===true ) { bisher_empfohlen[r.ref_id] = false; }
		jQuery('#empfehlen_'+r.ref_id+' div').css('marginTop',animate_px[0]).animate({marginTop: animate_px[1]}, 1000, "easeInOutBack", function() {
			if ( r.ist_bewertbar=="1" && undo!==true ) {
				jQuery('#empfehlen_container_'+r.ref_id).append("<div id=\"danke_"+r.ref_id+"\" style=\"position:absolute; top:-74px; left:-26px; width:261px; height:84px; overflow:hidden; z-index:2000; zoom:1;\"><div style=\"margin-top:100px; z-index:2001; zoom:1;\"><img class=\"pngfix\" src=\"/_images/danke-empfehlung.png\" width=\"261\" height=\"74\" border=\"0\" /></div></div>");
				jQuery('#danke_'+r.ref_id+' div').animate({marginBottom:'0px'},300).animate({marginTop:"10px"}, 1000, "easeInOutBack", function(){
					jQuery(this).animate({marginBottom:'0px'}, 4000, function(){
						jQuery('#danke_'+r.ref_id).slideUp(800, function(){
							jQuery('#empfehlen_container_'+r.ref_id+' div.minoTooltip_Content').html('<span style="display:block; padding:6px;">'+animate_px[4]+'<br />Bitte geben Sie auch eine ausf&uuml;hrliche Bewertung ab.</span>'); // minoTooltip neu setzen
							jQuery('#empfehlen_container_'+r.ref_id+' a.empfehlen_button').css('backgroundPosition',animate_px[2]);
							jQuery(this).remove();
						});
					});
				});
			} else {
				jQuery('#empfehlen_container_'+r.ref_id+' div.minoTooltip_Content').html('<span style="display:block; padding:6px;">'+animate_px[4]+'</span>'); // minoTooltip neu setzen
				jQuery('#empfehlen_container_'+r.ref_id+' a.empfehlen_button').css('backgroundPosition',animate_px[2]);
			}
		});
	} else {
		jQuery('#empfehlen_'+r.ref_id+' div').stop(true).css('marginTop',animate_px[0]);
		jQuery('#empfehlen_container_'+r.ref_id+' div.minoTooltip_Content').html('<span style="display:block; width:250px; padding:6px; white-space:normal;">'+r.msg+'</span>'); // minoTooltip neu setzen
		jQuery('#empfehlen_container_'+r.ref_id+' a.empfehlen_button').css('backgroundPosition',animate_px[3]);
		alert(r.msg);
	}
}

function mouse_radiobox(which, what, bgcolor) {
	if ( what=="over" ) {
		which.style.backgroundColor=bgcolor;
		if ( bgcolor=="#069BD2" ) { which.style.color = '#ffffff'; }
		which.style.cursor = 'pointer';
	} else {
		which.style.backgroundColor='transparent';
		which.style.color = '';
		which.style.cursor = 'default';
	}
}

function submit_form(submit_button_id) {
	jQuery('#'+submit_button_id+'').click();
	return false;
}

function openWin (url, name, features) {
	new_win = window.open(url, name, features);
	new_win.focus();
}

function minmax_map() {
	if ( jQuery("#map_div").outerHeight() < 120 ) {
		jQuery("#map_div").animate({height: "500px"}, 1500, "easeInOutBack", function(){map_resize_finished('maxed');});
		jQuery("#minmax_map").css({display:"none"});
	} else {
		map.removeControl(largeMapControl);
		map.removeControl(mapTypeControl);
		jQuery("#map_div").animate({height: "100px"}, 1000, "easeOutBack", function(){map_resize_finished('mined');});
		jQuery("#minmax_map").css({display:"none"});
	}
	if ( site_layout=="jameda" || site_layout=="focus" ) {
		setomni('resize_map','partner',omni_agof);
	}
}
function map_resize_finished(which) {
	if ( which == "maxed" ) {
		map.checkResize();
		largeMapControl = new google.maps.LargeMapControl3D();
		mapTypeControl = new google.maps.MapTypeControl();
		map.addControl(largeMapControl);
		map.addControl(mapTypeControl);
		map.setZoom(map.getBoundsZoomLevel(bounds));
		map.setCenter(bounds.getCenter());
		jQuery("#minmax_map").css({backgroundPosition:"0px -23px", top:"35px", display:"block"});
		jQuery("#minmax_map").attr({title: "Karte wieder verkleinern..."});
	} else {
		map.checkResize();
		map.setZoom(map.getBoundsZoomLevel(bounds));
		map.setCenter(bounds.getCenter());
		jQuery("#minmax_map").css({backgroundPosition:"0px 0px", top:"7px", display:"block"});
		jQuery("#minmax_map").attr({title: "Karte vergr&ouml;&szlig;ern..."});
	}
}

function str_replace(search, replace, subject) {
    return subject.split(search).join(replace);
}
function ersetze_sonderzeichen(str) {
	such = new Array("Ä","ä","Ö","ö","Ü","ü","ß"," - "," / ","/"," | ","|"," & ","&",". ",".","'","\"","“","„","’",", ",","," (","(",") ",")"," ");
	ersetzen = new Array("Ae","ae","Oe","oe","Ue","ue","ss","-","-","-","-","-","-","-","-","-","","","","","","-","-","-","-","-","-","-");
	for ( i=0; i<such.length; i++ ) {
		str = str_replace(such[i], ersetzen[i], str);
	}
	return str;
}

/* ======= FOCUS Omniture ======== */
function delomni() {
	delete(s.pageName); delete(s.eVar5); delete(s.channel); delete(s.eVar6); delete(s.eVar3); delete(s.hier1); delete(s.prop2); delete(s.eVar7); delete(s.prop3); delete(s.prop4); delete(s.prop5); delete(s.prop6); delete(s.eVar8); delete(s.prop7); delete(s.prop8); delete(s.prop9); delete(s.prop10); delete(s.prop11); delete(s.prop12); delete(s.prop13); delete(s.prop14); delete(s.prop15); delete(s.prop16); delete(s.prop17); delete(s.prop18); delete(s.prop19); delete(s.prop22);
}
function setDefaultProperties(category,agof) {
	delomni();
	s.pageName="jameda";
	s.eVar5=s.pageName;
	s.channel="jameda";
	s.eVar6=s.channel;
	if (category) {s.prop6=category;} else {s.prop6='partner';}
	s.eVar8=s.prop6;
	if (agof) {s.prop7=agof;} else {s.prop7='20370';}
	s.trackingServer="omni.focus.de";
	s.hier1=s.pageName;
}
function getomni(category,agof) {
	setDefaultProperties(category,agof);
	var s_code=s.t();
	if (document.getElementById('ivwpixel')) {document.getElementById('ivwpixel').src = getivw(s.prop7);}
}
function setomni(pagename,cat,agof,from_partner,vermarkt_id) {
	setDefaultProperties('','');
	var defIdent = 'defProp';
	if (pagename != defIdent) {
		pagename = pagename.replace(/%===%/g, "/"); // Pagename-Verschandeln-Zurücksetzen - damit Google nicht indiziert
		if ( site_layout == "focus" ) {
			if ( pagename.indexOf('focus_channelizer')!==0 ) { pagename = (pagename.indexOf('/')!==0) ? "focus_channelizer/"+pagename : "focus_channelizer"+pagename; } // MINO Edit
		} else {
			if ( pagename.indexOf('jameda/')!==0 ) { pagename = (pagename.indexOf('/')!==0) ? "jameda/"+pagename : "jameda"+pagename; } // MINO Edit
		}
		var spl = pagename;
		var parts = spl.split("/");
		s.pageName=""+pagename;
		s.eVar5=s.pageName;
		//s.channel= ""+parts[0];   -- MINO Edit
		s.channel= "jameda";
		s.eVar6=s.channel;
		if (parts[1]){s.prop2=parts[1]; s.eVar7=parts[1];} else {delete(s.prop2); delete(s.eVar7);}
		if (parts[2]){s.prop3=parts[2]} else {delete(s.prop3);}
		if (parts[3]){s.prop4=parts[3]} else {delete(s.prop4);}
		if (parts[4]){s.prop5=parts[4]} else {delete(s.prop5);}
	}
	if (cat == "") {delete(s.prop6); delete(s.eVar8);} else if (cat != defIdent) {s.prop6=cat; s.eVar8=cat;}
	if (agof == "") {delete(s.prop7);} else if (agof != defIdent) {s.prop7=agof;}
	//if (datum == "") {delete(s.prop8);} else if (datum != defIdent) {s.prop8=datum;}
	//if (autor == "") {delete(s.prop9);} else if (autor != defIdent) {s.prop9=autor;}
	//if (ad == "") {delete(s.prop10);} else if (ad != defIdent) {s.prop10=ad;}
	//if (adkw == "") {delete(s.prop11);} else if (adkw != defIdent) {s.prop11=adkw;}
	//if (archiv == "") {delete(s.prop12);} else if (archiv != defIdent) {s.prop12=archiv;}
	//if (special == "") {delete(s.prop13);} else if (special != defIdent) {s.prop13=special;}
	// s.prop14: omni_uv
	//if (such1 == "") {delete(s.prop15);} else if (such1 != defIdent) {s.prop15=such1;}
	//if (such2 == "") {delete(s.prop16);} else if (such2 != defIdent) {s.prop16=such2;}
	//if (p17 =='undefined' || p17 == "") {
	//	if (cat=="artikel" || cat=="video") {
	//		s.prop17=cat+":"+parts[parts.length-1];
	//	} else {
	//		delete(s.prop17);
	//	}
	//} else if (p17 != defIdent) {s.prop17=p17;}
	//if (map == "") {delete(s.prop18);} else if (map != defIdent) {s.prop18=map;}
	//if (p19 =='undefined' || p19 == "") {delete(s.prop19);} else if (p19 != defIdent) {s.prop19=p19;}
	// -- MINO Edit
	if (from_partner == "") {delete(s.prop9);} else {s.prop9=from_partner;}
	if (vermarkt_id == "") {delete(s.prop10);} else {s.prop10=vermarkt_id;}
	// --
	s.trackingServer="omni.focus.de";
	s.hier1=s.pageName;
	var s_code=s.t();
	if (document.getElementById('ivwpixel')) {document.getElementById('ivwpixel').src = getivw(s.prop7);}
}
function getivw (ivwagof) {
	var tft_ivwagof = '20370';
	if (ivwagof != "") {tft_ivwagof=ivwagof;}
	var ivw_path = 'http://focus.ivwbox.de/cgi-bin/ivw/CP/'+tft_ivwagof;
	var ra0 = new Date().getTime();
	var tmp0= "";
	var rf0 = "";
	if (! document.referrer) {rf0='noref';} else {tmp0 = document.referrer;rf0 = tmp0.replace(/\"/g, "");rf0 = rf0.replace(/\'/g, "");rf0 = rf0.replace(/\</g, "");rf0 = rf0.replace(/\>/g, "");rf0=escape(rf0);}
	rf0=rf0.replace (/\//g, '%2F');
	return ivw_pixel=ivw_path+";"+ra0+"?r="+rf0;
}
