var swfobject=function(){var Aq="undefined",Az="object",Aa="Shockwave Flash",Ae="ShockwaveFlash.ShockwaveFlash",Ay="application/x-shockwave-flash",Z="SWFObjectExprInst",Au="onreadystatechange",Am=window,AH=document,AB=navigator,Ab=false,Ac=[AF],AM=[],Al=[],Ag=[],AJ,Y,Ar,Ao,Ah=false,AN=false,AL,At,AK=true,Ak=function(){var C=typeof AH.getElementById!=Aq&&typeof AH.getElementsByTagName!=Aq&&typeof AH.createElement!=Aq,G=AB.userAgent.toLowerCase(),J=AB.platform.toLowerCase(),H=J?/win/.test(J):/win/.test(G),A=J?/mac/.test(J):/mac/.test(G),B=/webkit/.test(G)?parseFloat(G.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,I=!+"\v1",E=[0,0,0],F=null;if(typeof AB.plugins!=Aq&&typeof AB.plugins[Aa]==Az){F=AB.plugins[Aa].description;if(F&&!(typeof AB.mimeTypes!=Aq&&AB.mimeTypes[Ay]&&!AB.mimeTypes[Ay].enabledPlugin)){Ab=true;I=false;F=F.replace(/^.*\s+(\S+\s+\S+$)/,"$1");E[0]=parseInt(F.replace(/^(.*)\..*$/,"$1"),10);E[1]=parseInt(F.replace(/^.*\.(.*)\s.*$/,"$1"),10);E[2]=/[a-zA-Z]/.test(F)?parseInt(F.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof Am.ActiveXObject!=Aq){try{var D=new ActiveXObject(Ae);if(D){F=D.GetVariable("$version");if(F){I=true;F=F.split(" ")[1].split(",");E=[parseInt(F[0],10),parseInt(F[1],10),parseInt(F[2],10)]}}}catch(K){}}}return{w3:C,pv:E,wk:B,ie:I,win:H,mac:A}}(),AI=function(){if(!Ak.w3){return}if((typeof AH.readyState!=Aq&&AH.readyState=="complete")||(typeof AH.readyState==Aq&&(AH.getElementsByTagName("body")[0]||AH.body))){AS()}if(!Ah){if(typeof AH.addEventListener!=Aq){AH.addEventListener("DOMContentLoaded",AS,false)}if(Ak.ie&&Ak.win){AH.attachEvent(Au,function(){if(AH.readyState=="complete"){AH.detachEvent(Au,arguments.callee);AS()}});if(Am==top){(function(){if(Ah){return}try{AH.documentElement.doScroll("left")}catch(A){setTimeout(arguments.callee,0);return}AS()})()}}if(Ak.wk){(function(){if(Ah){return}if(!/loaded|complete/.test(AH.readyState)){setTimeout(arguments.callee,0);return}AS()})()}AA(AS)}}();function AS(){if(Ah){return}try{var D=AH.getElementsByTagName("body")[0].appendChild(Ap("span"));D.parentNode.removeChild(D)}catch(A){return}Ah=true;var B=Ac.length;for(var C=0;C<B;C++){Ac[C]()}}function Ai(A){if(Ah){A()}else{Ac[Ac.length]=A}}function AA(B){if(typeof Am.addEventListener!=Aq){Am.addEventListener("load",B,false)}else{if(typeof AH.addEventListener!=Aq){AH.addEventListener("load",B,false)}else{if(typeof Am.attachEvent!=Aq){AG(Am,"onload",B)}else{if(typeof Am.onload=="function"){var A=Am.onload;Am.onload=function(){A();B()}}else{Am.onload=B}}}}}function AF(){if(Ab){Ad()}else{Af()}}function Ad(){var B=AH.getElementsByTagName("body")[0];var A=Ap(Az);A.setAttribute("type",Ay);var D=B.appendChild(A);if(D){var C=0;(function(){if(typeof D.GetVariable!=Aq){var E=D.GetVariable("$version");if(E){E=E.split(" ")[1].split(",");Ak.pv=[parseInt(E[0],10),parseInt(E[1],10),parseInt(E[2],10)]}}else{if(C<10){C++;setTimeout(arguments.callee,10);return}}B.removeChild(A);D=null;Af()})()}else{Af()}}function Af(){var F=AM.length;if(F>0){for(var C=0;C<F;C++){var K=AM[C].id;var G=AM[C].callbackFn;var D={success:false,id:K};if(Ak.pv[0]>0){var I=AP(K);if(I){if(As(AM[C].swfVersion)&&!(Ak.wk&&Ak.wk<312)){AE(K,true);if(G){D.success=true;D.ref=Aw(K);G(D)}}else{if(AM[C].expressInstall&&An()){var B={};B.data=AM[C].expressInstall;B.width=I.getAttribute("width")||"0";B.height=I.getAttribute("height")||"0";if(I.getAttribute("class")){B.styleclass=I.getAttribute("class")}if(I.getAttribute("align")){B.align=I.getAttribute("align")}var H={};var J=I.getElementsByTagName("param");var A=J.length;for(var E=0;E<A;E++){if(J[E].getAttribute("name").toLowerCase()!="movie"){H[J[E].getAttribute("name")]=J[E].getAttribute("value")}}X(B,H,K,G)}else{Ax(I);if(G){G(D)}}}}}else{AE(K,true);if(G){var L=Aw(K);if(L&&typeof L.SetVariable!=Aq){D.success=true;D.ref=L}G(D)}}}}}function Aw(A){var B=null;var C=AP(A);if(C&&C.nodeName=="OBJECT"){if(typeof C.SetVariable!=Aq){B=C}else{var D=C.getElementsByTagName(Az)[0];if(D){B=D}}}return B}function An(){return !AN&&As("6.0.65")&&(Ak.win||Ak.mac)&&!(Ak.wk&&Ak.wk<312)}function X(B,D,F,H){AN=true;Ar=H||null;Ao={success:false,id:F};var E=AP(F);if(E){if(E.nodeName=="OBJECT"){AJ=AT(E);Y=null}else{AJ=E;Y=F}B.id=Z;if(typeof B.width==Aq||(!/%$/.test(B.width)&&parseInt(B.width,10)<310)){B.width="310"}if(typeof B.height==Aq||(!/%$/.test(B.height)&&parseInt(B.height,10)<137)){B.height="137"}AH.title=AH.title.slice(0,47)+" - Flash Player Installation";var C=Ak.ie&&Ak.win?"ActiveX":"PlugIn",A="MMredirectURL="+Am.location.toString().replace(/&/g,"%26")+"&MMplayerType="+C+"&MMdoctitle="+AH.title;if(typeof D.flashvars!=Aq){D.flashvars+="&"+A}else{D.flashvars=A}if(Ak.ie&&Ak.win&&E.readyState!=4){var G=Ap("div");F+="SWFObjectNew";G.setAttribute("id",F);E.parentNode.insertBefore(G,E);E.style.display="none";(function(){if(E.readyState==4){E.parentNode.removeChild(E)}else{setTimeout(arguments.callee,10)}})()}AC(B,D,F)}}function Ax(B){if(Ak.ie&&Ak.win&&B.readyState!=4){var A=Ap("div");B.parentNode.insertBefore(A,B);A.parentNode.replaceChild(AT(B),A);B.style.display="none";(function(){if(B.readyState==4){B.parentNode.removeChild(B)}else{setTimeout(arguments.callee,10)}})()}else{B.parentNode.replaceChild(AT(B),B)}}function AT(F){var A=Ap("div");if(Ak.win&&Ak.ie){A.innerHTML=F.innerHTML}else{var C=F.getElementsByTagName(Az)[0];if(C){var E=C.childNodes;if(E){var B=E.length;for(var D=0;D<B;D++){if(!(E[D].nodeType==1&&E[D].nodeName=="PARAM")&&!(E[D].nodeType==8)){A.appendChild(E[D].cloneNode(true))}}}}}return A}function AC(B,F,K){var J,D=AP(K);if(Ak.wk&&Ak.wk<312){return J}if(D){if(typeof B.id==Aq){B.id=K}if(Ak.ie&&Ak.win){var H="";for(var I in B){if(B[I]!=Object.prototype[I]){if(I.toLowerCase()=="data"){F.movie=B[I]}else{if(I.toLowerCase()=="styleclass"){H+=' class="'+B[I]+'"'}else{if(I.toLowerCase()!="classid"){H+=" "+I+'="'+B[I]+'"'}}}}}var C="";for(var E in F){if(F[E]!=Object.prototype[E]){C+='<param name="'+E+'" value="'+F[E]+'" />'}}D.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+H+">"+C+"</object>";Al[Al.length]=B.id;J=AP(B.id)}else{var L=Ap(Az);L.setAttribute("type",Ay);for(var A in B){if(B[A]!=Object.prototype[A]){if(A.toLowerCase()=="styleclass"){L.setAttribute("class",B[A])}else{if(A.toLowerCase()!="classid"){L.setAttribute(A,B[A])}}}}for(var G in F){if(F[G]!=Object.prototype[G]&&G.toLowerCase()!="movie"){AR(L,G,F[G])}}D.parentNode.replaceChild(L,D);J=L}}return J}function AR(D,B,C){var A=Ap("param");A.setAttribute("name",B);A.setAttribute("value",C);D.appendChild(A)}function Av(B){var A=AP(B);if(A&&A.nodeName=="OBJECT"){if(Ak.ie&&Ak.win){A.style.display="none";(function(){if(A.readyState==4){AO(B)}else{setTimeout(arguments.callee,10)}})()}else{A.parentNode.removeChild(A)}}}function AO(C){var B=AP(C);if(B){for(var A in B){if(typeof B[A]=="function"){B[A]=null}}B.parentNode.removeChild(B)}}function AP(C){var A=null;try{A=AH.getElementById(C)}catch(B){}return A}function Ap(A){return AH.createElement(A)}function AG(C,A,B){C.attachEvent(A,B);Ag[Ag.length]=[C,A,B]}function As(C){var B=Ak.pv,A=C.split(".");A[0]=parseInt(A[0],10);A[1]=parseInt(A[1],10)||0;A[2]=parseInt(A[2],10)||0;return(B[0]>A[0]||(B[0]==A[0]&&B[1]>A[1])||(B[0]==A[0]&&B[1]==A[1]&&B[2]>=A[2]))?true:false}function AD(F,C,E,G){if(Ak.ie&&Ak.mac){return}var A=AH.getElementsByTagName("head")[0];if(!A){return}var B=(E&&typeof E=="string")?E:"screen";if(G){AL=null;At=null}if(!AL||At!=B){var D=Ap("style");D.setAttribute("type","text/css");D.setAttribute("media",B);AL=A.appendChild(D);if(Ak.ie&&Ak.win&&typeof AH.styleSheets!=Aq&&AH.styleSheets.length>0){AL=AH.styleSheets[AH.styleSheets.length-1]}At=B}if(Ak.ie&&Ak.win){if(AL&&typeof AL.addRule==Az){AL.addRule(F,C)}}else{if(AL&&typeof AH.createTextNode!=Aq){AL.appendChild(AH.createTextNode(F+" {"+C+"}"))}}}function AE(C,A){if(!AK){return}var B=A?"visible":"hidden";if(Ah&&AP(C)){AP(C).style.visibility=B}else{AD("#"+C,"visibility:"+B)}}function Aj(B){var C=/[\\\"<>\.;]/;var A=C.exec(B)!=null;return A&&typeof encodeURIComponent!=Aq?encodeURIComponent(B):B}var AQ=function(){if(Ak.ie&&Ak.win){window.attachEvent("onunload",function(){var E=Ag.length;for(var F=0;F<E;F++){Ag[F][0].detachEvent(Ag[F][1],Ag[F][2])}var D=Al.length;for(var A=0;A<D;A++){Av(Al[A])}for(var C in Ak){Ak[C]=null}Ak=null;for(var B in swfobject){swfobject[B]=null}swfobject=null})}}();return{registerObject:function(E,B,A,D){if(Ak.w3&&E&&B){var C={};C.id=E;C.swfVersion=B;C.expressInstall=A;C.callbackFn=D;AM[AM.length]=C;AE(E,false)}else{if(D){D({success:false,id:E})}}},getObjectById:function(A){if(Ak.w3){return Aw(A)}},embedSWF:function(F,G,H,E,J,C,K,D,B,A){var I={success:false,id:G};if(Ak.w3&&!(Ak.wk&&Ak.wk<312)&&F&&G&&H&&E&&J){AE(G,false);Ai(function(){H+="";E+="";var M={};if(B&&typeof B===Az){for(var Q in B){M[Q]=B[Q]}}M.data=F;M.width=H;M.height=E;var P={};if(D&&typeof D===Az){for(var L in D){P[L]=D[L]}}if(K&&typeof K===Az){for(var N in K){if(typeof P.flashvars!=Aq){P.flashvars+="&"+N+"="+K[N]}else{P.flashvars=N+"="+K[N]}}}if(As(J)){var O=AC(M,P,G);if(M.id==G){AE(G,true)}I.success=true;I.ref=O}else{if(C&&An()){M.data=C;X(M,P,G,A);return}else{AE(G,true)}}if(A){A(I)}})}else{if(A){A(I)}}},switchOffAutoHideShow:function(){AK=false},ua:Ak,getFlashPlayerVersion:function(){return{major:Ak.pv[0],minor:Ak.pv[1],release:Ak.pv[2]}},hasFlashPlayerVersion:As,createSWF:function(C,B,A){if(Ak.w3){return AC(C,B,A)}else{return undefined}},showExpressInstall:function(D,A,B,C){if(Ak.w3&&An()){X(D,A,B,C)}},removeSWF:function(A){if(Ak.w3){Av(A)}},createCSS:function(A,D,C,B){if(Ak.w3){AD(A,D,C,B)}},addDomLoadEvent:Ai,addLoadEvent:AA,getQueryParamValue:function(A){var D=AH.location.search||AH.location.hash;if(D){if(/\?/.test(D)){D=D.split("?")[1]}if(A==null){return Aj(D)}var C=D.split("&");for(var B=0;B<C.length;B++){if(C[B].substring(0,C[B].indexOf("="))==A){return Aj(C[B].substring((C[B].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(AN){var A=AP(Z);if(A&&AJ){A.parentNode.replaceChild(AJ,A);if(Y){AE(Y,true);if(Ak.ie&&Ak.win){AJ.style.display="block"}}if(Ar){Ar(Ao)}}AN=false}}}}();jQuery.fn.extend({getUrlParam:function(F){F=escape(unescape(F));var A=new Array();var C=null;if($(this).attr("nodeName")=="#document"){if(window.location.search.search(F)>-1){C=window.location.search.substr(1,window.location.search.length).split("&")}}else{if($(this).attr("src")!="undefined"){var E=$(this).attr("src");if(E.indexOf("?")>-1){var B=E.substr(E.indexOf("?")+1);C=B.split("&")}}else{if($(this).attr("href")!="undefined"){var E=$(this).attr("href");if(E.indexOf("?")>-1){var B=E.substr(E.indexOf("?")+1);C=B.split("&")}}else{return null}}}if(C==null){return null}for(var D=0;D<C.length;D++){if(escape(unescape(C[D].split("=")[0]))==F){A.push(C[D].split("=")[1])}}if(A.length==0){return null}else{if(A.length==1){return A[0]}else{return A}}}});(function(AU,AV,AW){function AP(A){if(!Ai){At=A,Ac(AU.extend(Ao,AU.data(At,AY))),AB=AU(At),Ae=0,Ao.rel!=="nofollow"&&(AB=AU("."+Ak).filter(function(){var C=AU.data(this,AY).rel||this.rel;return C===Ao.rel}),Ae=AB.index(At),Ae===-1&&(AB=AB.add(At),Ae=AB.length-1));if(!Ag){Ag=Ah=!0,AF.show();if(Ao.returnFocus){try{At.blur(),AU(At).one(Af,function(){try{this.focus()}catch(C){}})}catch(B){}}AE.css({opacity:+Ao.opacity,cursor:Ao.overlayClose?"pointer":"auto"}).show(),Ao.w=Aa(Ao.initialWidth,"x"),Ao.h=Aa(Ao.initialHeight,"y"),Aj.position(0),AS&&AC.bind("resize."+AT+" scroll."+AT,function(){AE.css({width:AC.width(),height:AC.height(),top:AC.scrollTop(),left:AC.scrollLeft()})}).trigger("resize."+AT),An(A0,Ao.onOpen),A2.add(Aw).hide(),Am.html(Ao.close).show()}Aj.load(!0)}}function Ad(){var A,B=AZ+"Slideshow_",C="click."+AZ,D,E,F;Ao.slideshow&&AB[1]&&(D=function(){Ay.text(Ao.slideshowStop).unbind(C).bind(AN,function(){if(Ae<AB.length-1||Ao.loop){A=setTimeout(Aj.next,Ao.slideshowSpeed)}}).bind(AM,function(){clearTimeout(A)}).one(C+" "+AO,E),AF.removeClass(B+"off").addClass(B+"on"),A=setTimeout(Aj.next,Ao.slideshowSpeed)},E=function(){clearTimeout(A),Ay.text(Ao.slideshowStart).unbind([AN,AM,AO,C].join(" ")).one(C,D),AF.removeClass(B+"on").addClass(B+"off")},Ao.slideshowAuto?D():E())}function An(A,B){B&&B.call(At),AU.event.trigger(A)}function Ac(A){for(var B in A){AU.isFunction(A[B])&&B.substring(0,2)!=="on"&&(A[B]=A[B].call(At))}A.rel=A.rel||At.rel||"nofollow",A.href=AU.trim(A.href||AU(At).attr("href")),A.title=A.title||At.title}function Ab(A){return Ao.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(A)}function Aa(A,B){B=B==="x"?AC.width():AC.height();return typeof A=="string"?Math.round(/%/.test(A)?B/100*parseInt(A,10):parseInt(A,10)):A}function Al(A,B){var C=AV.createElement("div");A&&(C.id=AZ+A),C.style.cssText=B||!1;return AU(C)}var AX={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0},AY="colorbox",AZ="cbox",A0=AZ+"_open",AM=AZ+"_load",AN=AZ+"_complete",AO=AZ+"_cleanup",Af=AZ+"_closed",AQ=AZ+"_purge",AR=AU.browser.msie&&!AU.support.opacity,AS=AR&&AU.browser.version<7,AT=AZ+"_IE6",AE,AF,AG,AH,AI,AJ,AK,AL,AB,AC,AD,Au,Av,Aw,Ax,Ay,Az,AA,Am,A2,Ao={},Ap,Aq,Ar,As,At,Ae,A1,Ag,Ah,Ai=!1,Aj,Ak=AZ+"Element";Aj=AU.fn[AY]=AU[AY]=function(A,B){var C=this,D;if(!C[0]&&C.selector){return C}A=A||{},B&&(A.onComplete=B);if(!C[0]||C.selector===undefined){C=AU("<a/>"),A.open=!0}C.each(function(){AU.data(this,AY,AU.extend({},AU.data(this,AY)||AX,A)),AU(this).addClass(Ak)}),D=A.open,AU.isFunction(D)&&(D=D.call(C)),D&&AP(C[0]);return C},Aj.init=function(){AC=AU(AW),AF=Al().attr({id:AY,"class":AR?AZ+(AS?"IE6":"IE"):""}),AE=Al("Overlay",AS?"position:absolute":"").hide(),AG=Al("Wrapper"),AH=Al("Content").append(AD=Al("LoadedContent","width:0; height:0; overflow:hidden"),Av=Al("LoadingOverlay").add(Al("LoadingGraphic")),Aw=Al("Title"),Ax=Al("Current"),Az=Al("Next"),AA=Al("Previous"),Ay=Al("Slideshow").bind(A0,Ad),Am=Al("Close")),AG.append(Al().append(Al("TopLeft"),AI=Al("TopCenter"),Al("TopRight")),Al(!1,"clear:left").append(AJ=Al("MiddleLeft"),AH,AK=Al("MiddleRight")),Al(!1,"clear:left").append(Al("BottomLeft"),AL=Al("BottomCenter"),Al("BottomRight"))).children().children().css({"float":"left"}),Au=Al(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),AU("body").prepend(AE,AF.append(AG,Au)),AH.children().hover(function(){AU(this).addClass("hover")},function(){AU(this).removeClass("hover")}).addClass("hover"),Ap=AI.height()+AL.height()+AH.outerHeight(!0)-AH.height(),Aq=AJ.width()+AK.width()+AH.outerWidth(!0)-AH.width(),Ar=AD.outerHeight(!0),As=AD.outerWidth(!0),AF.css({"padding-bottom":Ap,"padding-right":Aq}).hide(),Az.click(function(){Aj.next()}),AA.click(function(){Aj.prev()}),Am.click(function(){Aj.close()}),A2=Az.add(AA).add(Ax).add(Ay),AH.children().removeClass("hover"),AU("."+Ak).live("click",function(A){A.button!==0&&typeof A.button!="undefined"||A.ctrlKey||A.shiftKey||A.altKey||(A.preventDefault(),AP(this))}),AE.click(function(){Ao.overlayClose&&Aj.close()}),AU(AV).bind("keydown."+AZ,function(A){var B=A.keyCode;Ag&&Ao.escKey&&B===27&&(A.preventDefault(),Aj.close()),Ag&&Ao.arrowKey&&AB[1]&&(B===37?(A.preventDefault(),AA.click()):B===39&&(A.preventDefault(),Az.click()))})},Aj.remove=function(){AF.add(AE).remove(),AU("."+Ak).die("click").removeData(AY).removeClass(Ak)},Aj.position=function(A,B){function F(G){AI[0].style.width=AL[0].style.width=AH[0].style.width=G.style.width,Av[0].style.height=Av[1].style.height=AH[0].style.height=AJ[0].style.height=AK[0].style.height=G.style.height}var C,D=Math.max(AV.documentElement.clientHeight-Ao.h-Ar-Ap,0)/2+AC.scrollTop(),E=Math.max(AC.width()-Ao.w-As-Aq,0)/2+AC.scrollLeft();C=AF.width()===Ao.w+As&&AF.height()===Ao.h+Ar?0:A,AG[0].style.width=AG[0].style.height="9999px",AF.dequeue().animate({width:Ao.w+As,height:Ao.h+Ar,top:D,left:E},{duration:C,complete:function(){F(this),Ah=!1,AG[0].style.width=Ao.w+As+Aq+"px",AG[0].style.height=Ao.h+Ar+Ap+"px",B&&B()},step:function(){F(this)}})},Aj.resize=function(A){if(Ag){A=A||{},A.width&&(Ao.w=Aa(A.width,"x")-As-Aq),A.innerWidth&&(Ao.w=Aa(A.innerWidth,"x")),AD.css({width:Ao.w}),A.height&&(Ao.h=Aa(A.height,"y")-Ar-Ap),A.innerHeight&&(Ao.h=Aa(A.innerHeight,"y"));if(!A.innerHeight&&!A.height){var B=AD.wrapInner("<div style='overflow:auto'></div>").children();Ao.h=B.height(),B.replaceWith(B.children())}AD.css({height:Ao.h}),Aj.position(Ao.transition==="none"?0:Ao.speed)}},Aj.prep=function(B){function C(F){Aj.position(F,function(){var H,J,M,I,K=AB.length,L,G;!Ag||(G=function(){Av.hide(),An(AN,Ao.onComplete)},AR&&A1&&AD.fadeIn(100),Aw.html(Ao.title).add(AD).show(),K>1?(typeof Ao.current=="string"&&Ax.html(Ao.current.replace(/\{current\}/,Ae+1).replace(/\{total\}/,K)).show(),Az[Ao.loop||Ae<K-1?"show":"hide"]().html(Ao.next),AA[Ao.loop||Ae?"show":"hide"]().html(Ao.previous),H=Ae?AB[Ae-1]:AB[K-1],M=Ae<K-1?AB[Ae+1]:AB[0],Ao.slideshow&&Ay.show(),Ao.preloading&&(I=AU.data(M,AY).href||M.href,J=AU.data(H,AY).href||H.href,I=AU.isFunction(I)?I.call(M):I,J=AU.isFunction(J)?J.call(H):J,Ab(I)&&(AU("<img/>")[0].src=I),Ab(J)&&(AU("<img/>")[0].src=J))):A2.hide(),Ao.iframe?(L=AU("<iframe/>").addClass(AZ+"Iframe")[0],Ao.fastIframe?G():AU(L).load(G),L.name=AZ+ +(new Date),L.src=Ao.href,Ao.scrolling||(L.scrolling="no"),AR&&(L.frameBorder=0,L.allowTransparency="true"),AU(L).appendTo(AD).one(AQ,function(){L.src="//about:blank"})):G(),Ao.transition==="fade"?AF.fadeTo(A,1,function(){AF[0].style.filter=""}):AF[0].style.filter="",AC.bind("resize."+AZ,function(){Aj.position(0)}))})}function E(){Ao.h=Ao.h||AD.height(),Ao.h=Ao.mh&&Ao.mh<Ao.h?Ao.mh:Ao.h;return Ao.h}function D(){Ao.w=Ao.w||AD.width(),Ao.w=Ao.mw&&Ao.mw<Ao.w?Ao.mw:Ao.w;return Ao.w}if(!!Ag){var A=Ao.transition==="none"?0:Ao.speed;AC.unbind("resize."+AZ),AD.remove(),AD=Al("LoadedContent").html(B),AD.hide().appendTo(Au.show()).css({width:D(),overflow:Ao.scrolling?"auto":"hidden"}).css({height:E()}).prependTo(AH),Au.hide(),AU(A1).css({"float":"none"}),AS&&AU("select").not(AF.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(AO,function(){this.style.visibility="inherit"}),Ao.transition==="fade"?AF.fadeTo(A,0,function(){C(0)}):C(A)}},Aj.load=function(A){var B,C,D=Aj.prep;Ah=!0,A1=!1,At=AB[Ae],A||Ac(AU.extend(Ao,AU.data(At,AY))),An(AQ),An(AM,Ao.onLoad),Ao.h=Ao.height?Aa(Ao.height,"y")-Ar-Ap:Ao.innerHeight&&Aa(Ao.innerHeight,"y"),Ao.w=Ao.width?Aa(Ao.width,"x")-As-Aq:Ao.innerWidth&&Aa(Ao.innerWidth,"x"),Ao.mw=Ao.w,Ao.mh=Ao.h,Ao.maxWidth&&(Ao.mw=Aa(Ao.maxWidth,"x")-As-Aq,Ao.mw=Ao.w&&Ao.w<Ao.mw?Ao.w:Ao.mw),Ao.maxHeight&&(Ao.mh=Aa(Ao.maxHeight,"y")-Ar-Ap,Ao.mh=Ao.h&&Ao.h<Ao.mh?Ao.h:Ao.mh),B=Ao.href,Av.show(),Ao.inline?(Al().hide().insertBefore(AU(B)[0]).one(AQ,function(){AU(this).replaceWith(AD.children())}),D(AU(B))):Ao.iframe?D(" "):Ao.html?D(Ao.html):Ab(B)?(AU(A1=new Image).addClass(AZ+"Photo").error(function(){Ao.title=!1,D(Al("Error").text("This image could not be loaded"))}).load(function(){var E;A1.onload=null,Ao.scalePhotos&&(C=function(){A1.height-=A1.height*E,A1.width-=A1.width*E},Ao.mw&&A1.width>Ao.mw&&(E=(A1.width-Ao.mw)/A1.width,C()),Ao.mh&&A1.height>Ao.mh&&(E=(A1.height-Ao.mh)/A1.height,C())),Ao.h&&(A1.style.marginTop=Math.max(Ao.h-A1.height,0)/2+"px"),AB[1]&&(Ae<AB.length-1||Ao.loop)&&(A1.style.cursor="pointer",A1.onclick=function(){Aj.next()}),AR&&(A1.style.msInterpolationMode="bicubic"),setTimeout(function(){D(A1)},1)}),setTimeout(function(){A1.src=B},1)):B&&Au.load(B,function(E,F,G){D(F==="error"?Al("Error").text("Request unsuccessful: "+G.statusText):AU(this).contents())})},Aj.next=function(){!Ah&&AB[1]&&(Ae<AB.length-1||Ao.loop)&&(Ae=Ae<AB.length-1?Ae+1:0,Aj.load())},Aj.prev=function(){!Ah&&AB[1]&&(Ae||Ao.loop)&&(Ae=Ae?Ae-1:AB.length-1,Aj.load())},Aj.close=function(){Ag&&!Ai&&(Ai=!0,Ag=!1,An(AO,Ao.onCleanup),AC.unbind("."+AZ+" ."+AT),AE.fadeTo(200,0),AF.stop().fadeTo(300,0,function(){AF.add(AE).css({opacity:1,cursor:"auto"}).hide(),An(AQ),AD.remove(),setTimeout(function(){Ai=!1,An(Af,Ao.onClosed)},1)}))},Aj.element=function(){return AU(At)},Aj.settings=AX,AU(Aj.init)})(jQuery,document,this);function printRecepy(A){printWin=window.open("/Recepten/ReceptPrinten?rid="+A,"printrecept","status=0,toolbar=0,menubar=0,directories=0,resizable=1,scrollbars=1,height=700,width=800");printWin.print();return false}function checkColumnHeights(){var A=$("#cleft");var E=$("#cright");if(A.length>0&&E.length>0){var C=A.height();var D=E.height();var F;var B;if(C>D){F="dnn_ContentPane";B=C}$modules=$("#"+F+" > div");setSameHeight($modules,B)}}function setSameHeight(A,F){var C=0;var E=A.filter(":last");if(A.length>1){A=A.filter(":lt("+(A.length-1)+")");A.each(function(){C=C+parseInt($(this).outerHeight(true));if($.browser.msie&&$.browser.version=="8.0"){C=C}})}var B=returnNumber(E.css("padding-top"))+returnNumber(E.css("padding-bottom"))+returnNumber(E.css("margin-top"))+returnNumber(E.css("margin-bottom"));var D=F-C-B;if(!isNaN(D)){E.height(D)}}function NewWindow(C,B,A,D){if(D==0){window.open(C,"Struik","toolbar=no, location=no, scrollbars=yes, status=no, menubar=no, width="+B+", height="+A+", top=30, left=30")}else{window.open(C,"Struik","toolbar=yes, location=yes, scrollbars=yes, status=yes, menubar=yes, resizable, yes, width="+B+", height="+A+", top=0, left=0")}}function FillAddressFields(){$("input.autoFillWhenEmpty").each(function(){if($(this).val()==""){$(this).val("-")}})}function returnNumber(B){var A=parseInt(B);if(isNaN(A)){A=parseInt(0)}return A}function openWebsite(B){if(B.selectedIndex>0){var A=B.options[B.selectedIndex].value;if(A.substring(0,7)!="http://"){A="http://"+A}window.open(A)}}function goTo(A){window.location=A}Cufon.replace("h1, h2, h3, .SansiSoft, #productNavigation a, #productSubNavigation a, #backTo",{fontFamily:"SansaSoft"});jQuery(document).ready(function(B){if(B("#productSubNavigation").length>0){var A=B("#productSubNavigation a");A.click(function(C){if(B(this).attr("href")=="#"){var D=B(this).attr("id");D=D.replace("link_","#");B("#ingredients, #nutricions, #allergies").hide();A.removeAttr("style");B(this).css("text-decoration","underline");B(D).fadeIn();C.preventDefault()}})}});jQuery(window).load(checkColumnHeights);
