function FullScreenControl(){}FullScreenControl.prototype=new GControl();FullScreenControl.prototype.initialize=function(C){var A=document.createElement("div");var B=document.createElement("div");this.setButtonStyle_(B);A.appendChild(B);B.appendChild(document.createTextNode("Fullscreen"));GEvent.addDomListener(B,"click",function(){var I=this.parentNode.parentNode;var G=$(I.id).getWidth();var D=$(I.id).getHeight();var F=0,H=0;if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"){F=window.innerWidth;H=window.innerHeight;}if(navigator.appName.indexOf("Microsoft")!=-1){F=document.body.offsetWidth;H=document.body.offsetHeight;}}if(""+$(I.id).getAttribute("h")!=""+D){$($(I.id).getAttribute("c")).insertBefore($(I.id),$($(I.id).getAttribute("c")).firstChild);$(I.id).style.width="100%";$(I.id).style.height=$(I.id).getAttribute("h")+"px";$(I.id).style.position="relative";$(I.id).style.left="0px";$(I.id).style.top="0px";C.checkResize();C.disableScrollWheelZoom();this.innerHTML="Fullscreen";}else{C.enableScrollWheelZoom();var E=document.getElementsByTagName("body").item(0);E.insertBefore($(I.id),E.firstChild);$(I.id).style.position="absolute";$(I.id).style.display="block";$(I.id).style.zIndex=99999999;$(I.id).style.width="100%";$(I.id).style.height="100%";$(I.id).style.left="0px";$(I.id).style.top="0px";$(I.id).scrollTo();C.checkResize();this.innerHTML="Normal";}});C.getContainer().appendChild(A);return A;};FullScreenControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(5,70));};FullScreenControl.prototype.setButtonStyle_=function(A){A.style.color="#000000";A.style.backgroundColor="Yellow";A.style.font="small Arial";A.style.border="1px outset black";A.style.padding="0px";A.style.textAlign="center";A.style.width="75px";A.style.height="20px";A.style.cursor="pointer";};