var point;

thickness = 7; //thinner line than usual

var blueArray = new Array();

var singleMarkers = new Array();
var blueMarkers = new Array();

var icon = getIcon("bus");
var iconPig = getIcon("pig");
var iconTent = getIcon("tent");
var iconMusic = getIcon("music");

function mapRoutes() {
		
	blue = new GPolyline([
	  new GLatLng( 33.46032117599118, -88.79494786262512 ), //College View & Coliseum
	  new GLatLng( 33.46051809167406, -88.79451870918274 ),
	  new GLatLng( 33.46063445073098, -88.79361748695373 ), //Coliseum & Lakeview
	  new GLatLng( 33.461055132172206, -88.79358530044555 ),
	  new GLatLng( 33.461153589236005, -88.79417538642883 ),
	  new GLatLng( 33.46100142827209, -88.79478693008423 ),
	  new GLatLng( 33.46059864796087, -88.79455089569092 ),
	  new GLatLng( 33.460410683175205, -88.79502296447754 ), //College View & Coliseum
	  new GLatLng( 33.460088456880236, -88.79474401473999 ),
	  new GLatLng( 33.45869212909604, -88.79406809806824 ),
	  new GLatLng( 33.45805661349106, -88.7940788269043 ), //Barr & BS Hood
	  new GLatLng( 33.458128221116034, -88.79440069198608 ),
	  new GLatLng( 33.45879058884342, -88.79603147506714 ), //Barr & Bost
	  new GLatLng( 33.45803871157558, -88.7964928150177 ),
	  new GLatLng( 33.457618015497594, -88.7966537475586 ),
	  new GLatLng( 33.45663339967621, -88.79686832427978 ), //Extension & Stone
	  new GLatLng( 33.45696458988225, -88.79736185073852 ),
	  new GLatLng( 33.45736738707661, -88.7978446483612 ),
	  new GLatLng( 33.45760011349156, -88.79844546318054 ),
	  new GLatLng( 33.457689623484825, -88.79936814308166 ), //12 & Russell
	  new GLatLng( 33.458262485253464, -88.80231857299804 ), //Russell at Cooley
	  new GLatLng( 33.45778808437066, -88.80251169204712 ),
	  new GLatLng( 33.45783283928183, -88.80397081375122 ), //Mill at Cooley
	  new GLatLng( 33.45850416017687, -88.8039493560791 ), //Russell & Mill
	  new GLatLng( 33.458360945488764, -88.80300521850586 ), //Russell & Maxwell
	  new GLatLng( 33.45930973838963, -88.80284428596496 ), //Maxwell & Lummus
	  new GLatLng( 33.45969462311551, -88.8055694103241 ), // Lummus & Jarnigan
	  new GLatLng( 33.458745834426644, -88.80555868148804 ), //Russell & Jarnigan
	  new GLatLng( 33.45889799934941, -88.80611658096313 ),
	  new GLatLng( 33.459291836732895, -88.80680322647095 ),
	  new GLatLng( 33.45959616439479, -88.80722165107727 ), //Russell & Fellowship
	  new GLatLng( 33.45998104784911, -88.80761861801147 ), //Russell & Green
	  new GLatLng( 33.46049123956181, -88.80800485610962 ),
	  new GLatLng( 33.46289894589672, -88.80869150161743 ), //Russell & Lampkin
	  new GLatLng( 33.46272888704927, -88.81775736808777 ), //Lampkin & Wilson
	  new GLatLng( 33.463346467585254, -88.81770372390747 ),
	  new GLatLng( 33.463722384018204, -88.81731748580932 ),
	  new GLatLng( 33.46384768913358, -88.81692051887512 ), //W. Main & Wilson
	  new GLatLng( 33.46388349056182, -88.80918502807617 ), //Stromboli's
	  new GLatLng( 33.46373133438958, -88.80857348442077 ),
	  new GLatLng( 33.46285419360079, -88.80592346191406 ),
	  new GLatLng( 33.462138153723906, -88.80462527275085 ), //University & Nash
	  new GLatLng( 33.46425045434902, -88.80362749099731 ), //Nash & College View
	  new GLatLng( 33.46314955832695, -88.80026936531067 ),
	  new GLatLng( 33.46032117599118, -88.79494786262512 )],
	  "#660000", getThickness(), 0.7);
	blueArray.push( blue );

}

// Add marker data here as <color>Markers[0..x]

//Single markers
	/*point = new GLatLng(33.459023311438216, -88.79488348960876); //Pig cooking
	singleMarkers[0] = createMarkerWithIcon(point,'Pig Cooking','',iconPig);
	
	point = new GLatLng(33.455272821232306, -88.79526972770691); //Fanfare
	singleMarkers[1] = createMarkerWithIcon(point,'Fanfare','Test info.',iconTent);*/
	
	point = new GLatLng(33.459023311438216, -88.79488348960876); //Pig cooking
	opts = { "labelText" : "Pig&nbsp;Cooking", "labelClass" : "staticLabels", "icon" : iconPig, "labelOffset" : new GSize(18,-23)
	};
	singleMarkers[0] = new LabeledMarker(point, opts);
	
	point = new GLatLng(33.455272821232306, -88.79526972770691); //Fanfare
	opts = { "labelText" : "Fanfare", "labelClass" : "staticLabels", "icon" : iconTent, "labelOffset" : new GSize(14, 2)
	};
	singleMarkers[1] = new LabeledMarker(point, opts);
	
	point = new GLatLng(33.460956674996595, -88.8025438785553); //Arts Festival
	opts = { "labelText" : "Arts Festival", "labelClass" : "staticLabels", "icon" : iconMusic, "labelOffset" : new GSize(14, -10)
	};
	singleMarkers[2] = new LabeledMarker(point, opts);
	

//Blue route stops
	point = new GLatLng(33.46083136570227, -88.79378914833069); //Humphrey Coliseum
	blueMarkers[0] = createMarkerWithIcon(point,'SBW Bus Stop: Humphrey Coliseum','',icon);

	point = new GLatLng(33.45792234903482, -88.79396080970764); //BS Hood & Barr
	blueMarkers[1] = createMarkerWithIcon(point,'SBW Bus Stop: BS Hood & Barr','',icon);

	point = new GLatLng(33.457805986337895, -88.79642844200134); //Bost Ext.
	blueMarkers[2] = createMarkerWithIcon(point,'SBW Bus Stop: Bost Extension Center','',icon);

	point = new GLatLng(33.45685717698107, -88.79695415496826); //Bost & Stone
	blueMarkers[3] = createMarkerWithIcon(point,'SBW Bus Stop: Bost & Stone','',icon);

	point = new GLatLng(33.45782388830144, -88.80300521850586); //Cooly Bldg.
	blueMarkers[4] = createMarkerWithIcon(point,'SBW Bus Stop: Cooly Bldg.','',icon);
	
	point = new GLatLng(33.45931868921661, -88.80282282829284); //Maxwell & Lummus
	blueMarkers[5] = createMarkerWithIcon(point,'SBW Bus Stop: Maxwell & Lummus','',icon);
	
	point = new GLatLng(33.46287209452193, -88.81364822387695); //Regions Bank back
	blueMarkers[6] = createMarkerWithIcon(point,'SBW Bus Stop: Regions Bank back','',icon);
	
	point = new GLatLng(33.46275573846842, -88.81774663925171); //FUMC
	blueMarkers[7] = createMarkerWithIcon(point,'SBW Bus Stop: First United Methodist Church','',icon);
	
	point = new GLatLng(33.46373133438958, -88.81360530853271); //Regions Bank front
	blueMarkers[8] = createMarkerWithIcon(point,'SBW Bus Stop: Regions Bank front','',icon);
	
	point = new GLatLng(33.46374028476006, -88.80959272384643); //Stromboli's
	blueMarkers[9] = createMarkerWithIcon(point,'SBW Bus Stop: Strombolis','',icon);
	
	point = new GLatLng(33.46216500532602, -88.80460381507873); //University & Nash
	blueMarkers[10] = createMarkerWithIcon(point,'SBW Bus Stop: University & Nash','',icon);


for(x in blueMarkers){ blueArray.push( blueMarkers[x] ); }
