var Cells,OpacOK,wb=99;if(navigator.appVersion.indexOf("MSIE")!=-1){wb=parseFloat(navigator.appVersion.split("MSIE")[1])}function OpacTest(){x=document.getElementById("test");try{if(x.filters&&x.filters[0]){if(typeof x.filters[0].opacity=="number"){x.filters[0].opacity=0}}else{x.style.opacity=0}return 1}catch(a){return 0}}function fade(d,c,a,b,f){if(!d.currentOpacity&&f==1){d.style.opacity=0;return}if(d.FadeInt){window.clearInterval(d.FadeInt)}var e=0;d.FadeInt=window.setInterval(function(){d.currentOpacity=Math.ceil(Math.pow(e/b,1)*(a-c)+c);if(OpacOK){d.style.opacity=d.currentOpacity/100;d.style.filter="alpha(opacity="+d.currentOpacity+")"}else{if(a<50){d.style.backgroundColor="transparent";d.currentOpacity=1}else{d.style.backgroundColor=d.bgc;d.currentOpacity=99}e=b}if(++e>b){window.clearInterval(d.FadeInt);if(f==2){finish(d)}}},15)}function OpacityUp(){this.style.cursor="pointer";if(!this.currentOpacity){this.currentOpacity=0.01}for(var a=0;a<Cells.length;a++){if(Cells[a]==this){fade(this,this.currentOpacity,80,20,1)}else{fade(Cells[a],Cells[a].currentOpacity,0,15,1)}}}function OpacityDown(){for(var a=0;a<Cells.length;a++){fade(Cells[a],Cells[a].currentOpacity,0,15,1)}}function subinit(){OpacOK=OpacTest();Cells=document.getElementById("projects").getElementsByTagName("div");for(var a=0;a<Cells.length;a++){Cells[a].onmouseover=OpacityUp;Cells[a].onmouseout=OpacityDown;Cells[a].currentOpacity=0;Cells[a].bgc="#261f1f";if(!OpacOK){Cells[a].style.backgroundColor="transparent"}Cells[a].style.visibility="visible"}};

