/*
 *
 *	@copyright:___________2010, Best Stuttgart
 *	@link:________________http://www.best-store.de
 *	@author:______________Oliver Hook
 *  @namespace:___________OH
 *	@projectDescription:__global plugins/functions
 *
 *	@version:_____________1.0
 *
 */
/*
 * jQuery Address Plugin v1.2.2
 * http://www.asual.com/jquery/address/
 *
 * Copyright (c) 2009-2010 Rostislav Hristov
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Date: 2010-07-19 11:12:48 +0300 (Mon, 19 Jul 2010)
 */
(function(c){c.address=function(){var x=function(a){c(c.address).trigger(c.extend(c.Event(a),function(){for(var b={},f=c.address.parameterNames(),h=0,q=f.length;h<q;h++){b[f[h]]=c.address.parameter(f[h])}return{value:c.address.value(),path:c.address.path(),pathNames:c.address.pathNames(),parameterNames:f,parameters:b,queryString:c.address.queryString()}}.call(c.address)))},y=function(a,b,f){c(c.address).bind(a,b,f);return c.address},A=function(){return z.pushState&&typeof d.state!==t},H=function(){return"/"+e.pathname.replace(new RegExp(d.state),"")+e.search+(G()?"#"+G():"")},G=function(){var a=e.href.indexOf("#");return a!=-1?B(e.href.substr(a+1),l):""},u=function(){return A()?H():G()},ra=function(){return"javascript"},$=function(a,b){if(d.strict){a=b?a.substr(0,1)!="/"?"/"+a:a:a==""?"/":a}return a},B=function(a,b){if(d.crawlable&&b){return(a!=""?"!":"")+a}return a.replace(/^\!/,"")},C=function(a,b){return parseInt(a.css(b),10)},aa=function(a){for(var b,f,h=0,q=a.childNodes.length;h<q;h++){if(a.childNodes[h].src){b=String(a.childNodes[h].src)}if(f=aa(a.childNodes[h])){b=f}}return b},M=function(){if(!R){var a=u(),b=g!=a;if(D&&o<523){if(I!=z.length){I=z.length;if(typeof F[I-1]!=t){g=F[I-1]}J(l)}}else{if(b){if(E&&o<7){e.reload()}else{E&&o<8&&d.history&&v(U,50);g=a;J(l)}}}}},J=function(a){x(ba);x(a?ca:da);v(ea,10)},ea=function(){if(d.tracker!=="null"&&d.tracker!==null){var a=c.isFunction(d.tracker)?d.tracker:j[d.tracker],b=(e.pathname+e.search+(c.address&&!A()?c.address.value():"")).replace(/\/\//,"/").replace(/^\/$/,"");if(c.isFunction(a)){a(b)}else{if(c.isFunction(j.urchinTracker)){j.urchinTracker(b)}else{if(typeof j.pageTracker!=t&&c.isFunction(j.pageTracker._trackPageview)){j.pageTracker._trackPageview(b)}else{typeof j._gaq!=t&&c.isFunction(j._gaq.push)&&j._gaq.push(["_trackPageview",b])}}}}},U=function(){var a=ra()+":"+l+";document.open();document.writeln('<html><head><title>"+m.title+"</title><script>var "+p+' = "'+u()+(m.domain!=e.host?'";document.domain="'+m.domain:"")+"\";<\/script></head></html>');document.close();";if(o<7){n.src=a}else{n.contentWindow.location.replace(a)}},ga=function(){if(N&&fa!=-1){var a,b=N.substr(fa+1).split("&");for(r=0;r<b.length;r++){a=b[r].split("=");if(/^(autoUpdate|crawlable|history|strict|wrap)$/.test(a[0])){d[a[0]]=isNaN(a[1])?/^(true|yes)$/i.test(a[1]):parseInt(a[1],10)!==0}if(/^(state|tracker)$/.test(a[0])){d[a[0]]=a[1]}}N=null}g=u()},ia=function(){if(!ha){ha=k;ga();var a=c("body").ajaxComplete(function(){sa.call(this);ta.call(this)}).trigger("ajaxComplete");if(d.wrap){c("body > *").wrapAll('<div style="padding:'+(C(a,"marginTop")+C(a,"paddingTop"))+"px "+(C(a,"marginRight")+C(a,"paddingRight"))+"px "+(C(a,"marginBottom")+C(a,"paddingBottom"))+"px "+(C(a,"marginLeft")+C(a,"paddingLeft"))+'px;" />').parent().wrap('<div id="'+p+'" style="height:100%; overflow:auto;'+(D?window.statusbar.visible&&!/chrome/i.test(V)?"":" resize:both;":"")+'" />');c("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"});D&&c('<style type="text/css" />').appendTo("head").text("#"+p+"::-webkit-resizer { background-color: #fff; }")}if(E&&o<8){a=m.getElementsByTagName("frameset")[0];n=m.createElement((a?"":"i")+"frame");if(a){a.insertAdjacentElement("beforeEnd",n);a[a.cols?"cols":"rows"]+=",0";n.noResize=k;n.frameBorder=n.frameSpacing=0}else{n.style.display="none";n.style.width=n.style.height=0;n.tabIndex=-1;m.body.insertAdjacentElement("afterBegin",n)}v(function(){c(n).bind("load",function(){var b=n.contentWindow;g=typeof b[p]!=t?b[p]:"";if(g!=u()){J(l);e.hash=B(g,k)}});typeof n.contentWindow[p]==t&&U()},50)}else{if(D){if(o<418){c(m.body).append('<form id="'+p+'" style="position:absolute;top:-9999px;" method="get"></form>');W=m.getElementById(p)}if(typeof e[p]==t){e[p]={}}if(typeof e[p][e.pathname]!=t){F=e[p][e.pathname].split(",")}}}v(function(){x("init");J(l)},1);if(!A()){if(E&&o>7||!E&&"on"+O in j){if(j.addEventListener){j.addEventListener(O,M,false)}else{j.attachEvent&&j.attachEvent("on"+O,M)}}else{ua(M,50)}}}},sa=function(){var a,b=c("a"),f=b.size(),h=-1;v(function(){if(++h!=f){a=c(b.get(h));a.is("[rel*=address:]")&&a.address();v(arguments.callee,1)}},1)},va=function(){if(g!=u()){g=u();J(l)}},wa=function(){if(j.removeEventListener){j.removeEventListener(O,M,false)}else{j.detachEvent&&j.detachEvent("on"+O,M)}},ta=function(){var a=e.pathname.replace(/\/$/,"");c("body").html().indexOf("_escaped_fragment_")!=-1&&c("a[href]:not([href^=http]), , a[href*="+document.domain+"]",this).each(function(){var b=c(this).attr("href").replace(/^http:/,"").replace(new RegExp(a+"/?$"),"");if(b==""||b.indexOf("_escaped_fragment_")!=-1){c(this).attr("href","#"+this.decode(b.replace(/\/(.*)\?_escaped_fragment_=(.*)$/,"!$2")))}})},K=function(a){return encodeURIComponent(a).replace(/%20/g,"+")},ja=function(a){return a.split("#")[0].split("?")[0]},ka=function(a){a=ja(a);var b=a.replace(/\/{2,9}/g,"/").split("/");if(a.substr(0,1)=="/"||a.length===0){b.splice(0,1)}a.substr(a.length-1,1)=="/"&&b.splice(b.length-1,1);return b},S=function(a){a=a.split("?");return a.slice(1,a.length).join("?").split("#")[0]},la=function(a,b){if(b=S(b)){params=b.split("&");b=[];for(r=0;r<params.length;r++){var f=params[r].split("=");f[0]==a&&b.push(f.slice(1).join("="))}if(b.length!==0){return b.length!=1?b:b[0]}}},ma=function(a){var b=S(a);a=[];if(b&&b.indexOf("=")!=-1){b=b.split("&");for(var f=0;f<b.length;f++){var h=b[f].split("=")[0];c.inArray(h,a)==-1&&a.push(h)}}return a},na=function(a){a=a.split("#");return a.slice(1,a.length).join("#")},p="jQueryAddress",t="undefined",O="hashchange",ba="change",ca="internalChange",da="externalChange",k=true,l=false,d={autoUpdate:k,crawlable:l,history:k,strict:k,wrap:l},s=c.browser,o=parseFloat(c.browser.version),oa=s.mozilla,E=s.msie,pa=s.opera,D=s.webkit,X=l,j=function(){try{return top.document!==undefined?top:window}catch(a){return window}}(),m=j.document,z=j.history,e=j.location,ua=setInterval,v=setTimeout,V=navigator.userAgent,n,W,N=aa(document),fa=N?N.indexOf("?"):-1,Y=m.title,I=z.length,R=l,ha=l,Z=k,qa=k,T=l,F=[],g=u();if(E){o=parseFloat(V.substr(V.indexOf("MSIE")+4));if(m.documentMode&&m.documentMode!=o){o=m.documentMode!=8?7:8}c(document).bind("propertychange",function(){if(m.title!=Y&&m.title.indexOf("#"+u())!=-1){m.title=Y}})}if(X=oa&&o>=1||E&&o>=6||pa&&o>=9.5||D&&o>=312){for(var r=1;r<I;r++){F.push("")}F.push(g);if(pa){history.navigationMode="compatible"}if(document.readyState=="complete"){var xa=setInterval(function(){if(c.address){ia();clearInterval(xa)}},50)}else{ga();c(ia)}s=H();if(typeof d.state!==t){if(z.pushState){s.substr(0,3)=="/#/"&&e.replace(d.state.replace(/^\/$/,"")+s.substr(2))}else{s!="/"&&s.replace(/^\/#/,"")!=G()&&e.replace(d.state.replace(/^\/$/,"")+"/#"+s)}}c(window).bind("popstate",va).bind("unload",wa)}else{!X&&G()!=""||D&&o<418&&G()!=""&&e.search!=""?e.replace(e.href.substr(0,e.href.indexOf("#"))):ea()}return{bind:function(a,b,f){return y(a,b,f)},init:function(a){return y("init",a)},change:function(a){return y(ba,a)},internalChange:function(a){return y(ca,a)},externalChange:function(a){return y(da,a)},baseURL:function(){var a=e.href;if(a.indexOf("#")!=-1){a=a.substr(0,a.indexOf("#"))}if(/\/$/.test(a)){a=a.substr(0,a.length-1)}return a},autoUpdate:function(a){if(a!==undefined){d.autoUpdate=a;return this}return d.autoUpdate},crawlable:function(a){if(a!==undefined){d.crawlable=a;return this}return d.crawlable},history:function(a){if(a!==undefined){d.history=a;return this}return d.history},state:function(a){if(a!==undefined){d.state=a;return this}return d.state},strict:function(a){if(a!==undefined){d.strict=a;return this}return d.strict},tracker:function(a){if(a!==undefined){d.tracker=a;return this}return d.tracker},wrap:function(a){if(a!==undefined){d.wrap=a;return this}return d.wrap},update:function(){T=k;this.value(g);T=l;return this},encode:function(a){var b=ka(a),f=ma(a),h=S(a),q=na(a),P=a.substr(0,1),L=a.substr(a.length-1),i="";c.each(b,function(w,Q){i+="/"+K(Q)});if(h!==""){i+="?";if(f.length===0){i+=h}else{c.each(f,function(w,Q){w=la(Q,a);if(typeof w!=="string"){c.each(w,function(za,ya){i+=K(Q)+"="+K(ya)+"&"})}else{i+=K(Q)+"="+K(w)+"&"}});i=i.substr(0,i.length-1)}}if(q!==""){i+="#"+K(q)}if(P!="/"&&i.substr(0,1)=="/"){i=i.substr(1)}if(/#|&|\?/.test(L)){i+=L}return i},decode:function(a){return decodeURIComponent(a.replace(/\+/g,"%20"))},title:function(a){if(a!==undefined){v(function(){Y=m.title=a;if(qa&&n&&n.contentWindow&&n.contentWindow.document){n.contentWindow.document.title=a;qa=l}if(!Z&&oa){e.replace(e.href.indexOf("#")!=-1?e.href:e.href+"#")}Z=l},50);return this}return m.title},value:function(a){if(a!==undefined){a=$(this.encode(a),k);if(a=="/"){a=""}if(g==a&&!T){return }Z=k;g=a;if(d.autoUpdate||T){J(k);if(A()){z[d.history?"pushState":"replaceState"]({},"",d.state.replace(/\/$/,"")+(g==""?"/":g))}else{R=k;F[z.length]=g;if(D){if(d.history){e[p][e.pathname]=F.toString();I=z.length+1;if(o<418){if(e.search==""){W.action="#"+B(g,k);W.submit()}}else{if(o<523||g==""){a=m.createEvent("MouseEvents");a.initEvent("click",k,k);var b=m.createElement("a");b.href="#"+B(g,k);b.dispatchEvent(a)}else{e.hash="#"+B(g,k)}}}else{e.replace("#"+B(g,k))}}else{if(g!=u()){if(d.history){e.hash="#"+B(g,k)}else{e.replace("#"+B(g,k))}}}E&&o<8&&d.history&&v(U,50);if(D){v(function(){R=l},1)}else{R=l}}}return this}if(!X){return null}return $(this.decode(g),l)},path:function(a){if(a!==undefined){var b=this.queryString(),f=this.hash();this.value(a+(b?"?"+b:"")+(f?"#"+f:""));return this}return ja(this.value())},pathNames:function(){return ka(this.value())},queryString:function(a){if(a!==undefined){var b=this.hash();this.value(this.path()+(a?"?"+a:"")+(b?"#"+b:""));return this}return S(this.value())},parameter:function(a,b,f){var h,q;if(b!==undefined){var P=this.parameterNames();q=[];for(h=0;h<P.length;h++){var L=P[h],i=this.parameter(L);if(typeof i=="string"){i=[i]}if(L==a){i=b===null||b===""?[]:f?i.concat([b]):[b]}for(var w=0;w<i.length;w++){q.push(L+"="+i[w])}}c.inArray(a,P)==-1&&b!==null&&b!==""&&q.push(a+"="+b);this.queryString(q.join("&"));return this}return la(a,this.value())},parameterNames:function(){return ma(this.value())},hash:function(a){if(a!==undefined){this.value(this.value().split("#")[0]+(a?"#"+a:""));return this}return na(this.value())}}}();c.fn.address=function(x){if(!c(this).attr("address")){var y=function(A){if(c(this).is("a")){var H=x?x.call(this):/address:/.test(c(this).attr("rel"))?c(this).attr("rel").split("address:")[1].split(" ")[0]:typeof c.address.state()!=="undefined"&&c.address.state()!="/"?c(this).attr("href").replace(new RegExp("^(.*"+c.address.state()+"|\\.)"),""):c(this).attr("href").replace(/^(#\!?|\.)/,"");c.address.value(H);A.preventDefault()}};c(this).click(y).live("click",y).submit(function(A){if(c(this).is("form")){var H=x?x.call(this):c(this).attr("action")+"?"+c.address.decode(c(this).serialize());c.address.value(H);A.preventDefault()}}).attr("address",true)}return this}})(jQuery);
/* ColorBox v1.3.9 - a full featured, light-weight, customizable lightbox based on jQuery 1.3
 * c) 2009 Jack Moore - www.colorpowered.com - jack@colorpowered.com
 * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
 */
(function($,window){var defaults={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},colorbox="colorbox",prefix="cbox",event_open=prefix+"_open",event_load=prefix+"_load",event_complete=prefix+"_complete",event_cleanup=prefix+"_cleanup",event_closed=prefix+"_closed",isIE=$.browser.msie&&!$.support.opacity,isIE6=isIE&&$.browser.version<7,event_ie6=prefix+"_IE6",$overlay,$box,$wrap,$content,$topBorder,$leftBorder,$rightBorder,$bottomBorder,$related,$window,$loaded,$loadingBay,$loadingOverlay,$title,$current,$slideshow,$next,$prev,$close,interfaceHeight,interfaceWidth,loadedHeight,loadedWidth,element,bookmark,index,settings,open,active,publicMethod,boxElement=prefix+"Element";function $div(id,css){id=id?' id="'+prefix+id+'"':"";css=css?' style="'+css+'"':"";return $("<div"+id+css+"/>")}function setSize(size,dimension){dimension=dimension==="x"?$window.width():$window.height();return(typeof size==="string")?Math.round((size.match(/%/)?(dimension/100)*parseInt(size,10):parseInt(size,10))):size}function isImage(url){url=$.isFunction(url)?url.call(element):url;return settings.photo||url.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function process(){for(var i in settings){if($.isFunction(settings[i])&&i.substring(0,2)!=="on"){settings[i]=settings[i].call(element)}}settings.rel=settings.rel||element.rel||"nofollow";settings.href=settings.href||$(element).attr("href");settings.title=settings.title||element.title}function launch(elem){element=elem;settings=$.extend({},$(element).data(colorbox));process();if(settings.rel!=="nofollow"){$related=$("."+boxElement).filter(function(){var relRelated=$(this).data(colorbox).rel||this.rel;return(relRelated===settings.rel)});index=$related.index(element);if(index===-1){$related=$related.add(element);index=$related.length-1}}else{$related=$(element);index=0}if(!open){open=active=true;bookmark=element;try{bookmark.blur()}catch(e){}$.event.trigger(event_open);if(settings.onOpen){settings.onOpen.call(element)}$overlay.css({opacity:+settings.opacity,cursor:settings.overlayClose?"pointer":"auto"}).show();settings.w=setSize(settings.initialWidth,"x");settings.h=setSize(settings.initialHeight,"y");publicMethod.position(0);if(isIE6){$window.bind("resize."+event_ie6+" scroll."+event_ie6,function(){$overlay.css({width:$window.width(),height:$window.height(),top:$window.scrollTop(),left:$window.scrollLeft()})}).trigger("scroll."+event_ie6)}}$current.add($prev).add($next).add($slideshow).add($title).hide();$close.html(settings.close).show();publicMethod.slideshow();publicMethod.load()}publicMethod=$.fn[colorbox]=$[colorbox]=function(options,callback){var $this=this;if(!$this[0]&&$this.selector){return $this}options=options||{};if(callback){options.onComplete=callback}if(!$this[0]||$this.selector===undefined){$this=$("<a/>");options.open=true}$this.each(function(){$(this).data(colorbox,$.extend({},$(this).data(colorbox)||defaults,options)).addClass(boxElement)});if(options.open){launch($this[0])}return $this};publicMethod.init=function(){$window=$(window);$box=$div().attr({id:colorbox,"class":isIE?prefix+"IE":""});$overlay=$div("Overlay",isIE6?"position:absolute":"").hide();$wrap=$div("Wrapper");$content=$div("Content").append($loaded=$div("LoadedContent","width:0; height:0"),$loadingOverlay=$div("LoadingOverlay").add($div("LoadingGraphic")),$title=$div("Title"),$current=$div("Current"),$next=$div("Next"),$prev=$div("Previous"),$slideshow=$div("Slideshow"),$close=$div("Close"));$wrap.append($div().append($div("TopLeft"),$topBorder=$div("TopCenter"),$div("TopRight")),$div().append($leftBorder=$div("MiddleLeft"),$content,$rightBorder=$div("MiddleRight")),$div().append($div("BottomLeft"),$bottomBorder=$div("BottomCenter"),$div("BottomRight"))).children().children().css({"float":"left"});$loadingBay=$div(false,"position:absolute; width:9999px; visibility:hidden; display:none");$("body").prepend($overlay,$box.append($wrap,$loadingBay));$content.children().hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")}).addClass("hover");interfaceHeight=$topBorder.height()+$bottomBorder.height()+$content.outerHeight(true)-$content.height();interfaceWidth=$leftBorder.width()+$rightBorder.width()+$content.outerWidth(true)-$content.width();loadedHeight=$loaded.outerHeight(true);loadedWidth=$loaded.outerWidth(true);$box.css({"padding-bottom":interfaceHeight,"padding-right":interfaceWidth}).hide();$next.click(publicMethod.next);$prev.click(publicMethod.prev);$close.click(publicMethod.close);$content.children().removeClass("hover");$("."+boxElement).live("click",function(e){if((e.button!==0&&typeof e.button!=="undefined")||e.ctrlKey||e.shiftKey||e.altKey){return true}else{launch(this);return false}});$overlay.click(function(){if(settings.overlayClose){publicMethod.close()}});$(document).bind("keydown",function(e){if(open&&settings.escKey&&e.keyCode===27){e.preventDefault();publicMethod.close()}if(open&&settings.arrowKey&&!active&&$related[1]){if(e.keyCode===37&&(index||settings.loop)){e.preventDefault();$prev.click()}else{if(e.keyCode===39&&(index<$related.length-1||settings.loop)){e.preventDefault();$next.click()}}}})};publicMethod.remove=function(){$box.add($overlay).remove();$("."+boxElement).die("click").removeData(colorbox).removeClass(boxElement)};publicMethod.position=function(speed,loadedCallback){var animate_speed,posTop=Math.max($window.height()-settings.h-loadedHeight-interfaceHeight,0)/2+$window.scrollTop(),posLeft=Math.max($window.width()-settings.w-loadedWidth-interfaceWidth,0)/2+$window.scrollLeft();animate_speed=($box.width()===settings.w+loadedWidth&&$box.height()===settings.h+loadedHeight)?0:speed;$wrap[0].style.width=$wrap[0].style.height="9999px";function modalDimensions(that){$topBorder[0].style.width=$bottomBorder[0].style.width=$content[0].style.width=that.style.width;$loadingOverlay[0].style.height=$loadingOverlay[1].style.height=$content[0].style.height=$leftBorder[0].style.height=$rightBorder[0].style.height=that.style.height}$box.dequeue().animate({width:settings.w+loadedWidth,height:settings.h+loadedHeight,top:posTop,left:posLeft},{duration:animate_speed,complete:function(){modalDimensions(this);active=false;$wrap[0].style.width=(settings.w+loadedWidth+interfaceWidth)+"px";$wrap[0].style.height=(settings.h+loadedHeight+interfaceHeight)+"px";if(loadedCallback){loadedCallback()}},step:function(){modalDimensions(this)}})};publicMethod.resize=function(options){if(open){options=options||{};if(options.width){settings.w=setSize(options.width,"x")-loadedWidth-interfaceWidth}if(options.innerWidth){settings.w=setSize(options.innerWidth,"x")}$loaded.css({width:settings.w});if(options.height){settings.h=setSize(options.height,"y")-loadedHeight-interfaceHeight}if(options.innerHeight){settings.h=setSize(options.innerHeight,"y")}if(!options.innerHeight&&!options.height){var $child=$loaded.wrapInner("<div style='overflow:auto'></div>").children();settings.h=$child.height();$child.replaceWith($child.children())}$loaded.css({height:settings.h});publicMethod.position(settings.transition==="none"?0:settings.speed)}};publicMethod.prep=function(object){if(!open){return }var photo,speed=settings.transition==="none"?0:settings.speed;$window.unbind("resize."+prefix);$loaded.remove();$loaded=$div("LoadedContent").html(object);function getWidth(){settings.w=settings.w||$loaded.width();settings.w=settings.mw&&settings.mw<settings.w?settings.mw:settings.w;return settings.w}function getHeight(){settings.h=settings.h||$loaded.height();settings.h=settings.mh&&settings.mh<settings.h?settings.mh:settings.h;return settings.h}$loaded.hide().appendTo($loadingBay.show()).css({width:getWidth(),overflow:settings.scrolling?"auto":"hidden"}).css({height:getHeight()}).prependTo($content);$loadingBay.hide();$("#"+prefix+"Photo").css({cssFloat:"none"});if(isIE6){$("select").not($box.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(event_cleanup,function(){this.style.visibility="inherit"})}function setPosition(s){var prev,prevSrc,next,nextSrc,total=$related.length,loop=settings.loop;publicMethod.position(s,function(){function defilter(){if(isIE){$box[0].style.removeAttribute("filter")}}if(!open){return }if(isIE){if(photo){$loaded.fadeIn(100)}}if(settings.iframe){$("<iframe frameborder=0"+(settings.scrolling?"":" scrolling='no'")+(isIE?" allowtransparency='true'":"")+"/>").attr({src:settings.href,name:new Date().getTime()}).appendTo($loaded)}$loaded.show();$title.show().html(settings.title);if(total>1){$current.html(settings.current.replace(/\{current\}/,index+1).replace(/\{total\}/,total)).show();$next[(loop||index<total-1)?"show":"hide"]().html(settings.next);$prev[(loop||index)?"show":"hide"]().html(settings.previous);prev=index?$related[index-1]:$related[total-1];next=index<total-1?$related[index+1]:$related[0];if(settings.slideshow){$slideshow.show();if(index===total-1&&!loop&&$box.is("."+prefix+"Slideshow_on")){$slideshow.click()}}if(settings.preloading){nextSrc=$(next).data(colorbox).href||next.href;prevSrc=$(prev).data(colorbox).href||prev.href;if(isImage(nextSrc)){$("<img/>")[0].src=nextSrc}if(isImage(prevSrc)){$("<img/>")[0].src=prevSrc}}}$loadingOverlay.hide();if(settings.transition==="fade"){$box.fadeTo(speed,1,function(){defilter()})}else{defilter()}$window.bind("resize."+prefix,function(){publicMethod.position(0)});$.event.trigger(event_complete);if(settings.onComplete){settings.onComplete.call(element)}})}if(settings.transition==="fade"){$box.fadeTo(speed,0,function(){setPosition(0)})}else{setPosition(speed)}};publicMethod.load=function(){var href,img,setResize,prep=publicMethod.prep;active=true;element=$related[index];settings=$.extend({},$(element).data(colorbox));process();$.event.trigger(event_load);if(settings.onLoad){settings.onLoad.call(element)}settings.h=settings.height?setSize(settings.height,"y")-loadedHeight-interfaceHeight:settings.innerHeight&&setSize(settings.innerHeight,"y");settings.w=settings.width?setSize(settings.width,"x")-loadedWidth-interfaceWidth:settings.innerWidth&&setSize(settings.innerWidth,"x");settings.mw=settings.w;settings.mh=settings.h;if(settings.maxWidth){settings.mw=setSize(settings.maxWidth,"x")-loadedWidth-interfaceWidth;settings.mw=settings.w&&settings.w<settings.mw?settings.w:settings.mw}if(settings.maxHeight){settings.mh=setSize(settings.maxHeight,"y")-loadedHeight-interfaceHeight;settings.mh=settings.h&&settings.h<settings.mh?settings.h:settings.mh}href=settings.href;$loadingOverlay.show();if(settings.inline){$div("InlineTemp").hide().insertBefore($(href)[0]).bind(event_load+" "+event_cleanup,function(){$(this).replaceWith($loaded.children())});prep($(href))}else{if(settings.iframe){prep(" ")}else{if(settings.html){prep(settings.html)}else{if(isImage(href)){img=new Image();img.onload=function(){var percent;img.onload=null;img.id=prefix+"Photo";$(img).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(settings.scalePhotos){setResize=function(){img.height-=img.height*percent;img.width-=img.width*percent};if(settings.mw&&img.width>settings.mw){percent=(img.width-settings.mw)/img.width;setResize()}if(settings.mh&&img.height>settings.mh){percent=(img.height-settings.mh)/img.height;setResize()}}if(settings.h){img.style.marginTop=Math.max(settings.h-img.height,0)/2+"px"}setTimeout(function(){prep(img)},1);if($related[1]&&(index<$related.length-1||settings.loop)){$(img).css({cursor:"pointer"}).click(publicMethod.next)}if(isIE){img.style.msInterpolationMode="bicubic"}};img.src=href}else{$div().appendTo($loadingBay).load(href,function(data,status,xhr){prep(status==="error"?"Request unsuccessful: "+xhr.statusText:this)})}}}}};publicMethod.next=function(){if(!active){index=index<$related.length-1?index+1:0;publicMethod.load()}};publicMethod.prev=function(){if(!active){index=index?index-1:$related.length-1;publicMethod.load()}};publicMethod.slideshow=function(){var stop,timeOut,className=prefix+"Slideshow_";$slideshow.bind(event_closed,function(){$slideshow.unbind();clearTimeout(timeOut);$box.removeClass(className+"off "+className+"on")});function start(){$slideshow.text(settings.slideshowStop).bind(event_complete,function(){timeOut=setTimeout(publicMethod.next,settings.slideshowSpeed)}).bind(event_load,function(){clearTimeout(timeOut)}).one("click",function(){stop()});$box.removeClass(className+"off").addClass(className+"on")}stop=function(){clearTimeout(timeOut);$slideshow.text(settings.slideshowStart).unbind(event_complete+" "+event_load).one("click",function(){start();timeOut=setTimeout(publicMethod.next,settings.slideshowSpeed)});$box.removeClass(className+"on").addClass(className+"off")};if(settings.slideshow&&$related[1]){if(settings.slideshowAuto){start()}else{stop()}}};publicMethod.close=function(){if(open){open=false;$.event.trigger(event_cleanup);if(settings.onCleanup){settings.onCleanup.call(element)}$window.unbind("."+prefix+" ."+event_ie6);$overlay.fadeTo("fast",0);$box.stop().fadeTo("fast",0,function(){$box.find("iframe").attr("src","about:blank");$loaded.remove();$box.add($overlay).css({opacity:1,cursor:"auto"}).hide();try{bookmark.focus()}catch(e){}setTimeout(function(){$.event.trigger(event_closed);if(settings.onClosed){settings.onClosed.call(element)}},1)})}};publicMethod.element=function(){return $(element)};publicMethod.settings=defaults;$(publicMethod.init)}(jQuery,this));
/*
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 *
*/
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return -c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b}return -c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t+b}return c/2*((t-=2)*t*t+2)+b},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},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t*t+b}return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return -c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0){return b}if(t==d){return b+c}if((t/=d/2)<1){return c/2*Math.pow(2,10*(t-1))+b}return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return -c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1){return -c/2*(Math.sqrt(1-t*t)-1)+b}return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}return -(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d/2)==2){return b+c}if(!p){p=d*(0.3*1.5)}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}if(t<1){return -0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b}return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+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+0.75)+b}else{if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b}}}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2){return jQuery.easing.easeInBounce(x,t*2,0,c,d)*0.5+b}return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*0.5+c*0.5+b}});
/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 *
 */
/*
* hoverIntent
* hoverIntent is currently available for use in all personal or commercial 
* projects under both MIT and GPL licenses. This means that you can choose 
* the license that best suits your project, and use it accordingly.
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:4,interval:100,timeout:300};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}var ev=$.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.mouseover(handleHover).mouseout(handleHover)}})($);
/*
 * jQuery Backstretch
 * Version 1.1.2
 * http://srobbin.com/jquery-plugins/jquery-backstretch/
 *
 * Add a dynamically-resized background image to the page
 *
 * Copyright (c) 2010 Scott Robbin (srobbin.com)
 * Dual licensed under the MIT and GPL licenses.
*/
(function($){$.backstretch=function(src,options,callback){var settings={centeredX:true,centeredY:true,speed:0,itemId:""},rootElement=("onorientationchange" in window)?$(document):$(window),imgRatio,bgImg,bgWidth,bgHeight,bgOffset,bgCSS;if(options&&typeof options=="object"){$.extend(settings,options)}$(document).ready(_init);return this;function _init(){if(src){var container=$("<div />").attr("class","backstretch").attr("id",settings.itemId).css({left:0,top:0,position:"fixed",overflow:"hidden",zIndex:-9999}),img=$("<img />").css({position:"relative",display:"none"}).bind("load",function(e){var self=$(this);imgRatio=$(e.target).width()/$(e.target).height();_adjustBG(function(){self.fadeIn(settings.speed,function(){if(typeof callback=="function"){callback()}})})}).appendTo(container);$("body").prepend(container);img.attr("src",src);$(window).resize(_adjustBG)}}function _adjustBG(fn){try{bgCSS={left:0,top:0};bgWidth=rootElement.width();bgHeight=bgWidth/imgRatio;if(bgHeight>=rootElement.height()){bgOffset=(bgHeight-rootElement.height())/2;if(settings.centeredY){$.extend(bgCSS,{top:"-"+bgOffset+"px"})}}else{bgHeight=rootElement.height();bgWidth=bgHeight*imgRatio;bgOffset=(bgWidth-rootElement.width())/2;if(settings.centeredX){$.extend(bgCSS,{left:"-"+bgOffset+"px"})}}$(".backstretch img").width(bgWidth).height(bgHeight).css(bgCSS)}catch(err){}if(typeof fn=="function"){fn()}}}})(jQuery);(function($){if(typeof OH=="undefined"){var OH={}}OH.globalPublicVars=function(){var config={var1:"1",var2:2};var setVar=function(varName,varData){config[varName]=varData};var getVar=function(varName){return config[varName]};return{setVar:setVar,getVar:getVar}}();OH.IeSniffing=function(){var ieSniff=$.browser.msie,ieVersionSniff=$.browser.version,ie6Sniff=false,ie7Sniff=false,ieType="";var init=function(){if(ieSniff&&ieVersionSniff<7){ieType="IE6"}else{if(ieSniff&&ieVersionSniff==7){ieType="IE7"}}}();return{ieType:ieType}}();OH.ctNavigation=function(){var home=true;var navItems=["about","collection","shops","brandnew","contact"];if($.address.value()=="/"||$.address.value()==""){location.hash="home"}$("#OH_mnCont > ul > li > a, #OH_logo").click(function(event){var el=$(this);if($("div").not(":animated").length){var getPath=el.attr("href").replace(/^#/,"");$.address.value(getPath)}event.preventDefault()});$.address.change(function(event){var pageType=$.address.value();pageType=pageType.replace("/","");if(pageType=="home"&&home==true){var ctHeight=$("#OH_"+pageType).innerHeight();$("#OH_home").hide();$("#OH_"+pageType).prev().addClass("OH_current");$("#OH_"+pageType).show();var imgPath=$("#OH_bg_"+pageType).attr("src");$.backstretch(imgPath,{speed:0});home=false}else{if(pageType=="home"&&home==false){var ctHeight=$("#OH_"+pageType).innerHeight();$("#OH_mnCont .OH_ctBox:visible").fadeOut(500,function(){$(this).parent().animate({height:30},800,"easeOutQuint",function(){$(this).children("a").removeClass("OH_current");$("#OH_"+pageType).prev().addClass("OH_current");$("#OH_"+pageType).css("top",-10).fadeIn("normal")}).end().css({top:-9999+"em"})});$(".backstretch:visible").fadeOut(500,function(){$(this).remove()});var imgPath=$("#OH_bg_"+pageType).attr("src");$.backstretch(imgPath,{speed:0,itemId:"OH_bg_"+pageType})}else{if($.inArray(pageType,navItems)!=-1&&!$("#OH_mnCont .OH_current").length){var ctHeight=$("#OH_"+pageType).innerHeight();$("#OH_home").hide();$("#OH_"+pageType).prev().addClass("OH_current").end().parent().css("height",ctHeight+30);$("#OH_"+pageType).css("top",30).show();$(".backstretch:visible").fadeOut(500,function(){$(this).remove()});var imgPath=$("#OH_bg_"+pageType).attr("src");$.backstretch(imgPath,{speed:0,itemId:"OH_bg_"+pageType});home=false}else{var ctHeight=$("#OH_"+pageType).innerHeight();$("#OH_mnCont .OH_ctBox:visible").fadeOut(500,function(){$(this).parent().animate({height:30},800,"easeOutQuint",function(){$(this).children("a").removeClass("OH_current");$("#OH_"+pageType).prev().addClass("OH_current").end().parent().animate({height:ctHeight+30},800,"easeOutQuint",function(){$("#OH_"+pageType).css("top",30).fadeIn("normal")})}).end().css({top:-9999+"em"})});$(".backstretch:visible").fadeOut(500,function(){$(this).remove()});var imgPath=$("#OH_bg_"+pageType).attr("src");$.backstretch(imgPath,{speed:0,itemId:"OH_bg_"+pageType})}}}})}();OH.cssFixes=function(){$("#OH_clThumbCont li:nth-child(4)").css("margin-left",0);$("#OH_clThumbCont li:gt(2)").css("margin-bottom",0);if($(window).height()<950){$("#OH_dcCont").css("height",$(window).height())}}();OH.imgOverlay=function(){$('#OH_clThumbCont a[rel="OH_gallery"]').colorbox({current:"",previous:"",next:"",close:"",opacity:0.7,title:function(){return $(this).find(".OH_imgDesc").html()}})}();OH.imageInfo=function(){$("#OH_clThumbCont li").hoverIntent(function(){var el=$(this);if(el.find(".OH_imgDesc:not(:animated)").length){el.find(".OH_imgDesc").slideDown(500,"easeOutQuint")}},function(){var el=$(this);el.find(".OH_imgDesc").slideUp(500)})}();OH.footerOverlay=function(){$("#OH_olAnfahrt").colorbox({iframe:true,width:690,height:550,onComplete:function(){$("#cboxTitle").hide()},close:"",opacity:0.7});$("#OH_olImprint").colorbox({iframe:true,width:690,height:550,onComplete:function(){$("#cboxTitle").hide()},close:"",opacity:0.7,title:false});$("#OH_olNewsletter").colorbox({iframe:true,width:670,height:550,onComplete:function(){$("#cboxTitle").hide()},close:"",opacity:0.7,title:false})}()})(jQuery);
