/**
Image constants
**/
var pathLargePics = "./images/directions/large/";
var pathSmallPics = "./images/directions/small/";
var imageDetails = "width=\"171\" height=\"128\" alt=\"click for large pic\"";

/**
VARIOUS LOCATION CONSTANTS
**/
 //location just inside the main entrace so that we can redirect according to new roads
 var mainEntrance = new VELatLong(40.914341590520124, -73.11656847596168);
 var sacLoc = new VELatLong(40.9146071161593, -73.12414705753326);
 var lirrLoc = new VELatLong(40.92161174324613, -73.12784314155578);
 var sacparkLoc = new VELatLong(40.91432334826148, -73.1275561451912);
 //the point to use as the center and zoom when centering the view on arriving at the lirr station at sb
 var lirrZoomLoc = new VELatLong(40.91831220235654, -73.12459230422975);
 var campusCenterLoc = new VELatLong(40.91701504044206, -73.12253236770631);
 
 /**
 NEEDED DRAW LAYERS FOR THIS FILE
 */
 var driveDirLayer = new VEShapeLayer();
 var walkDirLayer = new VEShapeLayer();
 
 /**
 VARIOUS PATH CONSTANTS
 **/
 var walkColor = new VEColor(200, 25, 25, 0.8);
 var walkWidth = 2; 
 var driveColor = new VEColor(62, 180, 219, 0.8);
 var driveWidth = 6;
 var busColor = new VEColor(50, 225, 50, 0.75);
 var busWidth = 4;
 
 var title = "Walking path from SAC Parking to the SAC Building."
 var desc = "";
 var arrayPts = new Array(new VELatLong(40.91413281770378, -73.12669783830642),
				new VELatLong(40.91404160607222, -73.12615737318994),
				new VELatLong(40.914092279216405, -73.1258971989155),
				new VELatLong(40.914112548463194, -73.12565311789512),
				new VELatLong(40.914124710008295, -73.12539294362068),
				new VELatLong(40.91423010997207, -73.12525346875192),
				new VELatLong(40.9143375366853, -73.1251434981823),
				new VELatLong(40.91439226343438, -73.12492355704307),
				new VELatLong(40.91439631726584, -73.12449976801872),
				new VELatLong(40.91452198591786, -73.12423422932626));
var lineSacParkToSac = new PathLine(arrayPts, walkColor, walkWidth, title, desc, walkDirLayer);

 title = "Walking path from LIRR to SAC.";
 desc = "";
 arrayPts = new Array(new VELatLong(40.92103210609713, -73.12743678689003),	//circle rd start
						new VELatLong(40.91828990760113, -73.12943235039712),	//south on circle
						new VELatLong(40.91727852851606, -73.12703713774682), //east on gym rd
						new VELatLong(40.91698869157689, -73.12662675976754), //across parking lot
						new VELatLong(40.9170616576393, -73.12606617808343), //follow john s toll dr
						new VELatLong(40.91666034329933, -73.12334105372429), //continue on john s toll dr
						new VELatLong(40.91604823289693, -73.12343224883081), //pass underneath chemistry building
						new VELatLong(40.915829331112235, -73.12341079115869), 
						new VELatLong(40.914785483928796, -73.12362536787987), //walk up zebra path
						new VELatLong(40.914813860575016, -73.12401428818705), //make a right
						new VELatLong(40.914704407729594, -73.12409207224847));	//turn left and walk into SAC
 var lineTrainToSac = new PathLine(arrayPts, walkColor, walkWidth, title, desc, walkDirLayer);
 
 title = "Route to Orientation Parking at the SAC Lot.";
 desc = "Roads have changed at the main entrance. Use Aerial or Bird's eye view for accurate roads.";
 arrayPts = new Array(mainEntrance,	//main entrance
						new VELatLong(40.9146111699776, -73.11730742454529),	
						new VELatLong(40.91504087330635, -73.11799943447113),	
						new VELatLong(40.91528004659072, -73.11879068613054),
						new VELatLong(40.91619822073833, -73.11829313635827),
						new VELatLong(40.91632793967807, -73.11873838305475),
						new VELatLong(40.916439416688554, -73.11921849846838),
						new VELatLong(40.916406987032175, -73.11969593167306),
						new VELatLong(40.916342127671676, -73.12026455998421),
						new VELatLong(40.91634415452766, -73.12068834900857),
						new VELatLong(40.917031255123085, -73.12594011425973),
						new VELatLong(40.91698261106805, -73.12646850943567),
						new VELatLong(40.91675965869114, -73.12704250216485),
						new VELatLong(40.916429282422655, -73.12746360898018),
						new VELatLong(40.91602999110922, -73.12776938080789),
						new VELatLong(40.91555975662216, -73.1280617415905),
						new VELatLong(40.915065196052765, -73.12835410237314),
						new VELatLong(40.91471048844798, -73.12852308154106),
						new VELatLong(40.91429699832347, -73.12866523861885),
						new VELatLong(40.914280782971765, -73.12848821282387));
 var lineToSacPark = new PathLine(arrayPts, driveColor, driveWidth, title, desc, driveDirLayer);

 title = "Bus Route to SAC";
 desc = "The Railroad Route bus from the LIRR to the SAC Loop.";
 arrayPts = new Array(new VELatLong(40.921384753080055, -73.12749847769738),
						new VELatLong(40.92114154846559, -73.12747165560722),
						new VELatLong(40.92106048006192, -73.1273563206196),
						new VELatLong(40.919447198150834, -73.12862500548364),
						new VELatLong(40.91869323883203, -73.12913730740547),
						new VELatLong(40.917665651396604, -73.12970325350761),
						new VELatLong(40.915685423062584, -73.13044756650924),
						new VELatLong(40.91476521488831, -73.13037782907486),
						new VELatLong(40.913978771319485, -73.12998622655868),
						new VELatLong(40.91319637230029, -73.12925666570663),
						new VELatLong(40.913526764725404, -73.12857404351236),
						new VELatLong(40.91344771392733, -73.12754675745964),
						new VELatLong(40.913583519086224, -73.12673941254617),
						new VELatLong(40.913946340456, -73.12597498297691),
						new VELatLong(40.913980798247934, -73.12525883316994),
						new VELatLong(40.9140233637308, -73.12475457787515),
						new VELatLong(40.914234163813475, -73.12473580241202));
 var lineRRBusTrainToSacLoop = new PathLine(arrayPts, busColor, busWidth, title, desc, driveDirLayer);
 
  title = "Walking path from SAC Loop to the SAC.";
 desc = "";
 arrayPts = new Array(new VELatLong(40.914234163813475, -73.12473580241202),
						new VELatLong(40.91442266716429, -73.12447294592857),
						new VELatLong(40.914495636058994, -73.12424764037132));
 var lineSacLoopToSac = new PathLine(arrayPts, walkColor, walkWidth, title, desc, walkDirLayer);
