﻿function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt;}}userAgent=window.navigator.userAgent;browserVers=parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);mustInitImg=true;function initImgID(){var di=document.images;if(mustInitImg&&di){for(var i=0;i<di.length;i++){if(!di[i].id){di[i].id=di[i].name;}}mustInitImg=false;}}function findElement(n,ly){var d=document;if(browserVers<4){return d[n];}if((browserVers>=6)&&(d.getElementById)){initImgID;return(d.getElementById(n));}var cd=ly?ly.document:d;var elem=cd[n];if(!elem){for(var i=0;i<cd.layers.length;i++){elem=findElement(n,cd.layers[i]);if(elem){return elem;}}}return elem;}function changeImagesArray(array){if(preloadFlag==true){var d=document;var img;for(i=0;i<array.length;i+=2){img=null;var n=array[i];if(d.images){if(d.layers){img=findElement(n,0);}else{img=d.images[n];}}if(!img&&d.getElementById){img=d.getElementById(n);}if(!img&&d.getElementsByName){var elms=d.getElementsByName(n);if(elms){for(j=0;j<elms.length;j++){if(elms[j].src){img=elms[j];break;}}}}if(img){img.src=array[i+1];}}}}function changeImages(){changeImagesArray(changeImages.arguments);}CSStopExecution=false;function CSAction(array){return CSAction2(CSAct,array);}function CSAction2(fct,array){var result;for(var i=0;i<array.length;i++){if(CSStopExecution){return false;}var aa=fct[array[i]];if(aa==null){return false;}var ta=new Array;for(var j=1;j<aa.length;j++){if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}else{ta[j]=aa[j];}}}else{ta[j]=aa[j];}}result=aa[0](ta);}return result;}CSAct=new Object;function CSGoBack1(){history.back();}function CSClickReturn(){var bAgent=window.navigator.userAgent;var bAppName=window.navigator.appName;if((bAppName.indexOf("Explorer")>=0)&&(bAgent.indexOf("Mozilla/3")>=0)&&(bAgent.indexOf("Mac")>=0)){return true;}else{return false;}} function click(e){if(!e){e=window.event;}if((e.type&&e.type=="contextmenu")||(e.button&&e.button==2)||(e.which&&e.which==3)){if(window.opera){window.alert("Â©  www.orchideen-im-garten.de");}return false;}}if(document.layers){document.captureEvents(Event.MOUSEDOWN);}document.onmousedown=click;document.oncontextmenu=click;$(document).ready(function(){if(jQuery.browser.msie&&jQuery.browser.version<6){$("#browseralt").html("<p><center>Ihr Browser wird nicht mehr unterst&uuml;tzt.</center></p>"+"<p>Sie sollten dringend Ihren Internet Explorer "+jQuery.browser.version+" aktualisieren. Die aktuelle Version zeichnet sich durch eine deutlich h&ouml;here Sicherheit und bessere Kompatibilit&auml;t zu den Standards aus.</p>"+'<p>Besser noch, Sie wechseln zum <a href="http://www.mozilla.org/de/firefox/fx/" target="_blank" title="Link zum kostenlosen Download des Firefox-Browsers">aktuellen Firefox Browser</a>.</p>');}else{$("#browseralt").remove();}});$(document).ready(function(){$("#headernav li:has(ul)").hover(function(){$(this).find("ul").slideDown();},function(){$(this).find("ul").hide();});});
/*!reflection.js for jQuery v1.1 (c) 2006-2011 Christophe Beyls MIT-style license. */
(function(a){a.fn.extend({reflect:function(b){b=a.extend({height:1/3,opacity:0.5},b);return this.unreflect().each(function(){var c=this;if(/^img$/i.test(c.tagName)){function d(){var g=c.width,f=c.height,l,i,m,h,k;i=Math.floor((b.height>1)?Math.min(f,b.height):f*b.height);l=a("<canvas />")[0];if(l.getContext){h=l.getContext("2d");try{a(l).attr({width:g,height:i});h.save();h.translate(0,f-1);h.scale(1,-1);h.drawImage(c,0,0,g,f);h.restore();h.globalCompositeOperation="destination-out";k=h.createLinearGradient(0,0,0,i);k.addColorStop(0,"rgba(255, 255, 255, "+(1-b.opacity)+")");k.addColorStop(1,"rgba(255, 255, 255, 1.0)");h.fillStyle=k;h.rect(0,0,g,i);h.fill();}catch(j){return;}}else{if(!a.browser.msie){return;}l=a("<img />").attr("src",c.src).css({width:g,height:f,marginBottom:i-f,filter:"FlipV progid:DXImageTransform.Microsoft.Alpha(Opacity="+(b.opacity*100)+", FinishOpacity=0, Style=1, StartX=0, StartY=0, FinishX=0, FinishY="+(i/f*100)+")"})[0];}a(l).css({display:"block",border:0});m=a(/^a$/i.test(c.parentNode.tagName)?"<span />":"<div />").insertAfter(c).append([c,l])[0];m.className=c.className;a.data(c,"reflected",m.style.cssText=c.style.cssText);a(m).css({width:g,height:f+i,overflow:"hidden"});c.style.cssText="display: block; border: 0px";c.className="reflected";}if(c.complete){d();}else{a(c).load(d);}}});},unreflect:function(){return this.unbind("load").each(function(){var c=this,b=a.data(this,"reflected"),d;if(b!==undefined){d=c.parentNode;c.className=d.className;c.style.cssText=b;a.removeData(c,"reflected");d.parentNode.replaceChild(c,d);}});}});})(jQuery);jQuery(function($){$("img.reflect").reflect({});});
/*!	Slimbox v2.04 (c) 2007-2010 Christophe Beyls MIT-style license.*/
(function(w){var E=w(window),u,f,F=-1,n,x,D,v,y,L,r,m=!window.XMLHttpRequest,s=[],l=document.documentElement,k={},t=new Image(),J=new Image(),H,a,g,p,I,d,G,c,A,K;w(function(){w("body").append(w([H=w('<div id="lbOverlay" />')[0],a=w('<div id="lbCenter" />')[0],G=w('<div id="lbBottomContainer" />')[0]]).css("display","none"));g=w('<div id="lbImage" />').appendTo(a).append(p=w('<div style="position: relative;" />').append([I=w('<a id="lbPrevLink" href="#" />').click(B)[0],d=w('<a id="lbNextLink" href="#" />').click(e)[0]])[0])[0];c=w('<div id="lbBottom" />').appendTo(G).append([w('<a id="lbCloseLink" href="#" />').add(H).click(C)[0],A=w('<div id="lbCaption" />')[0],K=w('<div id="lbNumber" />')[0],w('<div style="clear: both;" />')[0]])[0];});w.slimbox=function(O,N,M){u=w.extend({loop:true,overlayOpacity:0.8,overlayFadeDuration:100,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:500,captionAnimationDuration:400,counterText:"Bild {x} von {y}",closeKeys:[27],previousKeys:[37],nextKeys:[39]},M);if(typeof O=="string"){O=[[O,N]];N=0;}y=E.scrollTop()+(E.height()/2);L=u.initialWidth;r=u.initialHeight;w(a).css({top:Math.max(0,y-(r/2)),width:L,height:r,marginLeft:-L/2}).show();v=m||(H.currentStyle&&(H.currentStyle.position!="fixed"));if(v){H.style.position="absolute";}w(H).css("opacity",u.overlayOpacity).fadeIn(u.overlayFadeDuration);z();j(1);f=O;u.loop=u.loop&&(f.length>1);return b(N);};w.fn.slimbox=function(M,P,O){P=P||function(Q){return[Q.href,Q.title];};O=O||function(){return true;};var N=this;return N.unbind("click").click(function(){var S=this,U=0,T,Q=0,R;T=w.grep(N,function(W,V){return O.call(S,W,V);});for(R=T.length;Q<R;++Q){if(T[Q]==S){U=Q;}T[Q]=P(T[Q],Q);}return w.slimbox(T,U,M);});};function z(){var N=E.scrollLeft(),M=E.width();w([a,G]).css("left",N+(M/2));if(v){w(H).css({left:N,top:E.scrollTop(),width:M,height:E.height()});}}function j(M){if(M){w("object").add(m?"select":"embed").each(function(O,P){s[O]=[P,P.style.visibility];P.style.visibility="hidden";});}else{w.each(s,function(O,P){P[0].style.visibility=P[1];});s=[];}var N=M?"bind":"unbind";E[N]("scroll resize",z);w(document)[N]("keydown",o);}function o(O){var N=O.keyCode,M=w.inArray;return(M(N,u.closeKeys)>=0)?C():(M(N,u.nextKeys)>=0)?e():(M(N,u.previousKeys)>=0)?B():false;}function B(){return b(x);}function e(){return b(D);}function b(M){if(M>=0){F=M;n=f[F][0];x=(F||(u.loop?f.length:0))-1;D=((F+1)%f.length)||(u.loop?0:-1);q();a.className="lbLoading";k=new Image();k.onload=i;k.src=n;}return false;}function i(){a.className="";w(g).css({backgroundImage:"url("+n+")",visibility:"hidden",display:""});w(p).width(k.width);w([p,I,d]).height(k.height);w(A).html(f[F][1]||"");w(K).html((((f.length>1)&&u.counterText)||"").replace(/{x}/,F+1).replace(/{y}/,f.length));if(x>=0){t.src=f[x][0];}if(D>=0){J.src=f[D][0];}L=g.offsetWidth;r=g.offsetHeight;var M=Math.max(0,y-(r/2));if(a.offsetHeight!=r){w(a).animate({height:r,top:M},u.resizeDuration,u.resizeEasing);}if(a.offsetWidth!=L){w(a).animate({width:L,marginLeft:-L/2},u.resizeDuration,u.resizeEasing);}w(a).queue(function(){w(G).css({width:L,top:M+r,marginLeft:-L/2,visibility:"hidden",display:""});w(g).css({display:"none",visibility:"",opacity:""}).fadeIn(u.imageFadeDuration,h);});}function h(){if(x>=0){w(I).show();}if(D>=0){w(d).show();}w(c).css("marginTop",-c.offsetHeight).animate({marginTop:0},u.captionAnimationDuration);G.style.visibility="";}function q(){k.onload=null;k.src=t.src=J.src=n;w([a,g,c]).stop(true);w([I,d,g,G]).hide();}function C(){if(F>=0){q();F=x=D=-1;w(a).hide();w(H).stop().fadeOut(u.overlayFadeDuration,j);}return false;}})(jQuery);if(!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)){jQuery(function($){$("a[rel^='lightbox']").slimbox({},null,function(el){return(this==el)||((this.rel.length>8)&&(this.rel==el.rel));});});}
