var fps=40;function slideUp(a,b,c){if(a){j=0;oDiv=document.getElementById(a);startY=b;approxSteps=fps*(c/1000);delay=c/approxSteps;sinInc=(Math.PI/2)/approxSteps;moveY=1}if(j<=approxSteps){var d=(startY+moveY)-Math.ceil(Math.sin(j*sinInc)*startY);oDiv.style.height=d+"px";j++;setTimeout("slideUp()",delay)}else{oDiv.style.display="none";oDiv.style.height=startY;return}}function slideDown(a,b,c){if(a){j=0;oDiv=document.getElementById(a);startY=1;approxSteps=fps*(c/1000);delay=c/approxSteps;sinInc=(Math.PI/2)/approxSteps;moveY=b}if(j<=approxSteps){var d=startY+Math.ceil(Math.sin(j*sinInc)*moveY);oDiv.style.height=d+"px";j++;setTimeout("slideDown()",delay)}else{return}}function opacity(g,e,a,b,c){var d=Math.round(b/100);var f=0;if(e>a){for(i=e;i>=a;i--){setTimeout("changeOpac("+i+",'"+g+"',"+c+")",(f*d));f++}}else{if(e<a){for(i=e;i<=a;i++){setTimeout("changeOpac("+i+",'"+g+"',"+c+")",(f*d));f++}}}}function hideObject(a){document.getElementById(a).style.display="none"}function changeOpac(b,d,c){if(document.getElementById(d)){var a=document.getElementById(d).style;a.opacity=(b/100);a.MozOpacity=(b/100);a.KhtmlOpacity=(b/100);a.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+b+")";if(b==0&&c){hideObject(d)}if(b==100){resetOpac(d)}}}function resetOpac(b){var a=document.getElementById(b).style;a.opacity="";a.MozOpacity="";a.KhtmlOpacity="";a.filter="";a.display="block"};