if((window.ActiveXObject)||(document.childNodes&&!document.all&&!navigator.taintEnabled)||(document.getBoxObjectFor!=null)||window.opera)/*@cc_on @if (@_win32 && @_jscript_version > 5.5) @*/{
function getScroll(){var e=new Object();var n,m,l,f,c,b,d,a,i,g,k,j,h,q,p,o;if(document.documentElement){n=document.documentElement.scrollLeft||0;f=document.documentElement.scrollTop||0;d=document.documentElement.scrollWidth||0;i=document.documentElement.scrollHeight||0;k=document.documentElement.clientWidth||0;q=document.documentElement.clientHeight||0}if(document.body){m=document.body.scrollLeft||0;c=document.body.scrollTop||0;a=document.body.scrollWidth||0;g=document.body.scrollHeight||0;j=document.body.clientWidth||0;p=document.body.clientHeight||0}l=window.scrollX||0;b=window.scrollY||0;h=window.innerWidth;o=window.innerHeight;e.scrollX=Math.max(n,Math.max(m,l));e.scrollY=Math.max(f,Math.max(c,b));e.docW=Math.max(d,a);e.docH=Math.max(i,g);e.winW=Math.min(k,Math.min(j,h));e.winH=Math.min(q,Math.min(p,o));return e}$.fn.goElementScroll=function(){var e=800;var d=(new Date).getTime();var l,k;var h=getScroll();var b=h.docW-h.winW;var a=h.docH-h.winH;var g=$(this).attr("href");var j=g.split("#")[1];var i=0;var c=0;var f;if($("#"+j).length>0){f=$("#"+j).offset()}else{f=$('[name="'+j+'"]').offset()}if(f){i=f.left;c=f.top}else{i=0;c=0}l=i;k=c;if(l>b){l=b}if(k>a){k=a}var n=l-h.scrollX;var m=k-h.scrollY;goScroll(l,k,n,m,d,e,h.scrollX,h.scrollY,g);return false};goScroll=function(i,h,m,l,d,f,b,a,g){var o=(new Date).getTime()+10;var e=o-d;var c=e/f;if(o>=d+f){window.scrollTo(i,h);if(navigator.appName.indexOf("netscape")){}else{location.href=g}}else{var k=(-(Math.cos(c*Math.PI)/2)+0.5)*m+b;var j=(-(Math.cos(c*Math.PI)/2)+0.5)*l+a;window.scrollTo(k,j);window.setTimeout("goScroll("+i+","+h+","+m+","+l+","+d+","+f+","+b+","+a+",'"+g+"')",20)}return false};$(document).ready(function(){$("a[href^='#']").click(function(){$(this).goElementScroll();return false})})};//@end