var logoy;var logoEffectTimerID1;var logoEffectTimerID2;var logoEffectTimeoutID;function logoEffectInit(target){logoy=0;logoEffectTimerID1=setInterval(function(){logoEffect1(target);},20);}function logoEffect1(target){if(logoy>=-30){logoy--;}else{clearInterval(logoEffectTimerID1);logoy=-30;logoEffectTimeoutID=setTimeout(function(){wait(target);},7500);}target.style.backgroundPosition="0 "+logoy+"px";}function wait(target){clearTimeout(logoEffectTimeoutID);logoEffectTimer2=setInterval(function(){logoEffect2(target);},20);}function logoEffect2(target){if(logoy>=-60){logoy--;}else{clearInterval(logoEffectTimer2);logoy=-60;}target.style.backgroundPosition="0 "+logoy+"px";}var nav=function(target){var supernav=this;this.substance=target;this.posx=-100;this.posy=50;this.timer1;this.timer2;this.timer3;this.timer4;this.substance.onmouseover=function(){clearInterval(supernav.timer3);clearInterval(supernav.timer4);supernav.timer1=setInterval(function(){overEffect1(supernav);},10);};this.substance.onmouseout=function(){clearInterval(supernav.timer1);clearInterval(supernav.timer2);supernav.timer3=setInterval(function(){outEffect3(supernav);},10);};};function overEffect1(target){if(target.substance.parentNode==document.getElementById("currentNav")){clearInterval(target.timer1);}else{target.posx+=4;if(target.posx>=0){clearInterval(target.timer1);target.posx=0;target.timer2=setInterval(function(){overEffect2(target);},10);}target.substance.parentNode.style.backgroundPosition=target.posx+"px 50px";}}function overEffect2(target){target.posy -=10;if(target.posy<=15){clearInterval(target.timer2);target.posy=15;}target.substance.style.backgroundPosition="0px "+target.posy+"px";}function outEffect3(target){if(target.substance.parentNode==document.getElementById("currentNav")){clearInterval(target.timer3);}else{target.posy+=10;if(target.posy>=50){clearInterval(target.timer3);target.posy=50;target.timer4=setInterval(function(){outEffect4(target);},10);}target.substance.style.backgroundPosition="0px "+target.posy+"px";}}function outEffect4(target){target.posx -=10;if(target.posx<=-100){clearInterval(target.timer4);target.posx=-100;}target.substance.parentNode.style.backgroundPosition=target.posx+"px 50px";}window.onload=function(){if(document.URL.match(/blog/i)=="blog"){dp.SyntaxHighlighter.ClipboardSwf="clipboard.swf";dp.SyntaxHighlighter.HighlightAll("code");}}