var divs='<div style="cursor: pointer;" onclick="ZoomToggle(document.getElementById(';divs=divs+"'myMap'";divs=divs+'), this);" id="ZoomIt">Expand +</div>';divs=divs+'<div id="myMap" style="position: relative; width: '+width+"; height: "+height+';"></div>';document.write(divs);var map=null,layerid=1,l,shapeIds=[],zoomed=0;function pageLoad(){GetMap()}function GetMap(){var a=false;if(!a)Msn.Drawing.Graphic.CreateGraphic=function(b,a){return new Msn.Drawing.SVGGraphic(b,a)};map=new VEMap("myMap");map.LoadMap();map.SetMapStyle(VEMapStyle.Road);AddMyLayer();map.HideDashboard()}function AddMyLayer(){l=new VEShapeLayer;var a=new VEShapeSourceSpecification(VEDataType.VECollection,collId,l);map.ImportShapeLayerData(a,onFeedLoad)}function onFeedLoad(c){if(customIcon!=null)for(var d=c.GetShapeCount(),a=0;a<d;a++){var b=c.GetShapeByIndex(a);shapeIds[a]=b.GetID();b.SetCustomIcon(customIcon)}}function ZoomToggle(b,c){if(zoomed==0){var a=b,d=c;a.style.border="medium black inset";a.style.width=exWidth;a.style.height=exHeight;a.style.zIndex="42";GetMap();map.ShowDashboard();zoomed=1;d.innerHTML="Restore -"}else{var a=b,d=c;a.style.border="0px";a.style.width=width;a.style.height=height;GetMap();zoomed=0;d.innerHTML="Expand +"}}
