// 9/6/2010 6:23:21 AM
var startPos = 0;
var totalLength = 0;
var navRight = true;
var navLeft = true;

var photoData = [
    
    	{
		title: "WingHouse of Largo Exterior",
		thumbnailURL: "http://farm3.static.flickr.com/2712/4208740229_9d1d975394_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2712/4208740229_9d1d975394.jpg"
	},
    	{
		title: "WingHouse Football Dress to Impress",
		thumbnailURL: "http://farm3.static.flickr.com/2451/3984405747_ea78809e1f_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2451/3984405747_ea78809e1f.jpg"
	},
    	{
		title: "WingHouse Football Dress to Impress",
		thumbnailURL: "http://farm4.static.flickr.com/3049/3984405027_1115c2e063_s.jpg",
		fullURL: "http://farm4.static.flickr.com/3049/3984405027_1115c2e063.jpg"
	},
    	{
		title: "WingHouse Football Dress to Impress",
		thumbnailURL: "http://farm3.static.flickr.com/2641/3984404053_12e0e0f18a_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2641/3984404053_12e0e0f18a.jpg"
	},
    	{
		title: "WingHouse Football Dress to Impress",
		thumbnailURL: "http://farm3.static.flickr.com/2490/3985164034_c5ffb40eeb_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2490/3985164034_c5ffb40eeb.jpg"
	},
    	{
		title: "WingHouse Football Dress to Impress",
		thumbnailURL: "http://farm3.static.flickr.com/2510/3985163900_6ca11ca499_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2510/3985163900_6ca11ca499.jpg"
	},
    	{
		title: "Zoe Danielle 0324 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2672/4209493102_a2068067c1_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2672/4209493102_a2068067c1.jpg"
	},
    	{
		title: "Valerie 0182 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2528/4209492934_cbfe223848_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2528/4209492934_cbfe223848.jpg"
	},
    	{
		title: "Shannon S 0184 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2618/4208730453_fc781ed63b_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2618/4208730453_fc781ed63b.jpg"
	},
    	{
		title: "Sandra 0257 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2655/4208730307_ecdfe11329_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2655/4208730307_ecdfe11329.jpg"
	},
    	{
		title: "Sandra 0211 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4061/4209492534_54f6f18987_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4061/4209492534_54f6f18987.jpg"
	},
    	{
		title: "Nicci Brittany W 0293 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2606/4209492402_b75015f496_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2606/4209492402_b75015f496.jpg"
	},
    	{
		title: "Mob 0216 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2620/4208729859_908a67729e_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2620/4208729859_908a67729e.jpg"
	},
    	{
		title: "Michele Sandra 0255 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2698/4209492054_b02290cd23_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2698/4209492054_b02290cd23.jpg"
	},
    	{
		title: "Michele 0247 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4072/4208729549_216c54427e_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4072/4208729549_216c54427e.jpg"
	},
    	{
		title: "Melisa 0295 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4061/4209491750_b306d5c217_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4061/4209491750_b306d5c217.jpg"
	},
    	{
		title: "Marissa Danielle 0334 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4032/4209491614_6b88edcd48_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4032/4209491614_6b88edcd48.jpg"
	},
    	{
		title: "Marissa Christina 0191 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4072/4209491444_470ec65573_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4072/4209491444_470ec65573.jpg"
	},
    	{
		title: "Marissa Ashley G 0162 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2563/4209491268_24139b12c7_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2563/4209491268_24139b12c7.jpg"
	},
    	{
		title: "Marissa 0148 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2682/4209491080_c9b71ea016_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2682/4209491080_c9b71ea016.jpg"
	},
    	{
		title: "Mariah 0296 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4049/4209490974_b3819b602b_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4049/4209490974_b3819b602b.jpg"
	},
    	{
		title: "Jessica 0180 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4070/4209490848_05e3277c31_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4070/4209490848_05e3277c31.jpg"
	},
    	{
		title: "Jen Ashley G 0228 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4050/4209490712_ca12c302c9_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4050/4209490712_ca12c302c9.jpg"
	},
    	{
		title: "Jen 0138 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2607/4209490570_8cfeafb1b3_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2607/4209490570_8cfeafb1b3.jpg"
	},
    	{
		title: "Jeannine 0244 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4018/4208727961_bf71d84a63_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4018/4208727961_bf71d84a63.jpg"
	},
    	{
		title: "Group 0285 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2708/4208727611_35fca6ecf0_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2708/4208727611_35fca6ecf0.jpg"
	},
    	{
		title: "Deborah Meah Kaylyn 0279 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4063/4209489906_7b6e5760d9_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4063/4209489906_7b6e5760d9.jpg"
	},
    	{
		title: "Deborah Danielle 0319 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2546/4208727139_2eca35a9e7_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2546/4208727139_2eca35a9e7.jpg"
	},
    	{
		title: "Deborah Cheyenne Kaylyn 0289 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4011/4208726829_47487cd210_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4011/4208726829_47487cd210.jpg"
	},
    	{
		title: "Danielle 0264 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2761/4209489166_d6136d9b83_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2761/4209489166_d6136d9b83.jpg"
	},
    	{
		title: "Crystal Ashley G 0171 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2575/4208726465_ab188aefa0_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2575/4208726465_ab188aefa0.jpg"
	},
    	{
		title: "Crystal 0239 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2504/4208726289_5630ca5d7f_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2504/4208726289_5630ca5d7f.jpg"
	},
    	{
		title: "Crystal 0165 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4023/4208726147_85db65cc03_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4023/4208726147_85db65cc03.jpg"
	},
    	{
		title: "Christina 0202 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2738/4208726027_b8e60586e7_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2738/4208726027_b8e60586e7.jpg"
	},
    	{
		title: "Cheyenne Brie Danielle 0317 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2563/4209488470_cbda8634bc_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2563/4209488470_cbda8634bc.jpg"
	},
    	{
		title: "Cheyenne Brie 0310 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2672/4209488320_13bc28787d_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2672/4209488320_13bc28787d.jpg"
	},
    	{
		title: "Cheyenne 0232 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4056/4209488158_b7403bb290_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4056/4209488158_b7403bb290.jpg"
	},
    	{
		title: "Brittany W 0293a Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4044/4208725447_47df0b891b_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4044/4208725447_47df0b891b.jpg"
	},
    	{
		title: "Brittany K Valerie 0173 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4061/4209487880_00dce18eba_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4061/4209487880_00dce18eba.jpg"
	},
    	{
		title: "Brittany K 0205 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4038/4208725193_0d4674fdf8_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4038/4208725193_0d4674fdf8.jpg"
	},
    	{
		title: "Brie Deborah Shannon Michele 0277 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2598/4208725005_e6e22f595f_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2598/4208725005_e6e22f595f.jpg"
	},
    	{
		title: "Brie 0309 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4027/4208724825_aebcbd5f35_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4027/4208724825_aebcbd5f35.jpg"
	},
    	{
		title: "Ashley G Danielle 0322 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4072/4209487192_5036ec1e90_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4072/4209487192_5036ec1e90.jpg"
	},
    	{
		title: "Ashley G 0248 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2604/4208724543_5881c3e09a_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2604/4208724543_5881c3e09a.jpg"
	},
    	{
		title: "Amanda 0222 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2668/4209486868_3661c0c97c_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2668/4209486868_3661c0c97c.jpg"
	},
    	{
		title: "Shannon 4979 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4031/4398482340_48f558330e_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4031/4398482340_48f558330e.jpg"
	},
    	{
		title: "Miranda Marissa 4947 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4059/4398482124_1b7894e4e3_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4059/4398482124_1b7894e4e3.jpg"
	},
    	{
		title: "Miranda 4976 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2730/4397714973_190a412c43_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2730/4397714973_190a412c43.jpg"
	},
    	{
		title: "Marissa 4948 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4071/4398481616_731288f91a_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4071/4398481616_731288f91a.jpg"
	},
    	{
		title: "Jenneane Veronika Christina Danielle 4936 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2731/4397714429_7943b08dc1_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2731/4397714429_7943b08dc1.jpg"
	},
    	{
		title: "Jenna Danielle 4943 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2739/4397714229_97b139b394_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2739/4397714229_97b139b394.jpg"
	},
    	{
		title: "Jenna Ashley 4984 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4019/4397714067_8a6e1bb267_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4019/4397714067_8a6e1bb267.jpg"
	},
    	{
		title: "Jenna 4942 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4070/4398480824_352e75c68a_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4070/4398480824_352e75c68a.jpg"
	},
    	{
		title: "Jen K 4961 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2764/4397713659_a1d6bf9af4_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2764/4397713659_a1d6bf9af4.jpg"
	},
    	{
		title: "Jen C 4989 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2436/4397713185_c4094cfb17_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2436/4397713185_c4094cfb17.jpg"
	},
    	{
		title: "Danielle 5004 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4040/4398479800_ccecd6a637_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4040/4398479800_ccecd6a637.jpg"
	},
    	{
		title: "Christina 4937 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4013/4397712597_f27894fe4e_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4013/4397712597_f27894fe4e.jpg"
	},
    	{
		title: "Cheyenne Kaylen 4977 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2790/4397712277_e129097309_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2790/4397712277_e129097309.jpg"
	},
    	{
		title: "Amanda Ally 5000 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4045/4397712129_07064a3239_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4045/4397712129_07064a3239.jpg"
	},
    	{
		title: "Amanda 4993 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4041/4397711899_8001fed8d0_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4041/4397711899_8001fed8d0.jpg"
	},
    	{
		title: "Ally Danielle 4953 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2786/4398478430_3965226c0f_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2786/4398478430_3965226c0f.jpg"
	},
    	{
		title: "Ally 4951 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2453/4398478078_73931323d8_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2453/4398478078_73931323d8.jpg"
	},
    	{
		title: "Sarah B Sarah M 1026 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2767/4397710917_e18726d549_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2767/4397710917_e18726d549.jpg"
	},
    	{
		title: "Sandi 1023 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4060/4398477540_50276d5e3e_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4060/4398477540_50276d5e3e.jpg"
	},
    	{
		title: "Marissa 1037 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2800/4397710617_a296d19299_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2800/4397710617_a296d19299.jpg"
	},
    	{
		title: "Jessica 1105 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4065/4398477214_cb02a748a2_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4065/4398477214_cb02a748a2.jpg"
	},
    	{
		title: "Jen K Marissa 1033 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4035/4397710329_9f99e2eb14_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4035/4397710329_9f99e2eb14.jpg"
	},
    	{
		title: "Jen K Ashley G 1092 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4047/4397710173_eaf548aed6_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4047/4397710173_eaf548aed6.jpg"
	},
    	{
		title: "Jen K 1046 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2703/4398476652_4e71d4c662_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2703/4398476652_4e71d4c662.jpg"
	},
    	{
		title: "Christina 1074 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4008/4397709865_6379c63419_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4008/4397709865_6379c63419.jpg"
	},
    	{
		title: "Ashley G Marissa 1058 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4057/4397709711_68659476c6_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4057/4397709711_68659476c6.jpg"
	},
    	{
		title: "Ashley G Christina 1066 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2776/4398476142_eec2759b9c_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2776/4398476142_eec2759b9c.jpg"
	},
    	{
		title: "Ashley G 1115 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2671/4397709299_42c6957285_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2671/4397709299_42c6957285.jpg"
	},
    	{
		title: "Amanda 1034 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2704/4398475696_6a550b1e81_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2704/4398475696_6a550b1e81.jpg"
	},
    	{
		title: "Ally 1025b Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4060/4397708905_463d7c2155_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4060/4397708905_463d7c2155.jpg"
	},
    	{
		title: "Stephanie Michele 7878 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2713/4397708731_d73dfb7dc6_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2713/4397708731_d73dfb7dc6.jpg"
	},
    	{
		title: "Stephanie Crystal 7834 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2720/4397708557_f7041ec968_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2720/4397708557_f7041ec968.jpg"
	},
    	{
		title: "Stephanie Brittney Danielle 7907 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2750/4397708391_2696b3db0e_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2750/4397708391_2696b3db0e.jpg"
	},
    	{
		title: "Stephanie 7823 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4005/4397708151_70076420c3_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4005/4397708151_70076420c3.jpg"
	},
    	{
		title: "Selina Brandy 7808 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2729/4397707971_107dc5fa65_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2729/4397707971_107dc5fa65.jpg"
	},
    	{
		title: "Raluca 7896 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2734/4397707723_0aab6475f3_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2734/4397707723_0aab6475f3.jpg"
	},
    	{
		title: "Melisa Raluca 7918a Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2677/4398474252_414bc84447_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2677/4398474252_414bc84447.jpg"
	},
    	{
		title: "Melisa Alyssa 7925 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2718/4397707287_f3e6de3e51_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2718/4397707287_f3e6de3e51.jpg"
	},
    	{
		title: "Marissa 7830 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2671/4398473918_34d72e5d0d_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2671/4398473918_34d72e5d0d.jpg"
	},
    	{
		title: "Jen K 7813 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2797/4398473770_8ac83fc0aa_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2797/4398473770_8ac83fc0aa.jpg"
	},
    	{
		title: "Group 7953 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2734/4398473582_339a9ae035_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2734/4398473582_339a9ae035.jpg"
	},
    	{
		title: "Group 7930 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4038/4397706571_060bd3e339_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4038/4397706571_060bd3e339.jpg"
	},
    	{
		title: "Group 7929 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2729/4397706299_8e2c7434cd_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2729/4397706299_8e2c7434cd.jpg"
	},
    	{
		title: "Group 7867 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4041/4397706075_472078d55f_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4041/4397706075_472078d55f.jpg"
	},
    	{
		title: "Group 7824 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4063/4398472628_2642f99f91_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4063/4398472628_2642f99f91.jpg"
	},
    	{
		title: "Danielle 7910 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4046/4398472438_a9efdb9aa6_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4046/4398472438_a9efdb9aa6.jpg"
	},
    	{
		title: "Crystal Stephanie Marissa 7837 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4034/4398472218_165b8b927b_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4034/4398472218_165b8b927b.jpg"
	},
    	{
		title: "Chrystal Melisa 7947 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2804/4398472014_0552ef5d32_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2804/4398472014_0552ef5d32.jpg"
	},
    	{
		title: "Chrystal Danielle 7950 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2765/4398471834_7b95c84b7f_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2765/4398471834_7b95c84b7f.jpg"
	},
    	{
		title: "Chrystal 7931 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4058/4397704911_3fcdf237a8_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4058/4397704911_3fcdf237a8.jpg"
	},
    	{
		title: "Christina Ally 7852b Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2788/4397704747_ed84a2af9f_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2788/4397704747_ed84a2af9f.jpg"
	},
    	{
		title: "Cheyenne Kari 7874 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2728/4397704533_7b45f01caf_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2728/4397704533_7b45f01caf.jpg"
	},
    	{
		title: "Brandy 7819a Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4046/4398471164_f28894467c_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4046/4398471164_f28894467c.jpg"
	},
    	{
		title: "Ashley G Stephanie 7871 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2696/4397704245_7836789c6a_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2696/4397704245_7836789c6a.jpg"
	},
    	{
		title: "Ashley G 7842 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4011/4398470900_c3578c3f2f_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4011/4398470900_c3578c3f2f.jpg"
	},
    	{
		title: "Ashley Brittney Valerie 7828 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4034/4397703941_5eafac52b1_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4034/4397703941_5eafac52b1.jpg"
	},
    	{
		title: "Alyssa 7953 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2772/4398470586_a797e66931_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2772/4398470586_a797e66931.jpg"
	},
    	{
		title: "Ally 7848 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4065/4397703657_337e3e7b73_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4065/4397703657_337e3e7b73.jpg"
	},
    	{
		title: "Valerie Nicci 6542 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4017/4397703509_bfb679d096_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4017/4397703509_bfb679d096.jpg"
	},
    	{
		title: "Shannon Amanda 6544 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4016/4398470232_ee9965d0bd_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4016/4398470232_ee9965d0bd.jpg"
	},
    	{
		title: "Meah Shannon Jessica 6504 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4013/4398470164_3eb018a473_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4013/4398470164_3eb018a473.jpg"
	},
    	{
		title: "Marissa 6592 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4020/4397703329_1ecb97626e_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4020/4397703329_1ecb97626e.jpg"
	},
    	{
		title: "Jessica Amanda Danielle 6576 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4017/4398470004_2556669591_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4017/4398470004_2556669591.jpg"
	},
    	{
		title: "Jessica 6581 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4033/4398469926_1ff7b41eff_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4033/4398469926_1ff7b41eff.jpg"
	},
    	{
		title: "Crystal Danielle Meah 6529 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4048/4398469886_7552fb1544_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4048/4398469886_7552fb1544.jpg"
	},
    	{
		title: "Crystal Amanda 6527 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4058/4398469840_d550c98bcb_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4058/4398469840_d550c98bcb.jpg"
	},
    	{
		title: "Brittney 6521 Web Lg",
		thumbnailURL: "http://farm3.static.flickr.com/2745/4397703055_eac2f10926_s.jpg",
		fullURL: "http://farm3.static.flickr.com/2745/4397703055_eac2f10926.jpg"
	},
    	{
		title: "Brandi Amanda 6558 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4064/4398469758_32d1b046b2_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4064/4398469758_32d1b046b2.jpg"
	},
    	{
		title: "Ashley G Marissa 6536 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4033/4398469696_e84bcc8a9a_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4033/4398469696_e84bcc8a9a.jpg"
	},
    	{
		title: "Ashley G Ashley C Crystal 6535 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4003/4397702883_6a6e5967ca_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4003/4397702883_6a6e5967ca.jpg"
	},
    	{
		title: "Ashley G 6531 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4059/4397702819_c740d648b1_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4059/4397702819_c740d648b1.jpg"
	},
    	{
		title: "Amanda Marissa 6539 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4002/4398469508_8a81e6c786_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4002/4398469508_8a81e6c786.jpg"
	},
    	{
		title: "Amanda Danielle Jessica 6570 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4054/4398469440_7c7fc4a629_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4054/4398469440_7c7fc4a629.jpg"
	},
    	{
		title: "Amanda 6551 Web Lg",
		thumbnailURL: "http://farm5.static.flickr.com/4044/4398469368_a3e0b2817d_s.jpg",
		fullURL: "http://farm5.static.flickr.com/4044/4398469368_a3e0b2817d.jpg"
	}
];


$(document).ready(function() {

    totalLength = photoData.length;
    populateThumbnails(startPos);
    
});

function fillMainImage(picToPull) {

    if (picToPull != "-1") {

        //picTitle = photoData[picToPull].title;
        picUrl = photoData[picToPull].fullURL;

        //$("#divMainPhoto").css("background-image", "url('" + picUrl + "')");
        $("#imgTest").attr("src",  picUrl);
    
    }

}

function populateThumbnails(thisPos) {

    fillMainImage(thisPos);    
    
    for (i=0; i<=4; i++)
    {     
    
        if (thisPos <= (totalLength-1)) {
        
            var thisThumb = "#divThumb_" + i;
            
            var thisUrl = photoData[thisPos].thumbnailURL;
            
            $(thisThumb).css("background-image", "");                
            $(thisThumb).css("background-image", "url('" + thisUrl + "')");        
            $(thisThumb).attr("rel", (thisPos));  
            $(thisThumb).css("cursor", "pointer");

            
        } else {
        
            var thisThumb = "#divThumb_" + i;
            $(thisThumb).css("background-image", "");
            $(thisThumb).attr("rel", ("-1"));                            
            $(thisThumb).css("cursor", "default");            
        
        }
        
        thisPos = thisPos + 1;
        
    }

    
    if (totalLength > thisPos) {
    
        navRight = true;        
    
    } else {
    
        navRight = false;    
    
    }

    startPos = thisPos;
    rebuildNavs(startPos);
     
}

function moveLeft() {

    if (navLeft) {
        populateThumbnails((startPos - 10));
    }

}

function moveRight() {

    if (navRight) {
    
        populateThumbnails(startPos);    
        
    }        

}

function rebuildNavs(startPos) {

     if (startPos > 5) {
     
        $("#divMoveLeft").css("background-image", "url('/app_themes/default/images/FlickrNavLeft_On.png')");
        $("#divMoveLeft").css("cursor", "pointer");        
     
     } else {
     
        $("#divMoveLeft").css("background-image", "url('/app_themes/default/images/FlickrNavLeft_Off.png')");
        $("#divMoveLeft").css("cursor", "default");             
     
     }

         
     var picsLeft = ((totalLength-1) - startPos+5);
     
     if (navRight == true) {
     
        $("#divMoveRight").css("background-image", "url('/app_themes/default/images/FlickrNavRight_On.png')");
        $("#divMoveRight").css("cursor", "pointer");        
     
     } else {
     
        $("#divMoveRight").css("background-image", "url('/app_themes/default/images/FlickrNavRight_Off.png')");
        $("#divMoveRight").css("cursor", "default");             
     
     }

     
}
