document.getElementById('counters').getElementsByTagName('A')[1].title='';
uc = document.getElementById('counters').getElementsByTagName('IMG')[1];
uc.style.height='29px';
uc.style.width='29px';
uc.style.border='1px solid black';



var wrapper,portfolio,loader,IE;IE=/*@cc_on!@*/false;wrapper=G("wrapper");portfolio=G("portfolio");loader=G("loader");centered();pageSwitch();if(portfolio){var inside=G("inside");var div=document.createElement("DIV");div=inside.cloneNode(true);div.style.cssText="position:absolute;top:-10000px;left:-10000px;";document.body.appendChild(div);var i=new Array();var z=0;var timer=setInterval(function(){i[z]=div.offsetHeight;if(i[z]==i[z-1]&&i[z]==i[z-2]&&i[z]==i[z-3]){clearInterval(timer);document.body.removeChild(div);slider()}z++},100)}function G(A){return document.getElementById(A)}function addHandler(A,C,B){if(A.addEventListener){A.addEventListener(C,B,false)}else{if(A.attachEvent){A.attachEvent("on"+C,B)}else{A["on"+C]=B}}}function client(B,A){if(B=="width"){return document.compatMode=="CSS1Compat"&&!window.opera?document.documentElement.clientWidth:document.body.clientWidth}if(B=="height"){return document.compatMode=="CSS1Compat"&&!window.opera?document.documentElement.clientHeight:document.body.clientHeight}if(B=="tscroll"){return document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop}if(B=="lscroll"){return document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft}if(B=="X"){return IE?window.evt.clientX:A.clientX}if(B=="Y"){return IE?window.evt.clientY:A.clientY}}function animation(D,B,F,H,C,E,J){var A=new Date().getTime();function I(K){if(E=="simple"){return K}else{if(E=="smooth"){function L(N){return Math.pow(N,2)}if(K<0.5){return L(2*K)/2}else{return(2-L(2*(1-K)))/2}}else{if(E=="jump"){function M(P){for(var O=0,N=1;1;O+=N,N/=2){if(P>=(7-4*O)/11){return -Math.pow((11-6*O-11*P)/4,2)+Math.pow(N,2)}}}return 1-M(1-K)}}}}setTimeout(function(){var M=(new Date().getTime())-A;var L=M/C;var K=(H-F)*I(L)+F;D.style[B]=K+"px";if(L<1){setTimeout(arguments.callee,10)}else{D.style[B]=H+"px";J()}},10)}function fade(B,F,A,E){if(IE){D=B.style.filter.replace(/.*opacity=([0-9]*).*/,"$1");if(!D){D=100}D=parseFloat(D)}else{var D=B.style.opacity;if(D==""){D=1}D=parseFloat(D);F=F/100}var C=new Date().getTime();setTimeout(function(){var J=(new Date().getTime())-C;var I=J/A;var H=(F-D)*I+D;if(IE){B.style.filter="alpha(opacity="+H+")"}else{B.style.opacity=H}if(I<1){setTimeout(arguments.callee,10)}else{if(IE){B.style.filter="alpha(opacity="+F+")"}else{B.style.opacity=F}if(E){E()}}},10)}function centered(){var A=client("width");var B=client("height");wrapper.style.top=B>734?parseInt((B-734)/2)+"px":0;wrapper.style.left=A>786?parseInt((A-786)/2)+"px":0;if(portfolio){portfolio.style.left=A>764?(A-764)/2+"px":0}window.onresize=centered}function folio(A,B){if(A=="show"){portfolio.style.visibility="visible";animation(portfolio,"top",-portfolio.offsetHeight,0,1500,"smooth")}else{animation(portfolio,"top",parseInt(portfolio.style.top),-portfolio.offsetHeight,800,"smooth",function(){portfolio.style.visibility="hidden";portfolio.style.top="";B()})}}function showWork(A){document.location.hash=A;folio("",function(){var E=document.createElement("DIV");var C='<img src="images/folio_devider.jpg" style="margin:13px -20px"/>'+G(A).innerHTML;E.innerHTML=C;E.style.cssText="position:absolute;top:-10000px;left:-10000px;";document.body.appendChild(E);var B=new Array();var D=0;fade(loader,100,300,function(){var F=setInterval(function(){B[D]=E.offsetHeight;if(B[D]==B[D-1]&&B[D]==B[D-2]&&B[D]==B[D-3]){clearInterval(F);document.body.removeChild(E);G("folioResult").innerHTML=C;folio("show");fade(loader,0,300)}D++},50)})})}function pageSwitch(){var B=document.location.search;var A=document.location.hash;var C=B?B.replace(/\?/,""):"main";if(C=="portfolio"){G("main").style.display="block";if(A){showWork(A.replace(/\#/,""))}else{folio("show")}}else{G(C).style.display="block"}}function slider(){var K=20;var B=G("outside");var C=G("inside");var A=G("slider");var L=G("slider_bar");var E;var H=parseInt(B.offsetHeight*100/C.offsetHeight);A.style.height=H>100?100+"%":(H<12?12:H)+"%";A.innerHTML='<div style="position:absolute;background:url(images/p_top.gif) no-repeat;top:0;height:8px;width:17px;font-size:1px;"></div><div style="position:absolute;top:8px;bottom:8px;background:url(images/dots.gif) no-repeat center;width:17px;"></div><div style="margin-bottom:-1px;position:absolute;background:url(images/p_bot.gif);bottom:0;height:8px;width:17px;font-size:1px;"></div>';function J(M){if(M=="curs"){return parseInt(C.style.marginTop)}if(M=="woh"){return B.offsetHeight}if(M=="ioh"){return C.offsetHeight}if(M=="minim"){return L.offsetHeight-A.offsetHeight}if(M=="maxim"){return C.offsetHeight-B.offsetHeight}}function F(P){var O=J("curs");var M=J("woh");var N=J("ioh");if(P<0&&-O+M<=N){C.style.marginTop=O-((N-(-O)-M)>=K?K:(N-(-O)-M))+"px"}else{if(O<0){C.style.marginTop=(-O>=K?O+K:0)+"px"}}D()}function I(M){var N=0;if(!M){M=window.event}if(M.wheelDelta){N=M.wheelDelta/120}else{if(M.detail){N=-M.detail/3}}if(N){F(N)}if(M.preventDefault){M.preventDefault()}M.returnValue=false}document.body.onmouseup=function(){E=false};if(window.addEventListener){B.addEventListener("DOMMouseScroll",I,false)}B.onmousewheel=I;function D(){A.style.top=Math.round(J("minim")/J("maxim")*-J("curs"))+"px"}A.onmousedown=function(P){var O=A.offsetTop;if(!window.event){P.preventDefault();y=P.clientY}else{y=window.event.clientY}var N=J("minim");var M=J("maxim");E=true;document.onmousemove=function(R){if(!window.event){cury=R.clientY}else{cury=window.event.clientY}var Q=Math.round(O+cury-y);if(E&&Q>=0&&Q<=N){A.style.top=Q+"px";C.style.marginTop=Math.round(M/N*-Q)+"px"}}}}function check(E){var C=G(E);var B=C.rows;var D=C.scrollHeight;var A=C.clientHeight;if(D>A&&B!=-1){C.rows=B+1;check(E)}}function insertBB(C){var D,B,E,F,A;E=G("message");E.focus();if(document.selection){D=E.document.selection.createRange();D.text="[sayto]"+C+"[/sayto], "}else{if(typeof (E.selectionStart)=="number"){F=E.selectionStart;A=E.selectionEnd;B="[sayto]"+C+"[/sayto], ";E.value=E.value.substr(0,F)+B+E.value.substr(A)}}};