App.Fixtures.contacts = [
{"id":'12345',"firstName":'Ben',"lastName":'Adams',"email1":'ben.adams@charter.com',"email2":'grizzlyadams@gmail.com',"primaryEmail":'email1',"homePhone":'303-333-1111',"cellPhone":'303-333-2222',"primaryPhone":'cellPhone',"homeAddress":"1987 Westcliff Ave., Littleton, CO 80000","workAddress":"456 S. Rembrant St. Arvada, CO 80675","primaryAddress":'homeAddress'},
{"id":'12346',"firstName":'Steve',"lastName":'Canon',"email1":'steve.canon@charter.com',"email2":'milliondollarman@gmail.com',"primaryEmail":'email2',"homePhone":'303-333-3333',"cellPhone":'303-333-4444',"primaryPhone":'cellPhone',"homeAddress":"1298 W. Orchard, Littleton, CO 80000","primaryAddress":'homeAddress'},
{"id":'12347',"firstName":'Mike',"lastName":'Delperion',"email1":'mike.delperion@charter.net',"email2":'gladiator@yahoo.com',"primaryEmail":'email1',"homePhone":'303-333-5555',"cellPhone":'720-333-6666',"primaryPhone":'cellPhone',"homeAddress":"235 S. Alster Rd. Littleton, CO 80000","workAddress":"3347 Colorado Blvd, Thornton, CO 80000","primaryAddress":'workAddress'},
{"id":'12348',"firstName":'Jennifer',"lastName":'Hatrick',"email1":'Jennifer.Hatrick@charter.com',"email2":'247spyz@hotmail.com',"primaryEmail":'email1',"homePhone":'303-333-7777',"cellPhone":'303-333-7777',"primaryPhone":'homePhone',"homeAddress":"1722 E 14th Ave., Denver, CO 80000","workAddress":"2561 Market, Suite 300, Denver, CO 80000","primaryAddress":'homeAddress'},
{"id":'12349',"firstName":'Bob',"lastName":'Jefferson',"email1":'bjefferson@charter.com',"email2":'movinup@gmail.com',"primaryEmail":'email2',"homePhone":'303-333-9999',"cellPhone":'720-333-1122',"primaryPhone":'cellPhone'},
{"id":'12350',"firstName":'Shelly',"lastName":'Kelly',"email1":'Kelly@charter.net',"email2":'frakenshtien@maildomain.com',"primaryEmail":'email2',"homePhone":'720-343-1234',"cellPhone":'303-123-1235',"primaryPhone":'homePhone',"homeAddress":"816 S. Peoria, Aurora, CO 80000","workAddress":"","primaryAddress":'homeAddress'},
{"id":'12351',"firstName":'Sam',"lastName":'Sanderson',"email1":'ssanderson@charter.net',"email2":'moustacheman@gmail.com',"primaryEmail":'email2',"homePhone":'720-856-4321',"cellPhone":'303-442-5522',"primaryPhone":'cellPhone',"homeAddress":"86745 Green Mountain Rd., Arvada, 80000","workAddress":"Golden, CO","primaryAddress":'homeAddress'}
]

/*
var CHTR = {};

function Contact(args)
{
	for(prop in args){
		this[prop] = args[prop];
	}
}
Contact.prototype.getPrimaryEmailAddress = function(){
	var primary = this.getPrimaryProperty('email');
	return primary? primary.email : '';
}
Contact.prototype.getPrimaryPhoneNumber = function(){
	var primary =  this.getPrimaryProperty('phone');
	return primary? primary.phone : '';
}
Contact.prototype.getPrimaryAddress = function(){
	var primary =  this.getPrimaryProperty('address');
	return primary? primary.address : '';
}
Contact.prototype.getPrimaryProperty = function(property){
	if(property in this){
		for(var i = 0, max = this[property].length; i < max; i +=1){
			var prop = this[property][i];
			if(prop.primary){
				return prop;
			}
		}
	}
}
Contact.prototype.getFullName = function(){
	return this.firstName + " " + this.lastName
}

CHTR.contacts = [
	{
		id:'12345',
		firstName:'Ben',
		lastName :'Adams',
		email: [
			{
				location: 'Work',
				email:'ben.adams@charter.com',
				primary: true
			},
			{
				location:'Private',
				email:'grizzlyadams@gmail.com',
				primary: false
			}
		],
		phone: [
			
			{
				location:'Home',
				phone:'303-333-1111',
				primary:false
			},
			
			{
				location:'Cell',
				phone: '303-333-2222',
				primary: true
			}
		],
		address: [
			{
				location: 'Home',
				address: "1987 Westcliff Ave., Littleton, CO 80000",
				primary: true
			},
			{
				location:'Home',
				address:"456 S. Rembrant St. Arvada, CO 80675",
				primary:false
			}
		]
	}),
	{
		id:'12346',
		firstName:'Steve',
		lastName :'Canon',
		email: [
			{
				location:'Work',
				email:'steve.canon@charter.com',
				primary: false
			},
			{
				location:'Private',
				email:'milliondollarman@gmail.com',
				primary: true
			}
		],
		phone: [
			{
				location:'Home',
				phone:'303-333-3333',
				primary:false
			},
			
			{
				location:'Cell',
				phone: '303-333-4444',
				primary: true
			}
		],
		address: [
			{
				location:'Home',
				address: "1298 W. Orchard, Littleton, CO 80000",
				primary: true
			}
		]
		
		
	}),
	{
		id:'12347',
		firstName:'Mike',
		lastName :'Delperion',
		email: [
			{
				location:'Work',
				email:'mike.delperion@charter.net',
				primary: true
			},
			{
				location:'Private',
				email:'gladiator@yahoo.com',
				primary: false
			}
		],
		phone: [
			
			{
				location:'Home',
				phone:'303-333-5555',
				primary:false
			},
			{
				location:'Cell',
				phone: '720-333-6666',
				primary: true
			}
		],
		address: [
			{
				location:'Home',
				address: "235 S. Alster Rd. Littleton, CO 80000",
				primary: false
			},
			{
				location:'Work',
				address:"3347 Colorado Blvd, Thornton, CO 80000",
				primary:true
			}
		]
		
		
	}),
	{
		id:'12348',
		firstName:'Jennifer',
		lastName :'Hatrick',
		email: [
			{
				location:'Work',
				email:'Jennifer.Hatrick@charter.com',
				primary: false
			},
			{
				location:'Private',
				email:'247spyz@hotmail.com',
				primary: true
			}
		],
		phone: [
			{
				location:'Home',
				phone:'303-333-7777',
				primary:false
			},
			
			{
				location:'Cell',
				phone: '303-333-8888',
				primary: true
			}
		],
		address: [
			{
				location:'Home',
				address: "1722 E 14th Ave., Denver, CO 80000",
				primary:true
			},
			{
				location: 'Work',
				address:"2561 Market, Suite 300, Denver, CO 80000",
				primary:false
			}
		]
		
		
	}),
	{
		id:'12349',
		firstName:'Bob',
		lastName :'Jefferson',
		email: [
			{
				location:'Work',
				email:'bjefferson@charter.com',
				primary: true
			},
			{
				location:'Private',
				email:'movinup@gmail.com',
				primary: false
			}
		],
		phone: [
			
			{
				location:'Home',
				phone:'303-333-9999',
				primary:false
			},
			
			{
				location:'Cell',
				phone: '720-333-1122',
				primary: true
			}
		],
		address: []
	}),
	{
		id:'12350',
		firstName:'Shelly',
		lastName :'Kelly',
		email: [
			{
				location:'Work',
				email:'Shelly.Kelly@charter.net',
				primary: true
			},
			{
				location:'Private',
				email:'frakenshtien@maildomain.com',
				primary: false
			}
		],
		phone: [
			{
				location:'Home',
				phone:'720-343-1234',
				primary:false
			},
			{
				location:'Cell',
				phone: '303-123-1235',
				primary: true
			}
		],
		address: [
			{
				location:'Home',
				address: "816 S. Peoria, Aurora, CO 80000",
				primary:true
			}
		]
	}),
	{
		id:'12351',
		firstName:'Sam',
		lastName :'Sanderson',
		email: [
			{
				location:'Work',
				email:'ssanderson@charter.net',
				primary: false
			},
			{
				location:'Private',
				email:'moustacheman@gmail.com',
				primary: true
			}
		],
		phone: [
			{
				location:'Home',
				phone:'720-856-4321',
				primary:false
			},
			
			{
				location:'Cell',
				phone: '303-442-5522',
				primary: true
			}
		],
		address: [
			{
				location: 'Home',
				address: "86745 Green Mountain Rd., Arvada, 80000",
				primary:true
			},
			{
				location: 'Work',
				address:"Golden, CO",
				primary:false
			}
		]
	})
];

*/