if(document.getElementById('copyyear')){document.getElementById('copyyear').innerHTML="  2012  ";} function mbsZoom(obj1,w,h,obj2,obj3,v){ var top=Math.round((getClientBounds(2)-(h+60))/2); if(top<0){top=0;} if(getClientBounds(2)<(h+60)){ var nh=(getClientBounds(2)-60); obj1.style.height=getClientBounds(2)+"px"; var r=w/h;h=nh;w=Math.round(nh*r); obj1.style.width=Math.round(w+30)+"px"; obj2.style.height=h+"px"; obj2.style.width=w+"px"; } var left=Math.round((getClientBounds(1)-(w+30))/2); if(left<0){left=0;} obj3.style.width=getClientBounds(1)+"px"; obj3.style.height=getClientBounds(2)+"px"; obj3.style.display='block'; if(parseInt(v)==1){top=top+getClientBounds(5);obj3.style.top=getClientBounds(5)+"px";} obj1.style.left=left+"px"; obj1.style.top=top+"px"; obj1.style.display='block'; } var browsertype = navigator.userAgent.toLowerCase(); var browser;var ie=0;var ff=0; var sf=0; if(browsertype.indexOf("msie")!=-1){browser="ie";ie=parseInt(browsertype.substr((browsertype.indexOf("msie")+4)));} if(browsertype.indexOf("firefox")!=-1){browser="ff";ff=1;} if(browsertype.indexOf("safari")!=-1){browser="sf";sf=1;} if(browsertype.indexOf("opera")!=-1){browser="opera";} function getClientBounds(x) { var clientWidth; var clientHeight; var vscroll=0; var hscroll=0; var vpos=0; switch (browser) { case 'ie': clientWidth = document.documentElement.clientWidth; clientHeight = document.documentElement.clientHeight; if (clientHeight == 0 && clientWidth == 0) { clientWidth = document.body.clientWidth; clientHeight = document.body.clientHeight; } vscroll=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop); hscroll=(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft) vpos=vscroll; /* if (document.documentElement && document.documentElement.scrollTop) {vscroll=document.documentElement.scrollTop;hscroll=document.documentElement.scrollLeft;} else if (document.body && document.body.scrollTop) {vscroll=document.body.scrollTop;hscroll=document.body.scrollLeft;} */ break; /* case 'sf': clientWidth = window.innerWidth; clientHeight = window.innerHeight; vscroll = self.scrollY; hscroll = self.scrollX; break; */ case 'opera': clientWidth = Math.min(window.innerWidth, document.documentElement.clientWidth); clientHeight = Math.min(window.innerHeight, document.documentElement.clientHeight); vscroll=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop); hscroll=(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft) break; default: // Firefox, etc. clientWidth = Math.min(window.innerWidth, document.documentElement.clientWidth); clientHeight = Math.min(window.innerHeight, document.documentElement.clientHeight); vscroll = self.scrollY; hscroll = self.scrollX; break; } var result=0; switch (x){ case 1: result=clientWidth; break; case 2: result=clientHeight; break; case 3: result=hscroll; break; case 4: result=vscroll; break; case 5: result=vpos; break; default: result=600; break; } return result; }