

//ROAD CONDITIONS PAGE CONSTANTS
var pinID = 1; 

addWindowLoadEvent(RoadConditionsStartup, "end") 
function RoadConditionsStartup() 
{ 
    varZoom = parseInt(varZoom + 1); 
    map.SetCenterAndZoom(new VELatLong(varLat,varLon), varZoom); 
} 

function load_RoadConditions()
{
	// LOAD THE MAP
	//map.onLoadMap = WaitFunction(); 
	//map.LoadMap(new VELatLong(varLat, varLon), varZoom ,'r' , false);

    map.LoadMap();

    varZoom = parseInt(varZoom - 1);
    map.SetCenterAndZoom(new VELatLong(varLat,varLon), varZoom);
    map.SetMapStyle(VEMapStyle.Road);

	AddORCITile();

    map.AttachEvent("onclick", OnMouseClickV5);
    map.AttachEvent("onmouseover", onMouseOverCallback);
    objFeedbackArea = document.getElementById("dvResult");
	timerRef = setTimeout('startLayers()',100);
	//map.HideDashboard();

	//parseRoadConditions();
    //This delay allows the map to load without the pushpins.
    //timerRef2 = setTimeout('parseRoadConditions()',10);
	
//	//IF THE SESSION IS VIRGINIA (STATEWIDE), THEN SHOW THE BORDER AND SHADING
//	if(sessionRegion == 1 && varShowVirginiaBorder == 'True')
//	{
//		showVirginiaBorder();
//	}

//	map.SetZoomLevel(varZoom);
}


