
function BrowserClass(){this.Init=Init;this.resizeMap=resizeMap;function CheckBrowserType(string){return navigator.userAgent.toLowerCase().indexOf(string)+1;}
function resizeMap(){var hOffsetMap=236;
mapDIV.style.height=(GetWindowWidthHeight().height-hOffsetMap)+'px';}
function GetWindowWidthHeight(){var myWidth=0;var myHeight=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;}
if(platform=='win'&&browser=='ff'){myWidth-=20;myHeight-=5;}else{myWidth-=15;myHeight-=5;}
return{'width':myWidth,'height':myHeight};}
function Init(){if(CheckBrowserType('msie'))browser="ie"
else if(!CheckBrowserType('compatible'))browser="ff"
else browser="";if(CheckBrowserType('Macintosh'))platform="mac"
else if(CheckBrowserType('windows nt 5.1'))platform="win"
else platform="";if(window.attachEvent)window.attachEvent("onresize",resizeMap);else window.addEventListener("resize",resizeMap,false);mapDIV=document.getElementById("mapdiv");}}
