(function(){/*
 Maintained by the Office of Web & New Media, Missouri State University.
 Compacted version available at
 http://search.missouristate.edu/map/mobile/examples/ZoomPanControl_compiled.js

 Usage:
 map.controls[google.maps.ControlPosition.TOP_LEFT].push(new missouristate.web.ZoomPanControl(map));
*/
function e(c,d){c=document.createElement(c);for(var a in d)if(a=="style")c.style.cssText=d[a];else if(a=="class")c.className=d[a];else c.setAttribute(a,d[a]);return c}
function f(c){this.map=c;this.a=c.getCenter();var d=this;c=e("div",{style:"position: relative; padding: 5px;"});var a=e("div",{style:"position: relative; left: 2px; top: 5px; width: 56px; height: 56px; padding: 5px; overflow: hidden;"});c.appendChild(a);var b=e("div",{style:"width: 56px; height: 56px; overflow: hidden;"});b.appendChild(e("img",{alt:" ",src:"http://maps.gstatic.com/intl/en_ALL/mapfiles/mapcontrols3d5.png",style:"position: absolute; left: 0px; top: -1px; -moz-user-select: none; border: 0px none; padding: 0px; margin: 0px; width: 59px; height: 492px;"}));
a.appendChild(b);b=e("div",{style:"position: absolute; left: 0px; top: 19px; width: 18.6667px; height: 18.6667px; cursor: pointer;",title:"Pan left"});google.maps.event.addDomListener(b,"click",function(){g(d,h)});a.appendChild(b);b=e("div",{style:"position: absolute; left: 37px; top: 19px; width: 18.6667px; height: 18.6667px; cursor: pointer;",title:"Pan right"});google.maps.event.addDomListener(b,"click",function(){g(d,i)});a.appendChild(b);b=e("div",{style:"position: absolute; left: 19px; top: 0px; width: 18.6667px; height: 18.6667px; cursor: pointer;",
title:"Pan up"});google.maps.event.addDomListener(b,"click",function(){g(d,j)});a.appendChild(b);b=e("div",{style:"position: absolute; left: 19px; top: 37px; width: 18.6667px; height: 18.6667px; cursor: pointer;",title:"Pan down"});google.maps.event.addDomListener(b,"click",function(){g(d,k)});a.appendChild(b);b=e("div",{style:"position: absolute; left: 19px; top: 19px; width: 18.6667px; height: 18.6667px; cursor: pointer;",title:"Reset center"});google.maps.event.addDomListener(b,"click",function(){d.map.setCenter(d.a)});
a.appendChild(b);a=e("div",{style:"position: relative; width: 58px; height: 48px; -moz-user-select: none; overflow: hidden;"});c.appendChild(a);b=e("div",{style:"position: absolute; left: 18px; top: 0px; width: 24px; height: 22px; overflow: hidden; background-image: url('http://maps.gstatic.com/intl/en_ALL/mapfiles/mapcontrols3d5.png'); background-position: -17px -65px; background-repeat: no-repeat; cursor: pointer;",title:"Zoom in"});google.maps.event.addDomListener(b,"click",function(){l(d,m)});
a.appendChild(b);b=e("div",{style:"position: absolute; left: 18px; top: 21px; width: 24px; height: 22px; overflow: hidden; background-image: url('http://maps.gstatic.com/intl/en_ALL/mapfiles/mapcontrols3d5.png'); background-position: -17px -360px; background-repeat: no-repeat; cursor: pointer;",title:"Zoom out"});google.maps.event.addDomListener(b,"click",function(){l(d,n)});a.appendChild(b);return c}
function g(c,d){var a=50;if(d==j||d==k){a=Math.round(c.map.getDiv().offsetHeight/2);c.map.panBy(0,d==k?a:-1*a)}else{a=Math.round(c.map.getDiv().offsetWidth/2);c.map.panBy(d==i?a:-1*a,0)}}function l(c,d){var a=c.map.getZoom();if(d==m&&a<19)c.map.setZoom(a+1);else d==n&&a>1&&c.map.setZoom(a-1)}var h=0,i=1,j=3,k=4,m=0,n=1;window.missouristate=window.missouristate||{};window.missouristate.web=window.missouristate.web||{};window.missouristate.web.ZoomPanControl=f;})()

