

/**
 * Class CityLocation extends YogaLocation
 *
 * Constructor for this class.
 *
 * param Location location - a simple Location object that will be customized
 *							 as a YogaLocation object
 */
function CityLocation ( location ) {
	
	this.location 	= location; 
	this.email 		= location.email;
	this.url 		= location.fqurl;
	
	return this;
}

// CityLocation is defined, now establish the inheritence from YogaLocation
CityLocation.inheritsFrom( YogaLocation );

// required static fields
CityLocation.northamerica_list	= new Array();
CityLocation.southamerica_list	= new Array();
CityLocation.europe_list		= new Array();
CityLocation.middleeast_list	= new Array();
CityLocation.india_list			= new Array();
CityLocation.restofworld_list	= new Array();
CityLocation.locations			= new Array();
CityLocation.l_length			= 0;


/**
 * public static void add_location( YogaLocation location )
 *
 * Wrapper interface to parent's method by the same name (i.e. "super").
 * Adds the provided YogaLocation Object (derived as a subclass) to the subclass's
 * locations array property. See YogaLocation.add_location.
 *
 * param YogaLocation location - a YogaLocation (derived) object to add to the 
 *								 derived class's locations array.
 */
CityLocation.add_location = function( location ) {
	CityLocation.parent.add_location( location );
}



/**
 * public static void draw_all ( YogaLocation class_ref )
 *
 * Wrapper interface to parent's method by the same name (i.e. "super"). Passes
 * a required parameter, a reference to this class.
 *
 * Draws the table of all YogaLocations defined for the derived class. Outputs
 * the HTML required to display these.
 * See YogaLocation.draw_all.
 *
 */
CityLocation.draw_all = function() {
	CityLocation.parent.draw_all( CityLocation );
}




/**
 * public static void TableOfContents ( YogaLocation class_ref )
 *
 * Wrapper interface to parent's method by the same name (i.e. "super"). Passes
 * a required parameter, a reference to this class.
 *
 * Draws a table of contents for all YogaLocations defined for the derived class. 
 * This table of contents is an organised listing of anchor-links for each location
 * which link to the actual address information elsewhere on the HTML page. Outputs
 * the HTML required to display these.
 * See YogaLocation.draw_all.
 *
 */
CityLocation.TableOfContents = function () {
	CityLocation.parent.TableOfContents( CityLocation );
}



//
// Class Data - CityLocation
//
// This section contains editable/configurable data for this class
//

var c_newyork = new CityLocation( newyork );
c_newyork.id 				= "newyork";
c_newyork.region			= YogaLocation.NORTH_AMERICA;
c_newyork.city 				= "New York, NY - USA";
c_newyork.center 			= "Sivananda Yoga Vedanta Center";
c_newyork.street 			= "243 West 24th Street";
c_newyork.citypost 			= "New York, NY 10011";
c_newyork.phone 			= "(212) 255-4560";
c_newyork.fax 				= "(212) 727-7392";
CityLocation.add_location( c_newyork );


var c_chicago = new CityLocation( chicago );
c_chicago.id 				= "chicago";
c_chicago.region			= YogaLocation.NORTH_AMERICA;
c_chicago.city 				= "Chicago, IL - USA";
c_chicago.center 			= "Sivananda Yoga Vedanta Center";
c_chicago.street 			= "1246 West Bryn Mawr Avenue";
c_chicago.citypost 			= "Chicago, IL 60660";
c_chicago.phone 			= "(773) 878-7771";
c_chicago.fax 				= "(773) 878-7527";
CityLocation.add_location( c_chicago );


var c_losangeles = new CityLocation( losangeles );
c_losangeles.id 			= "losangeles";
c_losangeles.region			= YogaLocation.NORTH_AMERICA;
c_losangeles.city 			= "Los Angeles, CA - USA";
c_losangeles.center 		= "Sivananda Yoga Vedanta Center";
c_losangeles.street 		= "13325 Beach Avenue";
c_losangeles.citypost 		= "Marina del Rey, CA 90292";
c_losangeles.phone 			= "(310) 822-9642";
c_losangeles.fax 			= "";
CityLocation.add_location( c_losangeles );



var c_sanfrancisco = new CityLocation( sanfrancisco );
c_sanfrancisco.id 			= "sanfrancisco";
c_sanfrancisco.region		= YogaLocation.NORTH_AMERICA;
c_sanfrancisco.city 		= "San Francisco, CA - USA";
c_sanfrancisco.center 		= "Sivananda Yoga Vedanta Center";
c_sanfrancisco.street 		= "1200 Arguello Blvd.";
c_sanfrancisco.citypost 	= "San Francisco, CA 94122";
c_sanfrancisco.phone 		= "(415) 681-2731";
c_sanfrancisco.fax 			= "(415) 681-5162";
CityLocation.add_location( c_sanfrancisco );



var c_montreal = new CityLocation( montreal );
c_montreal.id 				= "montreal";
c_montreal.region			= YogaLocation.NORTH_AMERICA;
c_montreal.city 			= "Montreal - Canada";
c_montreal.center 			= "Sivananda Yoga Vedanta Centre";
c_montreal.street 			= "5178 St. Lawrence Blvd.";
c_montreal.citypost 		= "Montreal, Quebec H2T 1R8";
c_montreal.phone 			= "(514) 279-3545";
c_montreal.fax 				= "(514) 279-3527";
CityLocation.add_location( c_montreal );



var c_toronto = new CityLocation( toronto );
c_toronto.id 				= "toronto";
c_toronto.region			= YogaLocation.NORTH_AMERICA;
c_toronto.city 				= "Toronto - Canada";
c_toronto.center 			= "Sivananda Yoga Vedanta Centre";
c_toronto.street 			= "77 Harbord st.";
c_toronto.citypost 			= "Toronto, Ontario M5S 1G4";
c_toronto.phone 			= "(416) 966-9642";
CityLocation.add_location( c_toronto );



var c_london = new CityLocation( london );
c_london.id 				= "london";
c_london.region				= YogaLocation.EUROPE;
c_london.city 				= "London - England";
c_london.center 			= "Sivananda Yoga Vedanta Centre";
c_london.street 			= "45-51 Felsham Rd.";
c_london.citypost 			= "London SW15 1AZ";
c_london.phone 				= "+44-208-780-0160";
c_london.fax 				= "+44-208-780-0128";
CityLocation.add_location( c_london );



var c_munich = new CityLocation( munich );
c_munich.id 				= "munich";
c_munich.region				= YogaLocation.EUROPE;
c_munich.city 				= "Munich - Germany";
c_munich.center 			= "Sivananda Yoga Vedanta Zentrum";
c_munich.street 			= "Steinheilst. 1, 8";
c_munich.citypost 			= "D-80333 Munich";
c_munich.phone 				= "+49.89.700.9669.0";
c_munich.fax 				= "+49.89.700.9669.69";
CityLocation.add_location( c_munich );



var c_berlin = new CityLocation( berlin );
c_berlin.id 				= "berlin";
c_berlin.region				= YogaLocation.EUROPE;
c_berlin.city 				= "Berlin - Germany";
c_berlin.center 			= "Sivananda Yoga Vedanta Zentrum";
c_berlin.street 			= "Schmiljanstr. 24";
c_berlin.citypost 			= "D-12161 Berlin";
c_berlin.phone 				= "+49.30.8599.9798";
c_berlin.fax 				= "+49.30.8599.9797";
CityLocation.add_location( c_berlin );

   

var c_vienna = new CityLocation( vienna );
c_vienna.id 				= "vienna";
c_vienna.region				= YogaLocation.EUROPE;
c_vienna.city 				= "Vienna - Austria";
c_vienna.center 			= "Sivananda Yoga Vedanta Zentrum";
c_vienna.street 			= "Prinz Eugen-Str. 18,";
c_vienna.citypost 			= "A-1040 Vienna";
c_vienna.phone 				= "+43-1-586-34-53";
c_vienna.fax 				= "+43-1-587-1551";
CityLocation.add_location( c_vienna );



var c_geneva = new CityLocation( geneva );
c_geneva.id 				= "geneva";
c_geneva.region				= YogaLocation.EUROPE;
c_geneva.city 				= "Geneva - Switzerland";
c_geneva.center 			= "Centre Sivananda de Yoga Vedanta";
c_geneva.street 			= "1 Rue des Minoteries";
c_geneva.citypost 			= "1205 Geneva";
c_geneva.phone 				= "+41.22.328.03.28";
c_geneva.fax 				= "+41.22.328.03.59";
CityLocation.add_location( c_geneva );



var c_paris = new CityLocation( paris );
c_paris.id 					= "paris";
c_paris.region				= YogaLocation.EUROPE;
c_paris.city 				= "Paris - France";
c_paris.center 				= "Centre Sivananda de Yoga Vedanta";
c_paris.street 				= "140 rue du Faubourg Saint-Martin";
c_paris.citypost 			= "F-75010 Paris";
c_paris.phone 				= "+33-01.40.26.77.49";
c_paris.fax 				= "+33-01.42.33.51.97";
CityLocation.add_location( c_paris );



var c_rome = new CityLocation( rome );
c_rome.id 					= "rome";
c_rome.region				= YogaLocation.EUROPE;
c_rome.city 				= "Rome - Italy";
c_rome.center 				= "Centro Yoga Vedanta Sivananda Roma";
c_rome.street 				= "Via Oreste Tommasini, 7";
c_rome.citypost 			= "00162 Roma";
c_rome.phone 				= "+39.06.4549.6529";
c_rome.fax 				= "+39.06.9725.9356";
CityLocation.add_location( c_rome );


var c_milano = new CityLocation( milano );
c_milano.id 					= "milano";
c_milano.region				= YogaLocation.EUROPE;
c_milano.city 				= "Milano - Italy";
c_milano.center 				= "Centro Yoga Vedanta Sivananda Milano";
c_milano.street 				= "Via Guercino, 1";
c_milano.citypost 			= "20154 Milano";
c_milano.phone 				= "+39.02.3670.8647 / +39.334.760.5276";
c_milano.fax 				= "";
CityLocation.add_location( c_milano );


var c_madrid = new CityLocation( madrid );
c_madrid.id 				= "madrid";
c_madrid.region				= YogaLocation.EUROPE;
c_madrid.city 				= "Madrid - Spain";
c_madrid.center 			= "Centro de Yoga Sivananda Vedanta";
c_madrid.street 			= "Calle Eraso 4";
c_madrid.citypost 			= "28028 Madrid";
c_madrid.phone 				= "+34.91.361.5150";
c_madrid.fax 				= "+34.91.361.5194";
CityLocation.add_location( c_madrid );




var c_vilnius = new CityLocation( vilnius );
c_vilnius.id 					= "vilnius";
c_vilnius.region				= YogaLocation.EUROPE;
c_vilnius.city 				= "Vilnius, Lithuania";
c_vilnius.center 				= "Sivananda jogos vedantos centras Vilniuje";
c_vilnius.street 				= "Vivulskio g. 41";
c_vilnius.citypost 			= "LT-03114, Vilnius";
c_vilnius.phone 				= "+370.648.57.824";
c_vilnius.fax 				= "+370.5.21.041.94";
CityLocation.add_location( c_vilnius );





var c_telaviv = new CityLocation( telaviv );
c_telaviv.id 				= "telaviv";
c_telaviv.region			= YogaLocation.REST_OF_WORLD;
c_telaviv.city 				= "Tel Aviv - Israel";
c_telaviv.center 			= "Sivananda Yoga Vedanta Centre";
c_telaviv.street 			= "6 Lateris st.";
c_telaviv.citypost 			= "Tel Aviv 64166";
c_telaviv.phone 			= "011 972-3-696-18-10";
c_telaviv.phone 			= "+972-3-691-67-93";
c_telaviv.fax 				= "011 972-3-696-39-39";
CityLocation.add_location( c_telaviv );



var c_montevideo = new CityLocation( montevideo );
c_montevideo.id 			= "montevideo";
c_montevideo.region			= YogaLocation.SOUTH_AMERICA;
c_montevideo.city 			= "Montevideo - Uruguay";
c_montevideo.center 		= "Asociacion de Yoga Sivananda";
c_montevideo.street 		= "Acevedo Diaz 1523";
c_montevideo.citypost 		= "11200 Montevideo";
c_montevideo.phone 			= "+598(2)410929";
c_montevideo.fax 			= "+598(2)407388";
CityLocation.add_location( c_montevideo );


var c_buenosaires = new CityLocation( buenosaires );
c_buenosaires.id 			= "buenosaires";
c_buenosaires.region		= YogaLocation.SOUTH_AMERICA;
c_buenosaires.city 			= "Buenos Aires, Argentina";
c_buenosaires.center 		= "Centro Internacional de Yoga Sivananda";
c_buenosaires.street 		= "Sánchez de Bustamante 2372 - (Barrio Norte)";
c_buenosaires.citypost 		= "1425 Buenos Aires";
c_buenosaires.phone 		= "+54 (11) 4804-7813";
c_buenosaires.fax 			= "+54 (11) 4805-4270";
CityLocation.add_location( c_buenosaires );


var c_portoalegre = new CityLocation( new Location( "Porto Alegre, Brazil", 'http://www.yogasivananda.com.br/poa', 'sivanandayogapoa@gmail.com' ) );
c_portoalegre.id				= "portoalegre";
c_portoalegre.region			= YogaLocation.SOUTH_AMERICA;
c_portoalegre.city			= "Porto Alegre, Brazil";
c_portoalegre.center			= "Centro Sivananda de Yoga Vedanta";
c_portoalegre.street			= "Rua Santo Antonio, 374";
c_portoalegre.citypost		= "Porto Alegre 90220-010 -RS";
c_portoalegre.phone			= "+55.51.3024.7717";
CityLocation.add_location( c_portoalegre );

 

var c_trivandrum = new CityLocation( trivandrum );
c_trivandrum.id 			= "trivandrum";
c_trivandrum.region			= YogaLocation.INDIA;
c_trivandrum.city 			= "Thiruvananthapuram - India";
c_trivandrum.center 		= "Sivananda Yoga Vedanta Centre";
c_trivandrum.street 		= "37/1929 West Fort Airport Road";
c_trivandrum.citypost 		= "Thiruvananthapuram, Kerala 695023";
c_trivandrum.phone 			= "+91-471-450-942";
c_trivandrum.fax 			= "+91-471-451-776";
CityLocation.add_location( c_trivandrum );



var c_delhi = new CityLocation( delhi_nataraja );
c_delhi.id 					= "delhi";
c_delhi.region				= YogaLocation.INDIA;
c_delhi.city 				= "New Delhi South, Nataraja, India";
c_delhi.center 				= "Sivananda Yoga Vedanta Nataraja Centre";
c_delhi.street 				= "A41, Kailash Colony";
c_delhi.citypost 			= "New Delhi 110048";
c_delhi.phone 				= "+91-11-648-0869";
c_delhi.fax 				= "+91-11-645-3962";
CityLocation.add_location( c_delhi );



var c_delhi2 = new CityLocation( delhi_dwarka );
c_delhi2.id 				= "delhi_dwarka";
c_delhi2.region				= YogaLocation.INDIA;
c_delhi2.city 				= "New Delhi West, Dwarka, India";
c_delhi2.center 			= "Sivananda Yoga Vedanta Dwarka Centre";
c_delhi2.street 			= "PSP pkt. Sector 6, Swami Sivananda Marg (behind DAV school)";
c_delhi2.citypost 			= "Dwarka, New Delhi 110075";
c_delhi2.phone 				= "+011 6456 8526";
CityLocation.add_location( c_delhi2 );



var c_chennai = new CityLocation( chennai );
c_chennai.id 				= "chennai";
c_chennai.region				= YogaLocation.INDIA;
c_chennai.city 				= "Chennai - India";
c_chennai.center 			= "Sivananda Yoga Vedanta Centre";
c_chennai.street 			= "3/655 Kaveri Nagar, Kuppam Road, Kottivakkam";
c_chennai.citypost 			= "Chennai 600 041, Tamil Nadu";
c_chennai.phone 				= "+91.44.2451.1626 / +91.44 2451.2546";
CityLocation.add_location( c_chennai );


var c_madurai = new CityLocation( chennai );
c_madurai.id 				= "madurai";
c_madurai.region				= YogaLocation.INDIA;
c_madurai.city 				= "Madurai - India";
c_madurai.center 			= "Sivananda Yoga Vedanta Centre";
c_madurai.street 			= "Plot # 101 (Old No 23), Dr Sathar Road";
c_madurai.citypost 			= "Anna Nagar, Madurai 625 020 Tamil Nadu";
c_madurai.phone 				= "+91.452.2521170";
c_madurai.fax 			= "+91.4552.4393445";
CityLocation.add_location( c_madurai );



 


 


