var map = null;
var myaddress = '17603 WHITNEY RD APT 302, STRONGSVILLE OH 44136-2448';  

function pageLoad(sender, args){
    GetMap();
    }
    
function GetMap(){  
    map = new VEMap('myMap'); 
    map.LoadMap();
    map.HideDashboard();
    map.FindLocation(myaddress,onFoundResults);
    
    var ctr = map.GetCenter();
    var longitude = ctr.Longitude;
    var latitude = ctr.Latitude;
    }
      
function GetRoute(address){          
    map.GetRoute(address,myaddress);
    }
    
function PutPin(ctr){
    var locationName = 'BLAZE MOTORS LLC';
    var myaddress = '17603 WHITNEY RD APT 302, STRONGSVILLE OH 44136-2448';
    var pinID = 1;
    var location = ctr.LatLong
    var icon_url = null;
    var title = locationName;

    var details = null;
    var iconStyle = null;
    var iconStyle = null;
    var tytleStyle= null;
    var detailsStyle = null;
    
    var pin = new VEPushpin(
       pinID, 
       location, 
       icon_url, 
       title,
       details,
       iconStyle,
       tytleStyle,
       detailsStyle
       );
    map.AddPushpin(pin);
    }
    
function onFoundResults(e){
    PutPin(e[0]);
    }