function browserdetect(){var B=navigator.userAgent.toLowerCase();this.isIE=B.indexOf("msie")>-1;this.ieVer=this.isIE?/msie\s(\d\.\d)/.exec(B)[1]:0;this.isMoz=B.indexOf("firefox")!=-1;this.isSafari=B.indexOf("safari")!=-1;this.quirksMode=this.isIE&&(!document.compatMode||document.compatMode.indexOf("BackCompat")>-1);this.isOp="opera" in window;this.isWebKit=B.indexOf("webkit")!=-1;if(this.isIE){this.get_style=function(H,J){if(!(J in H.currentStyle)){return""}var G=/^([\d.]+)(\w*)/.exec(H.currentStyle[J]);if(!G){return H.currentStyle[J]}if(G[1]==0){return"0"}if(G[2]&&G[2]!=="px"){var A=H.style.left;var I=H.runtimeStyle.left;H.runtimeStyle.left=H.currentStyle.left;H.style.left=G[1]+G[2];G[0]=H.style.pixelLeft;H.style.left=A;H.runtimeStyle.left=I}return G[0]}}else{this.get_style=function(A,D){D=D.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return document.defaultView.getComputedStyle(A,"").getPropertyValue(D)}}}var curvyBrowser=new browserdetect;if(curvyBrowser.isIE){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}function curvyCnrSpec(B){this.selectorText=B;this.tlR=this.trR=this.blR=this.brR=0;this.tlu=this.tru=this.blu=this.bru="";this.antiAlias=true}curvyCnrSpec.prototype.setcorner=function(F,G,E,H){if(!F){this.tlR=this.trR=this.blR=this.brR=parseInt(E);this.tlu=this.tru=this.blu=this.bru=H}else{propname=F.charAt(0)+G.charAt(0);this[propname+"R"]=parseInt(E);this[propname+"u"]=H}};curvyCnrSpec.prototype.get=function(H){if(/^(t|b)(l|r)(R|u)$/.test(H)){return this[H]}if(/^(t|b)(l|r)Ru$/.test(H)){var G=H.charAt(0)+H.charAt(1);return this[G+"R"]+this[G+"u"]}if(/^(t|b)Ru?$/.test(H)){var F=H.charAt(0);F+=this[F+"lR"]>this[F+"rR"]?"l":"r";var E=this[F+"R"];if(H.length===3&&H.charAt(2)==="u"){E+=this[F="u"]}return E}throw new Error("Don't recognize property "+H)};curvyCnrSpec.prototype.radiusdiff=function(B){if(B!=="t"&&B!=="b"){throw new Error("Param must be 't' or 'b'")}return Math.abs(this[B+"lR"]-this[B+"rR"])};curvyCnrSpec.prototype.setfrom=function(B){this.tlu=this.tru=this.blu=this.bru="px";if("tl" in B){this.tlR=B.tl.radius}if("tr" in B){this.trR=B.tr.radius}if("bl" in B){this.blR=B.bl.radius}if("br" in B){this.brR=B.br.radius}if("antiAlias" in B){this.antiAlias=B.antiAlias}};curvyCnrSpec.prototype.cloneOn=function(N){var L=["tl","tr","bl","br"];var O=0;var J,P;for(J in L){if(!isNaN(J)){P=this[L[J]+"u"];if(P!==""&&P!=="px"){O=new curvyCnrSpec;break}}}if(!O){O=this}else{var I,K,M=curvyBrowser.get_style(N,"left");for(J in L){if(!isNaN(J)){I=L[J];P=this[I+"u"];K=this[I+"R"];if(P!=="px"){var M=N.style.left;N.style.left=K+P;K=N.style.pixelLeft;N.style.left=M}O[I+"R"]=K;O[I+"u"]="px"}}N.style.left=M}return O};curvyCnrSpec.prototype.radiusSum=function(B){if(B!=="t"&&B!=="b"){throw new Error("Param must be 't' or 'b'")}return this[B+"lR"]+this[B+"rR"]};curvyCnrSpec.prototype.radiusCount=function(C){var D=0;if(this[C+"lR"]){++D}if(this[C+"rR"]){++D}return D};curvyCnrSpec.prototype.cornerNames=function(){var B=[];if(this.tlR){B.push("tl")}if(this.trR){B.push("tr")}if(this.blR){B.push("bl")}if(this.brR){B.push("br")}return B};function operasheet(K){var I=document.styleSheets.item(K).ownerNode.text;I=I.replace(/\/\*(\n|\r|.)*?\*\//g,"");var L=new RegExp("^s*([\\w.#][-\\w.#, ]+)[\\n\\s]*\\{([^}]+border-((top|bottom)-(left|right)-)?radius[^}]*)\\}","mg");var H;this.rules=[];while((H=L.exec(I))!==null){var N=new RegExp("(..)border-((top|bottom)-(left|right)-)?radius:\\s*([\\d.]+)(in|em|px|ex|pt)","g");var M,J=new curvyCnrSpec(H[1]);while((M=N.exec(H[2]))!==null){if(M[1]!=="z-"){J.setcorner(M[3],M[4],M[5],M[6])}}this.rules.push(J)}}operasheet.contains_border_radius=function(B){return/border-((top|bottom)-(left|right)-)?radius/.test(document.styleSheets.item(B).ownerNode.text)};function curvyCorners(){var Q,N,O,L,T;if(typeof arguments[0]!=="object"){throw curvyCorners.newError("First parameter of curvyCorners() must be an object.")}if(arguments[0] instanceof curvyCnrSpec){L=arguments[0];if(!L.selectorText&&typeof arguments[1]==="string"){L.selectorText=arguments[1]}}else{if(typeof arguments[1]!=="object"&&typeof arguments[1]!=="string"){throw curvyCorners.newError("Second parameter of curvyCorners() must be an object or a class name.")}N=arguments[1];if(typeof N!=="string"){N=""}if(N!==""&&N.charAt(0)!=="."&&"autoPad" in arguments[0]){N="."+N}L=new curvyCnrSpec(N);L.setfrom(arguments[0])}if(L.selectorText){T=0;var S=L.selectorText.replace(/\s+$/,"").split(/,\s*/);O=new Array;function V(B){var A=B.split("#");return(A.length===2?"#":"")+A.pop()}for(Q=0;Q<S.length;++Q){var U=V(S[Q]);var R=U.split(" ");switch(U.charAt(0)){case"#":N=R.length===1?U:R[0];N=document.getElementById(N.substr(1));if(N===null){curvyCorners.alert("No object with ID "+U+" exists yet.\nCall curvyCorners(settings, obj) when it is created.")}else{if(R.length===1){O.push(N)}else{O=O.concat(curvyCorners.getElementsByClass(R[1],N))}}break;default:if(R.length===1){O=O.concat(curvyCorners.getElementsByClass(U))}else{var M=curvyCorners.getElementsByClass(R[0]);for(N=0;N<M.length;++N){O=O.concat(curvyCorners.getElementsByClass(R[1],M))}}}}}else{T=1;O=arguments}for(Q=T,N=O.length;Q<N;++Q){if(O[Q]&&(!("IEborderRadius" in O[Q].style)||O[Q].style.IEborderRadius!="set")){if(O[Q].className&&O[Q].className.indexOf("curvyRedraw")!==-1){if(typeof curvyCorners.redrawList==="undefined"){curvyCorners.redrawList=new Array}curvyCorners.redrawList.push({node:O[Q],spec:L,copy:O[Q].cloneNode(false)})}O[Q].style.IEborderRadius="set";var P=new curvyObject(L,O[Q]);P.applyCorners()}}}curvyCorners.prototype.applyCornersToAll=function(){curvyCorners.alert("This function is now redundant. Just call curvyCorners(). See documentation.")};curvyCorners.redraw=function(){if(!curvyBrowser.isOp&&!curvyBrowser.isIE){return}if(!curvyCorners.redrawList){throw curvyCorners.newError("curvyCorners.redraw() has nothing to redraw.")}var J=curvyCorners.bock_redraw;curvyCorners.block_redraw=true;for(var F in curvyCorners.redrawList){if(isNaN(F)){continue}var I=curvyCorners.redrawList[F];if(!I.node.clientWidth){continue}var G=I.copy.cloneNode(false);for(var H=I.node.firstChild;H!=null;H=H.nextSibling){if(H.className==="autoPadDiv"){break}}if(!H){curvyCorners.alert("Couldn't find autoPad DIV");break}I.node.parentNode.replaceChild(G,I.node);while(H.firstChild){G.appendChild(H.removeChild(H.firstChild))}I=new curvyObject(I.spec,I.node=G);I.applyCorners()}curvyCorners.block_redraw=J};curvyCorners.adjust=function(obj,prop,newval){if(curvyBrowser.isOp||curvyBrowser.isIE){if(!curvyCorners.redrawList){throw curvyCorners.newError("curvyCorners.adjust() has nothing to adjust.")}var i,j=curvyCorners.redrawList.length;for(i=0;i<j;++i){if(curvyCorners.redrawList[i].node===obj){break}}if(i===j){throw curvyCorners.newError("Object not redrawable")}obj=curvyCorners.redrawList[i].copy}if(prop.indexOf(".")===-1){obj[prop]=newval}else{eval("obj."+prop+"='"+newval+"'")}};curvyCorners.handleWinResize=function(){if(!curvyCorners.block_redraw){curvyCorners.redraw()}};curvyCorners.setWinResize=function(B){curvyCorners.block_redraw=!B};curvyCorners.newError=function(B){return new Error("curvyCorners Error:\n"+B)};curvyCorners.alert=function(B){if(typeof curvyCornersVerbose==="undefined"||curvyCornersVerbose){}};function curvyObject(){var o;this.box=arguments[1];this.settings=arguments[0];this.topContainer=this.bottomContainer=this.shell=o=null;var u=this.box.clientWidth;if(!u&&curvyBrowser.isIE){this.box.style.zoom=1;u=this.box.clientWidth}if(!u){if(!this.box.parentNode){throw this.newError("box has no parent!")}for(o=this.box;;o=o.parentNode){if(!o||o.tagName==="BODY"){this.applyCorners=function(){};curvyCorners.alert(this.errmsg("zero-width box with no accountable parent","warning"));return}if(o.style.display==="none"){break}}o.style.display="block";u=this.box.clientWidth}if(arguments[0] instanceof curvyCnrSpec){this.spec=arguments[0].cloneOn(this.box)}else{this.spec=new curvyCnrSpec("");this.spec.setfrom(this.settings)}var m=curvyBrowser.get_style(this.box,"borderTopWidth");var t=curvyBrowser.get_style(this.box,"borderBottomWidth");var Ae=curvyBrowser.get_style(this.box,"borderLeftWidth");var Ac=curvyBrowser.get_style(this.box,"borderRightWidth");var s=curvyBrowser.get_style(this.box,"borderTopColor");var Ah=curvyBrowser.get_style(this.box,"borderBottomColor");var Ab=curvyBrowser.get_style(this.box,"borderLeftColor");var Af=curvyBrowser.get_style(this.box,"backgroundColor");var Ad=curvyBrowser.get_style(this.box,"backgroundImage");var g=curvyBrowser.get_style(this.box,"backgroundRepeat");if(this.box.currentStyle&&this.box.currentStyle.backgroundPositionX){var l=curvyBrowser.get_style(this.box,"backgroundPositionX");var j=curvyBrowser.get_style(this.box,"backgroundPositionY")}else{var l=curvyBrowser.get_style(this.box,"backgroundPosition");l=l.split(" ");var j=l[1];l=l[0]}var y=curvyBrowser.get_style(this.box,"position");var h=curvyBrowser.get_style(this.box,"paddingTop");var n=curvyBrowser.get_style(this.box,"paddingBottom");var k=curvyBrowser.get_style(this.box,"paddingLeft");var r=curvyBrowser.get_style(this.box,"paddingRight");var q=curvyBrowser.get_style(this.box,"border");filter=curvyBrowser.ieVer>7?curvyBrowser.get_style(this.box,"filter"):null;var v=this.spec.get("tR");var w=this.spec.get("bR");var d=function(B){if(typeof B==="number"){return B}if(typeof B!=="string"){throw new Error("unexpected styleToNPx type "+typeof B)}var A=/^[-\d.]([a-z]+)$/.exec(B);if(A&&A[1]!="px"){throw new Error("Unexpected unit "+A[1])}if(isNaN(B=parseInt(B))){B=0}return B};var Aa=function(A){return A<=0?"0":A+"px"};try{this.borderWidth=d(m);this.borderWidthB=d(t);this.borderWidthL=d(Ae);this.borderWidthR=d(Ac);this.boxColour=curvyObject.format_colour(Af);this.topPadding=d(h);this.bottomPadding=d(n);this.leftPadding=d(k);this.rightPadding=d(r);this.boxWidth=u;this.boxHeight=this.box.clientHeight;this.borderColour=curvyObject.format_colour(s);this.borderColourB=curvyObject.format_colour(Ah);this.borderColourL=curvyObject.format_colour(Ab);this.borderString=this.borderWidth+"px solid "+this.borderColour;this.borderStringB=this.borderWidthB+"px solid "+this.borderColourB;this.backgroundImage=((Ad!="none")?Ad:"");this.backgroundRepeat=g}catch(f){throw this.newError("getMessage" in f?f.getMessage():f.message)}var Ag=this.boxHeight;var p=u;if(curvyBrowser.isOp){l=d(l);j=d(j);if(l){var x=p+this.borderWidthL+this.borderWidthR;if(l>x){l=x}l=(x/l*100)+"%"}if(j){var x=Ag+this.borderWidth+this.borderWidthB;if(j>x){j=x}j=(x/j*100)+"%"}}if(curvyBrowser.quirksMode){}else{this.boxWidth-=this.leftPadding+this.rightPadding;this.boxHeight-=this.topPadding+this.bottomPadding}this.contentContainer=document.createElement("div");if(filter){this.contentContainer.style.filter=filter}while(this.box.firstChild){this.contentContainer.appendChild(this.box.removeChild(this.box.firstChild))}if(y!="absolute"){this.box.style.position="relative"}this.box.style.padding="0";this.box.style.border=this.box.style.backgroundImage="none";this.box.style.backgroundColor="transparent";this.box.style.width=(p+this.borderWidthL+this.borderWidthR)+"px";this.box.style.height=(Ag+this.borderWidth+this.borderWidthB)+"px";var Ai=document.createElement("div");Ai.style.position="absolute";if(filter){Ai.style.filter=filter}if(curvyBrowser.quirksMode){Ai.style.width=(p+this.borderWidthL+this.borderWidthR)+"px"}else{Ai.style.width=p+"px"}Ai.style.height=Aa(Ag+this.borderWidth+this.borderWidthB-v-w);Ai.style.padding="0";Ai.style.top=v+"px";Ai.style.left="0";if(this.borderWidthL){Ai.style.borderLeft=this.borderWidthL+"px solid "+this.borderColourL}if(this.borderWidth&&!v){Ai.style.borderTop=this.borderWidth+"px solid "+this.borderColour}if(this.borderWidthR){Ai.style.borderRight=this.borderWidthR+"px solid "+this.borderColourL}if(this.borderWidthB&&!w){Ai.style.borderBottom=this.borderWidthB+"px solid "+this.borderColourB}Ai.style.backgroundColor=Af;Ai.style.backgroundImage=this.backgroundImage;Ai.style.backgroundRepeat=this.backgroundRepeat;this.shell=this.box.appendChild(Ai);u=curvyBrowser.get_style(this.shell,"width");if(u===""||u==="auto"||u.indexOf("%")!==-1){throw this.newError("Shell width is "+u)}this.boxWidth=(u!=""&&u!="auto"&&u.indexOf("%")==-1)?parseInt(u):this.shell.clientWidth;this.applyCorners=function(){if(this.backgroundObject){var L=function(An,Ao,Am){if(An===0){return 0}var Ap;if(An==="right"||An==="bottom"){return Am-Ao}if(An==="center"){return(Am-Ao)/2}if(An.indexOf("%")>0){return(Am-Ao)*100/parseInt(An)}return d(An)};this.backgroundPosX=L(l,this.backgroundObject.width,p);this.backgroundPosY=L(j,this.backgroundObject.height,Ag)}else{if(this.backgroundImage){this.backgroundPosX=d(l);this.backgroundPosY=d(j)}}if(v){K=document.createElement("div");K.style.width=this.boxWidth+"px";K.style.fontSize="1px";K.style.overflow="hidden";K.style.position="absolute";K.style.paddingLeft=this.borderWidth+"px";K.style.paddingRight=this.borderWidth+"px";K.style.height=v+"px";K.style.top=-v+"px";K.style.left=-this.borderWidthL+"px";this.topContainer=this.shell.appendChild(K)}if(w){var K=document.createElement("div");K.style.width=this.boxWidth+"px";K.style.fontSize="1px";K.style.overflow="hidden";K.style.position="absolute";K.style.paddingLeft=this.borderWidthB+"px";K.style.paddingRight=this.borderWidthB+"px";K.style.height=w+"px";K.style.bottom=-w+"px";K.style.left=-this.borderWidthL+"px";this.bottomContainer=this.shell.appendChild(K)}var A=this.spec.cornerNames();for(var O in A){if(!isNaN(O)){var R=A[O];var c=this.spec[R+"R"];var I,b,N,V;if(R=="tr"||R=="tl"){I=this.borderWidth;b=this.borderColour;V=this.borderWidth}else{I=this.borderWidthB;b=this.borderColourB;V=this.borderWidthB}N=c-V;var J=document.createElement("div");J.style.height=this.spec.get(R+"Ru");J.style.width=this.spec.get(R+"Ru");J.style.position="absolute";J.style.fontSize="1px";J.style.overflow="hidden";var G,F,E;var Q=filter?parseInt(/alpha\(opacity.(\d+)\)/.exec(filter)[1]):100;for(G=0;G<c;++G){var P=(G+1>=N)?-1:Math.floor(Math.sqrt(Math.pow(N,2)-Math.pow(G+1,2)))-1;if(N!=c){var M=(G>=N)?-1:Math.ceil(Math.sqrt(Math.pow(N,2)-Math.pow(G,2)));var Z=(G+1>=c)?-1:Math.floor(Math.sqrt(Math.pow(c,2)-Math.pow((G+1),2)))-1}var U=(G>=c)?-1:Math.ceil(Math.sqrt(Math.pow(c,2)-Math.pow(G,2)));if(P>-1){this.drawPixel(G,0,this.boxColour,Q,(P+1),J,true,c)}if(N!=c){if(this.spec.antiAlias){for(F=P+1;F<M;++F){if(this.backgroundImage!=""){var W=curvyObject.pixelFraction(G,F,N)*100;this.drawPixel(G,F,b,Q,1,J,W>=30,c)}else{if(this.boxColour!=="transparent"){var C=curvyObject.BlendColour(this.boxColour,b,curvyObject.pixelFraction(G,F,N));this.drawPixel(G,F,C,Q,1,J,false,c)}else{this.drawPixel(G,F,b,Q>>1,1,J,false,c)}}}if(Z>=M){if(M==-1){M=0}this.drawPixel(G,M,b,Q,(Z-M+1),J,false,0)}E=b;F=Z}else{if(Z>P){this.drawPixel(G,(P+1),b,Q,(Z-P),J,false,0)}}}else{E=this.boxColour;F=P}if(this.spec.antiAlias){while(++F<U){this.drawPixel(G,F,E,(curvyObject.pixelFraction(G,F,c)*Q),1,J,V<=0,c)}}}for(var D=0,B=J.childNodes.length;D<B;++D){var H=J.childNodes[D];var Y=parseInt(H.style.top);var a=parseInt(H.style.left);var T=parseInt(H.style.height);if(R=="tl"||R=="bl"){H.style.left=(c-a-1)+"px"}if(R=="tr"||R=="tl"){H.style.top=(c-T-Y)+"px"}H.style.backgroundRepeat=this.backgroundRepeat;if(this.backgroundImage){switch(R){case"tr":H.style.backgroundPosition=(this.backgroundPosX-this.borderWidthL+c-p-a)+"px "+(this.backgroundPosY+T+Y+this.borderWidth-c)+"px";break;case"tl":H.style.backgroundPosition=(this.backgroundPosX-c+a+this.borderWidthL)+"px "+(this.backgroundPosY-c+T+Y+this.borderWidth)+"px";break;case"bl":H.style.backgroundPosition=(this.backgroundPosX-c+a+1+this.borderWidthL)+"px "+(this.backgroundPosY-Ag-this.borderWidth+(curvyBrowser.quirksMode?Y:-Y)+c)+"px";break;case"br":if(curvyBrowser.quirksMode){H.style.backgroundPosition=(this.backgroundPosX+this.borderWidthL-p+c-a)+"px "+(this.backgroundPosY-Ag-this.borderWidth+Y+c)+"px"}else{H.style.backgroundPosition=(this.backgroundPosX-this.borderWidthL-p+c-a)+"px "+(this.backgroundPosY-Ag-this.borderWidth+c-Y)+"px"}}}}switch(R){case"tl":J.style.top=J.style.left="0";this.topContainer.appendChild(J);break;case"tr":J.style.top=J.style.right="0";this.topContainer.appendChild(J);break;case"bl":J.style.bottom=J.style.left="0";this.bottomContainer.appendChild(J);break;case"br":J.style.bottom=J.style.right="0";this.bottomContainer.appendChild(J)}}}var Al={t:this.spec.radiusdiff("t"),b:this.spec.radiusdiff("b")};for(z in Al){if(typeof z==="function"){continue}if(!this.spec.get(z+"R")){continue}if(Al[z]){if(this.backgroundImage&&this.spec.radiusSum(z)!==Al[z]){curvyCorners.alert(this.errmsg("Not supported: unequal non-zero top/bottom radii with background image"))}var Aj=(this.spec[z+"lR"]<this.spec[z+"rR"])?z+"l":z+"r";var S=document.createElement("div");S.style.height=Al[z]+"px";S.style.width=this.spec.get(Aj+"Ru");S.style.position="absolute";S.style.fontSize="1px";S.style.overflow="hidden";S.style.backgroundColor=this.boxColour;switch(Aj){case"tl":S.style.bottom=S.style.left="0";S.style.borderLeft=this.borderString;this.topContainer.appendChild(S);break;case"tr":S.style.bottom=S.style.right="0";S.style.borderRight=this.borderString;this.topContainer.appendChild(S);break;case"bl":S.style.top=S.style.left="0";S.style.borderLeft=this.borderStringB;this.bottomContainer.appendChild(S);break;case"br":S.style.top=S.style.right="0";S.style.borderRight=this.borderStringB;this.bottomContainer.appendChild(S)}}var X=document.createElement("div");if(filter){X.style.filter=filter}X.style.position="relative";X.style.fontSize="1px";X.style.overflow="hidden";X.style.width=this.fillerWidth(z);X.style.backgroundColor=this.boxColour;X.style.backgroundImage=this.backgroundImage;X.style.backgroundRepeat=this.backgroundRepeat;switch(z){case"t":if(this.topContainer){if(curvyBrowser.quirksMode){X.style.height=100+v+"px"}else{X.style.height=100+v-this.borderWidth+"px"}X.style.marginLeft=this.spec.tlR?(this.spec.tlR-this.borderWidthL)+"px":"0";X.style.borderTop=this.borderString;if(this.backgroundImage){var Ak=this.spec.tlR?(this.backgroundPosX-(v-this.borderWidthL))+"px ":"0 ";X.style.backgroundPosition=Ak+this.backgroundPosY+"px";this.shell.style.backgroundPosition=this.backgroundPosX+"px "+(this.backgroundPosY-v+this.borderWidthL)+"px"}this.topContainer.appendChild(X)}break;case"b":if(this.bottomContainer){if(curvyBrowser.quirksMode){X.style.height=w+"px"}else{X.style.height=w-this.borderWidthB+"px"}X.style.marginLeft=this.spec.blR?(this.spec.blR-this.borderWidthL)+"px":"0";X.style.borderBottom=this.borderStringB;if(this.backgroundImage){var Ak=this.spec.blR?(this.backgroundPosX+this.borderWidthL-w)+"px ":this.backgroundPosX+"px ";X.style.backgroundPosition=Ak+(this.backgroundPosY-Ag-this.borderWidth+w)+"px"}this.bottomContainer.appendChild(X)}}}this.contentContainer.style.position="absolute";this.contentContainer.className="autoPadDiv";this.contentContainer.style.left=this.borderWidthL+"px";this.contentContainer.style.paddingTop=this.topPadding+"px";this.contentContainer.style.top=this.borderWidth+"px";this.contentContainer.style.paddingLeft=this.leftPadding+"px";this.contentContainer.style.paddingRight=this.rightPadding+"px";z=p;if(!curvyBrowser.quirksMode){z-=this.leftPadding+this.rightPadding}this.contentContainer.style.width=z+"px";this.contentContainer.style.textAlign=curvyBrowser.get_style(this.box,"textAlign");this.box.style.textAlign="left";this.box.appendChild(this.contentContainer);if(o){o.style.display="none"}};if(this.backgroundImage){l=this.backgroundCheck(l);j=this.backgroundCheck(j);if(this.backgroundObject){this.backgroundObject.holdingElement=this;this.dispatch=this.applyCorners;this.applyCorners=function(){if(this.backgroundObject.complete){this.dispatch()}else{this.backgroundObject.onload=new Function("curvyObject.dispatch(this.holdingElement);")}}}}}curvyObject.prototype.backgroundCheck=function(D){if(D==="top"||D==="left"||parseInt(D)===0){return 0}if(!(/^[-\d.]+px$/.test(D))&&!this.backgroundObject){this.backgroundObject=new Image;var C=function(B){var A=/url\("?([^'"]+)"?\)/.exec(B);return(A?A[1]:B)};this.backgroundObject.src=C(this.backgroundImage)}return D};curvyObject.dispatch=function(B){if("dispatch" in B){B.dispatch()}else{throw B.newError("No dispatch function")}};curvyObject.prototype.drawPixel=function(S,P,T,O,Q,R,L,N){var K=document.createElement("div");K.style.height=Q+"px";K.style.width="1px";K.style.position="absolute";K.style.fontSize="1px";K.style.overflow="hidden";var M=this.spec.get("tR");K.style.backgroundColor=T;if(L&&this.backgroundImage!=""){K.style.backgroundImage=this.backgroundImage;K.style.backgroundPosition="-"+(this.boxWidth-(N-S)+this.borderWidth)+"px -"+((this.boxHeight+M+P)-this.borderWidth)+"px"}if(O!=100){curvyObject.setOpacity(K,O)}K.style.top=P+"px";K.style.left=S+"px";R.appendChild(K)};curvyObject.prototype.fillerWidth=function(C){var D=curvyBrowser.quirksMode?0:this.spec.radiusCount(C)*this.borderWidthL;return(this.boxWidth-this.spec.radiusSum(C)+D)+"px"};curvyObject.prototype.errmsg=function(G,H){var F="\ntag: "+this.box.tagName;if(this.box.id){F+="\nid: "+this.box.id}if(this.box.className){F+="\nclass: "+this.box.className}var E;if((E=this.box.parentNode)===null){F+="\n(box has no parent)"}else{F+="\nParent tag: "+E.tagName;if(E.id){F+="\nParent ID: "+E.id}if(E.className){F+="\nParent class: "+E.className}}if(H===undefined){H="warning"}return"curvyObject "+H+":\n"+G+F};curvyObject.prototype.newError=function(B){return new Error(this.errmsg(B,"exception"))};curvyObject.IntToHex=function(D){var C=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];return C[D>>>4]+""+C[D&15]};curvyObject.BlendColour=function(W,U,R){if(W==="transparent"||U==="transparent"){throw this.newError("Cannot blend with transparent")}if(W.charAt(0)!=="#"){W=curvyObject.format_colour(W)}if(U.charAt(0)!=="#"){U=curvyObject.format_colour(U)}var O=parseInt(W.substr(1,2),16);var V=parseInt(W.substr(3,2),16);var Q=parseInt(W.substr(5,2),16);var N=parseInt(U.substr(1,2),16);var T=parseInt(U.substr(3,2),16);var P=parseInt(U.substr(5,2),16);if(R>1||R<0){R=1}var S=Math.round((O*R)+(N*(1-R)));if(S>255){S=255}if(S<0){S=0}var M=Math.round((V*R)+(T*(1-R)));if(M>255){M=255}if(M<0){M=0}var X=Math.round((Q*R)+(P*(1-R)));if(X>255){X=255}if(X<0){X=0}return"#"+curvyObject.IntToHex(S)+curvyObject.IntToHex(M)+curvyObject.IntToHex(X)};curvyObject.pixelFraction=function(Q,P,T){var S;var N=T*T;var K=new Array(2);var O=new Array(2);var R=0;var L="";var M=Math.sqrt(N-Math.pow(Q,2));if(M>=P&&M<(P+1)){L="Left";K[R]=0;O[R]=M-P;++R}M=Math.sqrt(N-Math.pow(P+1,2));if(M>=Q&&M<(Q+1)){L+="Top";K[R]=M-Q;O[R]=1;++R}M=Math.sqrt(N-Math.pow(Q+1,2));if(M>=P&&M<(P+1)){L+="Right";K[R]=1;O[R]=M-P;++R}M=Math.sqrt(N-Math.pow(P,2));if(M>=Q&&M<(Q+1)){L+="Bottom";K[R]=M-Q;O[R]=0}switch(L){case"LeftRight":S=Math.min(O[0],O[1])+((Math.max(O[0],O[1])-Math.min(O[0],O[1]))/2);break;case"TopRight":S=1-(((1-K[0])*(1-O[1]))/2);break;case"TopBottom":S=Math.min(K[0],K[1])+((Math.max(K[0],K[1])-Math.min(K[0],K[1]))/2);break;case"LeftBottom":S=O[0]*K[1]/2;break;default:S=1}return S};curvyObject.rgb2Array=function(C){var D=C.substring(4,C.indexOf(")"));return D.split(", ")};curvyObject.rgb2Hex=function(I){try{var J=curvyObject.rgb2Array(I);var N=parseInt(J[0]);var L=parseInt(J[1]);var P=parseInt(J[2]);var K="#"+curvyObject.IntToHex(N)+curvyObject.IntToHex(L)+curvyObject.IntToHex(P)}catch(M){var O="getMessage" in M?M.getMessage():M.message;throw new Error("Error ("+O+") converting RGB value to Hex in rgb2Hex")}return K};curvyObject.setOpacity=function(L,I){I=(I==100)?99.999:I;if(curvyBrowser.isSafari&&L.tagName!="IFRAME"){var H=curvyObject.rgb2Array(L.style.backgroundColor);var K=parseInt(H[0]);var J=parseInt(H[1]);var G=parseInt(H[2]);L.style.backgroundColor="rgba("+K+", "+J+", "+G+", "+I/100+")"}else{if(typeof L.style.opacity!=="undefined"){L.style.opacity=I/100}else{if(typeof L.style.MozOpacity!=="undefined"){L.style.MozOpacity=I/100}else{if(typeof L.style.filter!="undefined"){L.style.filter="alpha(opacity="+I+")"}else{if(typeof L.style.KHTMLOpacity!="undefined"){L.style.KHTMLOpacity=I/100}}}}}};function addEvent(H,G,F,E){if(H.addEventListener){H.addEventListener(G,F,E);return true}if(H.attachEvent){return H.attachEvent("on"+G,F)}H["on"+G]=F;return false}curvyObject.getComputedColour=function(K){var L=document.createElement("DIV");L.style.backgroundColor=K;document.body.appendChild(L);if(window.getComputedStyle){var J=document.defaultView.getComputedStyle(L,null).getPropertyValue("background-color");L.parentNode.removeChild(L);if(J.substr(0,3)==="rgb"){J=curvyObject.rgb2Hex(J)}return J}else{var G=document.body.createTextRange();G.moveToElementText(L);G.execCommand("ForeColor",false,K);var H=G.queryCommandValue("ForeColor");var I="rgb("+(H&255)+", "+((H&65280)>>8)+", "+((H&16711680)>>16)+")";L.parentNode.removeChild(L);G=null;return curvyObject.rgb2Hex(I)}};curvyObject.format_colour=function(B){if(B!=""&&B!="transparent"){if(B.substr(0,3)==="rgb"){B=curvyObject.rgb2Hex(B)}else{if(B.charAt(0)!=="#"){B=curvyObject.getComputedColour(B)}else{if(B.length===4){B="#"+B.charAt(1)+B.charAt(1)+B.charAt(2)+B.charAt(2)+B.charAt(3)+B.charAt(3)}}}}return B};curvyCorners.getElementsByClass=function(O,M){var L=new Array;if(M===undefined){M=document}O=O.split(".");var P="*";if(O.length===1){P=O[0];O=false}else{if(O[0]){P=O[0]}O=O[1]}var K,J,I;if(P.charAt(0)==="#"){J=document.getElementById(P.substr(1));if(J){L.push(J)}}else{J=M.getElementsByTagName(P);I=J.length;if(O){var N=new RegExp("(^|\\s)"+O+"(\\s|$)");for(K=0;K<I;++K){if(N.test(J[K].className)){L.push(J[K])}}}else{for(K=0;K<I;++K){L.push(J[K])}}}return L};if(curvyBrowser.isMoz||curvyBrowser.isWebKit){var curvyCornersNoAutoScan=true}else{curvyCorners.scanStyles=function(){function G(B){var A=/^[\d.]+(\w+)$/.exec(B);return A[1]}var J,I,H;if(curvyBrowser.isIE){function F(O){var E=O.style;if(curvyBrowser.ieVer>6){var C=E["-webkit-border-radius"]||0;var N=E["-webkit-border-top-right-radius"]||0;var A=E["-webkit-border-top-left-radius"]||0;var B=E["-webkit-border-bottom-right-radius"]||0;var P=E["-webkit-border-bottom-left-radius"]||0}else{var C=E["webkit-border-radius"]||0;var N=E["webkit-border-top-right-radius"]||0;var A=E["webkit-border-top-left-radius"]||0;var B=E["webkit-border-bottom-right-radius"]||0;var P=E["webkit-border-bottom-left-radius"]||0}if(C||A||N||B||P){var D=new curvyCnrSpec(O.selectorText);if(C){D.setcorner(null,null,parseInt(C),G(C))}else{if(N){D.setcorner("t","r",parseInt(N),G(N))}if(A){D.setcorner("t","l",parseInt(A),G(A))}if(P){D.setcorner("b","l",parseInt(P),G(P))}if(B){D.setcorner("b","r",parseInt(B),G(B))}}curvyCorners(D)}}for(J=0;J<document.styleSheets.length;++J){if(document.styleSheets[J].imports){for(I=0;I<document.styleSheets[J].imports.length;++I){for(H=0;H<document.styleSheets[J].imports[I].rules.length;++H){F(document.styleSheets[J].imports[I].rules[H])}}}for(I=0;I<document.styleSheets[J].rules.length;++I){F(document.styleSheets[J].rules[I])}}}else{if(curvyBrowser.isOp){for(J=0;J<document.styleSheets.length;++J){if(operasheet.contains_border_radius(J)){H=new operasheet(J);for(I in H.rules){if(!isNaN(I)){curvyCorners(H.rules[I])}}}}}else{curvyCorners.alert("Scanstyles does nothing in Webkit/Firefox")}}};curvyCorners.init=function(){if(arguments.callee.done){return}arguments.callee.done=true;if(curvyBrowser.isWebKit&&curvyCorners.init.timer){clearInterval(curvyCorners.init.timer);curvyCorners.init.timer=null}curvyCorners.scanStyles()}}if(typeof curvyCornersNoAutoScan==="undefined"||curvyCornersNoAutoScan===false){if(curvyBrowser.isOp){document.addEventListener("DOMContentLoaded",curvyCorners.init,false)}else{addEvent(window,"load",curvyCorners.init,false)}}var currentPortfolioIndex=0;var $portfolioItems=null;var timeoutID=0;$(document).ready(function(){$("h2, h3, h4, h5, h6,#navigation li a, #footer, #sliderLabel").css("font-face","Square721BoldItalic, sans-serif");$("h1").css("font-face","Square721DmRegular, sans-serif");document.getElementById("ctl00_Fonts").href=document.getElementById("ctl00_Fonts").href;$("#navigation a").reverse().each(function(){if(document.location.href.indexOf($(this).attr("href"))>-1&&document.location.href.indexOf("Landingspage")<0){$(this).parent().addClass("active");return false}});$portfolioItems=$("#slider div.item div");$portfolioItems.eq(currentPortfolioIndex);var B=$portfolioItems.not(":eq("+currentPortfolioIndex+")");var A=$portfolioItems.eq(currentPortfolioIndex);B.hide();A.fadeIn();("h4",B.parent()).hide();("h4",A.parent()).fadeIn();$("#sliderLabel").text((currentPortfolioIndex+1)+"/"+($portfolioItems.length));if($portfolioItems&&$portfolioItems.length>0){timeoutID=setTimeout(nextPortfolioItem,4500)}$("#nextbutton").click(function(C){nextPortfolioItem();C.preventDefault()});$("#tweets").tweet({username:"icompanynl",join_text:"auto",avatar_size:32,count:3,auto_join_text_default:"",auto_join_text_ed:"wij",auto_join_text_ing:"wij zijn",auto_join_text_reply:"wij antwoorden aan",auto_join_text_url:"wij bekijken",loading_text:"Bezig met laden tweets..."})});function nextPortfolioItem(){clearTimeout(timeoutID);currentPortfolioIndex++;currentPortfolioIndex=(currentPortfolioIndex>$portfolioItems.length-1)?0:currentPortfolioIndex;var B=$portfolioItems.not(":eq("+currentPortfolioIndex+")");var A=$portfolioItems.eq(currentPortfolioIndex);B.hide();A.fadeIn(500);("h4",B.parent()).hide();("h4",A.parent()).fadeIn(500);$("#sliderLabel").text((currentPortfolioIndex+1)+"/"+($portfolioItems.length));timeoutID=setTimeout(nextPortfolioItem,4500)}$.fn.reverse=[].reverse;var i=0;function requiredValidator(B,A){if(A.Value!=""){A.IsValid=true;if(i==0){$("#validationPanel").hide()}}else{i++;A.IsValid=false;$("#validationPanel").show()}}function Email_ClientValidate(D,B){var A=/.{1,50}@.{1,50}\..{1,10}/;var C=A.exec(B.Value);var E="#"+D.controltovalidate;if(B.Value!=""&&C){B.IsValid=true;if(i==0){$("#validationPanel").hide()}}else{if(B.Value!=""&&!C){i++;B.IsValid=false;D.errormessage="E-mailadres in onjuist.";$("#validationPanel").show()}else{i++;D.errormessage="E-mailadres is een verplicht veld.";B.IsValid=false;$("#validationPanel").show()}}}(function(A){A.fn.tweet=function(C){var B={username:["seaofclouds"],list:null,avatar_size:null,count:3,intro_text:null,outro_text:null,join_text:null,auto_join_text_default:"i said,",auto_join_text_ed:"i",auto_join_text_ing:"i am",auto_join_text_reply:"i replied to",auto_join_text_url:"i was looking at",loading_text:null,query:null};if(C){A.extend(B,C)}A.fn.extend({linkUrl:function(){var H=[];var G=/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;this.each(function(){H.push(this.replace(G,'<a href="$1">$1</a>'))});return A(H)},linkUser:function(){var H=[];var G=/[\@]+([A-Za-z0-9-_]+)/gi;this.each(function(){H.push(this.replace(G,'<a href="http://twitter.com/$1">@$1</a>'))});return A(H)},linkHash:function(){var H=[];var G=/(?:^| )[\#]+([A-Za-z0-9-_]+)/gi;this.each(function(){H.push(this.replace(G,' <a href="http://search.twitter.com/search?q=&tag=$1&lang=all&from='+B.username.join("%2BOR%2B")+'">#$1</a>'))});return A(H)},capAwesome:function(){var G=[];this.each(function(){G.push(this.replace(/\b(awesome)\b/gi,'<span class="awesome">$1</span>'))});return A(G)},capEpic:function(){var G=[];this.each(function(){G.push(this.replace(/\b(epic)\b/gi,'<span class="epic">$1</span>'))});return A(G)},makeHeart:function(){var G=[];this.each(function(){G.push(this.replace(/(&lt;)+[3]/gi,"<tt class='heart'>&#x2665;</tt>"))});return A(G)}});function E(G){return Date.parse(G.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3"))}function F(G){var I=E(G);var K=(arguments.length>1)?arguments[1]:new Date();var J=parseInt((K.getTime()-I)/1000);var H=function(N,M,L){return(L==1)?(L+" "+N):(L+" "+M)};if(J<60){return"Minder dan een minuut geleden:"}else{if(J<(60*60)){return""+H("minuten","minuten",parseInt(J/60))+" geleden:"}else{if(J<(24*60*60)){return""+H("uur","uur",parseInt(J/3600))+" geleden:"}else{return""+H("dag","dagen",parseInt(J/86400))+" geleden:"}}}}function D(){var G=("https:"==document.location.protocol?"https:":"http:");if(B.list){return G+"//api.twitter.com/1/"+B.username[0]+"/lists/"+B.list+"/statuses.json?per_page="+B.count+"&callback=?"}else{if(B.query==null&&B.username.length==1){return G+"//api.twitter.com/1/statuses/user_timeline.json?screen_name="+B.username[0]+"&count="+B.count+"&callback=?"}else{var H=(B.query||"from:"+B.username.join(" OR from:"));return G+"//search.twitter.com/search.json?&q="+escape(H)+"&rpp="+B.count+"&callback=?"}}}return this.each(function(J,G){var H=A('<ul class="tweet_list">').appendTo(G);var L='<p class="tweet_intro">'+B.intro_text+"</p>";var I='<p class="tweet_outro">'+B.outro_text+"</p>";var K=A('<p class="loading">'+B.loading_text+"</p>");if(typeof(B.username)=="string"){B.username=[B.username]}if(B.loading_text){A(G).append(K)}A.getJSON(D(),function(N){if(B.loading_text){K.remove()}if(B.intro_text){H.before(L)}var M=(N.results||N);A.each(M,function(O,Q){if(B.join_text=="auto"){if(Q.text.match(/^(@([A-Za-z0-9-_]+)) .*/i)){var T=B.auto_join_text_reply}else{if(Q.text.match(/(^\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+) .*/i)){var T=B.auto_join_text_url}else{if(Q.text.match(/^((\w+ed)|just) .*/im)){var T=B.auto_join_text_ed}else{if(Q.text.match(/^(\w*ing) .*/i)){var T=B.auto_join_text_ing}else{var T=B.auto_join_text_default}}}}}else{var T=B.join_text}var U=Q.from_user||Q.user.screen_name;var W=Q.profile_image_url||Q.user.profile_image_url;var S='<span class="tweet_join"> '+T+" </span>";var X=((B.join_text)?S:" ");var V='<a class="tweet_avatar" href="http://twitter.com/'+U+'"><img src="'+W+'" height="'+B.avatar_size+'" width="'+B.avatar_size+'" alt="'+U+'\'s avatar" title="'+U+'\'s avatar" border="0"/></a>';var R=(B.avatar_size?V:"");var P='<span class="tweet_time"><a href="http://twitter.com/'+U+"/statuses/"+Q.id+'" title="view tweet on twitter">'+F(Q.created_at)+"</a></span>";var Y='<span class="tweet_text">'+A([Q.text]).linkUrl().linkUser().linkHash().makeHeart().capAwesome().capEpic()[0]+"</span>";H.append("<li>"+R+P+X+Y+"</li>");H.children("li:first").addClass("tweet_first");H.children("li:odd").addClass("tweet_even");H.children("li:even").addClass("tweet_odd")});if(B.outro_text){H.after(I)}A(G).trigger("loaded").trigger((M.length==0?"empty":"full"))})})}})(jQuery);