window.thumbnails = {};
															thumbnails[3133080] = clik.newPhoto({"id":3133080,"src":"untitled web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Untitled","height":179});
															thumbnails[1103566] = clik.newPhoto({"id":1103566,"src":"right-panel_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1103566.html","width":130,"caption":"Rob_Logan_Little_Boy","height":99});
															thumbnails[1103545] = clik.newPhoto({"id":1103545,"src":"You-Really-Are-the-Bomb-(ir_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1103545.html","width":130,"caption":"Rob Logan, Ironman series 1 (left panel-You know you really are the Bomb, right panel- Little Boy)","height":50});
															thumbnails[1103561] = clik.newPhoto({"id":1103561,"src":"left panel_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1103561.html","width":130,"caption":"Rob Logan, You know you really are the Bomb","height":100});
															thumbnails[1103592] = clik.newPhoto({"id":1103592,"src":"detail-2_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1103592.html","width":130,"caption":"Rob Logan, Little Boy detail shot","height":195});
															thumbnails[1103642] = clik.newPhoto({"id":1103642,"src":"detail-1_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1103642.html","width":130,"caption":"Rob Logan, You really are the bomb detail","height":86});
															thumbnails[1010909] = clik.newPhoto({"id":1010909,"src":"rob-logan--iron-man-2_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1010909.html","width":130,"caption":"Rob Logan, Iron Man Series 2 (left panel- Polaris, right panel- Sidewinder)","height":50});
															thumbnails[1353755] = clik.newPhoto({"id":1353755,"src":"sidewinder_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1353755.html","width":130,"caption":"Rob Logan, Polaris","height":100});
															thumbnails[1353757] = clik.newPhoto({"id":1353757,"src":"polaris_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1353757.html","width":130,"caption":"Rob Logan, Side-winder","height":101});
															thumbnails[1010910] = clik.newPhoto({"id":1010910,"src":"sidewinder-detail-2_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1010910.html","width":130,"caption":"Rob Logan, Polaris detail 2","height":86});
															thumbnails[1010911] = clik.newPhoto({"id":1010911,"src":"polaris-detail-1_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1010911.html","width":130,"caption":"Rob Logan, Sidewinder detail ","height":86});
															thumbnails[1010913] = clik.newPhoto({"id":1010913,"src":"polaris-detail-2_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1010913.html","width":130,"caption":"Rob Logan, Sidewinder detail 2","height":86});
															thumbnails[1103657] = clik.newPhoto({"id":1103657,"src":"sidewinder-detail-1_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1103657.html","width":130,"caption":"","height":86});
															thumbnails[1004124] = clik.newPhoto({"id":1004124,"src":"rob-logan-pc1_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1004124.html","width":130,"caption":"Rob Logan, Jet","height":180});
															thumbnails[1004127] = clik.newPhoto({"id":1004127,"src":"rob-logan-bc_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1004127.html","width":130,"caption":"Rob Logan, Jet (detail)","height":189});
															thumbnails[956660] = clik.newPhoto({"id":956660,"src":"cropped_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956660.html","width":130,"caption":"Rob Logan, March of the penguin","height":170});
															thumbnails[956673] = clik.newPhoto({"id":956673,"src":"detail_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956673.html","width":130,"caption":"Rob Logan, March of the penguin detail","height":65});
															thumbnails[1103683] = clik.newPhoto({"id":1103683,"src":"untitleddetail_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1103683.html","width":130,"caption":"Rob Logan, Untitled detail","height":98});
															thumbnails[1103686] = clik.newPhoto({"id":1103686,"src":"untitled1_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_1103686.html","width":130,"caption":"Rob Logan, Untitled","height":99});
															thumbnails[952215] = clik.newPhoto({"id":952215,"src":"im0001_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_952215.html","width":130,"caption":"Rob Logan, Maelstrom","height":149});
															thumbnails[952218] = clik.newPhoto({"id":952218,"src":"im0020_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_952218.html","width":130,"caption":"hectic","height":90});
															thumbnails[952226] = clik.newPhoto({"id":952226,"src":"everything counts_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_952226.html","width":130,"caption":"Rob Logan, Everything counts","height":62});
															thumbnails[952229] = clik.newPhoto({"id":952229,"src":"im0012_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_952229.html","width":130,"caption":"advance","height":101});
															thumbnails[952231] = clik.newPhoto({"id":952231,"src":"im0011_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_952231.html","width":130,"caption":"three","height":101});
															thumbnails[952233] = clik.newPhoto({"id":952233,"src":"im0010_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_952233.html","width":130,"caption":"man of iron","height":103});
															thumbnails[956633] = clik.newPhoto({"id":956633,"src":"competitive world_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956633.html","width":130,"caption":"Rob Logan, Competitive world","height":178});
															thumbnails[956634] = clik.newPhoto({"id":956634,"src":"competitive world detail_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956634.html","width":130,"caption":"Rob Logan, Competitive world detail","height":195});
															thumbnails[956636] = clik.newPhoto({"id":956636,"src":"competitive world detail 2_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956636.html","width":130,"caption":"Rob Logan, Competitive world detail 2","height":195});
															thumbnails[956638] = clik.newPhoto({"id":956638,"src":"everything counts detail_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956638.html","width":130,"caption":"Rob Logan, Everything counts detail","height":89});
															thumbnails[956640] = clik.newPhoto({"id":956640,"src":"hectic detail_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956640.html","width":130,"caption":"Rob Logan, Hectic detail","height":87});
															thumbnails[956643] = clik.newPhoto({"id":956643,"src":"hectic detail 2_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956643.html","width":130,"caption":"Rob Logan, Hectic detail 2","height":87});
															thumbnails[956645] = clik.newPhoto({"id":956645,"src":"nifty pour 1_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956645.html","width":130,"caption":"nifty pour 1","height":89});
															thumbnails[956646] = clik.newPhoto({"id":956646,"src":"nifty pour 2_thumb.jpg","galleries_id":72297,"server_id":1,"link":"photo_956646.html","width":130,"caption":"nifty pour 2","height":87});
															thumbnails[956648] = clik.newPhoto({"id":956648,"src":"shot right through_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_956648.html","width":130,"caption":"shot right through","height":93});
															thumbnails[956650] = clik.newPhoto({"id":956650,"src":"taking a ride with my best friend_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_956650.html","width":130,"caption":"taking a ride with my best friend","height":94});
															thumbnails[956652] = clik.newPhoto({"id":956652,"src":"about time_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_956652.html","width":130,"caption":"about time","height":95});
															thumbnails[956654] = clik.newPhoto({"id":956654,"src":"what we've done to you_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_956654.html","width":130,"caption":"what we've done to you","height":182});
															thumbnails[956657] = clik.newPhoto({"id":956657,"src":"pass us by_thumb.jpg","galleries_id":71551,"server_id":1,"link":"photo_956657.html","width":130,"caption":"pass us by","height":92});
															thumbnails[2604471] = clik.newPhoto({"id":2604471,"src":"nostromoweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604471.html","width":130,"caption":"Nostromo","height":128});
															thumbnails[2604474] = clik.newPhoto({"id":2604474,"src":"followvictorweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604474.html","width":130,"caption":"Follow Victor","height":130});
															thumbnails[2604488] = clik.newPhoto({"id":2604488,"src":"kissthisweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604488.html","width":130,"caption":"Kiss this <br>\r\n","height":128});
															thumbnails[2604487] = clik.newPhoto({"id":2604487,"src":"hitweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604487.html","width":130,"caption":"Hit","height":129});
															thumbnails[2604491] = clik.newPhoto({"id":2604491,"src":"nofunweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604491.html","width":130,"caption":"No Fun<br>\r\n","height":88});
															thumbnails[2604482] = clik.newPhoto({"id":2604482,"src":"littlegreenbagweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604482.html","width":130,"caption":"Little Green Bag<br>\r\n<br>\r\n","height":88});
															thumbnails[2604483] = clik.newPhoto({"id":2604483,"src":"coconutweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604483.html","width":130,"caption":"Coconut<br>\r\n","height":88});
															thumbnails[2604490] = clik.newPhoto({"id":2604490,"src":"disorderweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604490.html","width":130,"caption":"Disorder<br>\r\n","height":89});
															thumbnails[1794916] = clik.newPhoto({"id":1794916,"src":"strangeloveweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_1794916.html","width":130,"caption":"Rob Logan, Strangelove","height":105});
															thumbnails[1794935] = clik.newPhoto({"id":1794935,"src":"theyarecomingweb1_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_1794935.html","width":130,"caption":"Rob Logan, They are coming","height":129});
															thumbnails[1794979] = clik.newPhoto({"id":1794979,"src":"afterhoursweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_1794979.html","width":130,"caption":"Rob Logan, After Hours","height":128});
															thumbnails[1794982] = clik.newPhoto({"id":1794982,"src":"gimmieshelterweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_1794982.html","width":130,"caption":"Rob Logan, Gimmie Shelter","height":151});
															thumbnails[8596166] = clik.newPhoto({"id":8596166,"src":"the_fall_on_and_on_low_res_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_8596166.html","width":130,"caption":"The Fall (on and on)","height":216});
															thumbnails[5126968] = clik.newPhoto({"id":5126968,"src":"At-what-cost-study-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5126968.html","width":130,"caption":"At What Cost (study)","height":90});
															thumbnails[7647375] = clik.newPhoto({"id":7647375,"src":"Japan-Fundraiser-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_7647375.html","width":130,"caption":"Untitled- Piece for Japan Fund raiser","height":93});
															thumbnails[5585045] = clik.newPhoto({"id":5585045,"src":"wall-drawing-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5585045.html","width":130,"caption":"Wall Drawing for \"Beast\" at Standpoint London, ","height":153});
															thumbnails[5585048] = clik.newPhoto({"id":5585048,"src":"exhibition-view-1-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5585048.html","width":130,"caption":"Exhibition View, ","height":85});
															thumbnails[5546465] = clik.newPhoto({"id":5546465,"src":"edge_condition_web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5546465.html","width":130,"caption":"Edge Condition","height":130});
															thumbnails[5546473] = clik.newPhoto({"id":5546473,"src":"at-what-cost-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5546473.html","width":130,"caption":"At What Cost","height":81});
															thumbnails[5078220] = clik.newPhoto({"id":5078220,"src":"dig-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5078220.html","width":130,"caption":"Dig","height":139});
															thumbnails[5126985] = clik.newPhoto({"id":5126985,"src":"new-dawn-fades-study_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5126985.html","width":130,"caption":"New Dawn Fades (study)","height":92});
															thumbnails[5126959] = clik.newPhoto({"id":5126959,"src":"rise-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5126959.html","width":130,"caption":"Rise","height":168});
															thumbnails[5078368] = clik.newPhoto({"id":5078368,"src":"study-detail-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5078368.html","width":130,"caption":"Study detail (untitled)","height":86});
															thumbnails[5078299] = clik.newPhoto({"id":5078299,"src":"study_web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_5078299.html","width":130,"caption":"Study (untitled)","height":92});
															thumbnails[4867945] = clik.newPhoto({"id":4867945,"src":"drive_web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_4867945.html","width":130,"caption":"Drive","height":100});
															thumbnails[4276468] = clik.newPhoto({"id":4276468,"src":"competitive_world_5_web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_4276468.html","width":130,"caption":"Competitive World Installation View 1","height":74});
															thumbnails[4276456] = clik.newPhoto({"id":4276456,"src":"competitive_world_4_web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_4276456.html","width":130,"caption":"Competitive World Installation View 2","height":52});
															thumbnails[4276451] = clik.newPhoto({"id":4276451,"src":"competitive_world_3_web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_4276451.html","width":130,"caption":"Competitive World Installation View 3","height":86});
															thumbnails[3935087] = clik.newPhoto({"id":3935087,"src":"new-blood-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3935087.html","width":130,"caption":"New Blood","height":80});
															thumbnails[3865001] = clik.newPhoto({"id":3865001,"src":"potential-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3865001.html","width":130,"caption":"Potential","height":81});
															thumbnails[3733595] = clik.newPhoto({"id":3733595,"src":"folding-money-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3733595.html","width":130,"caption":"Folding Money","height":73});
															thumbnails[3864997] = clik.newPhoto({"id":3864997,"src":"untitled-study-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3864997.html","width":130,"caption":"Study (untitled)","height":132});
															thumbnails[3445387] = clik.newPhoto({"id":3445387,"src":"scramble-web2_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3445387.html","width":130,"caption":"scramble","height":93});
															thumbnails[3604640] = clik.newPhoto({"id":3604640,"src":"gulf-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3604640.html","width":130,"caption":"Gulf","height":129});
															thumbnails[3445400] = clik.newPhoto({"id":3445400,"src":"ascentweb_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3445400.html","width":130,"caption":"Ascent","height":124});
															thumbnails[3249407] = clik.newPhoto({"id":3249407,"src":"competitive-world-web1_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3249407.html","width":130,"caption":"Competitive World","height":164});
															thumbnails[3249405] = clik.newPhoto({"id":3249405,"src":"viscous-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3249405.html","width":130,"caption":"Viscous","height":187});
															thumbnails[3935093] = clik.newPhoto({"id":3935093,"src":"study-for-killer-web_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_3935093.html","width":130,"caption":"Study (for Hunger)","height":121});
															thumbnails[2639343] = clik.newPhoto({"id":2639343,"src":"26hourslaidbackweb_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_2639343.html","width":130,"caption":"26 Hours Laid Back","height":129});
															thumbnails[2604470] = clik.newPhoto({"id":2604470,"src":"wrathdeatilweb_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_2604470.html","width":130,"caption":"The Great Day of His Wrath (Sunday Morning) detail.","height":86});
															thumbnails[2604466] = clik.newPhoto({"id":2604466,"src":"wrathweb_thumb.jpg","galleries_id":324196,"server_id":1,"link":"photo_2604466.html","width":130,"caption":"The Great Day of His Wrath (Sunday Morning) ","height":102});
															thumbnails[2604480] = clik.newPhoto({"id":2604480,"src":"reservoir-dogweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604480.html","width":130,"caption":"Reservoir Dog","height":131});
															thumbnails[2604498] = clik.newPhoto({"id":2604498,"src":"never-let-me-downweb_thumb.jpg","galleries_id":120626,"server_id":1,"link":"photo_2604498.html","width":130,"caption":"Never Let Me Down","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[324196] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Current","link":"gallery_324196.html","maxRecords":0.0,"photoIDs":[8596166.0,5126968.0,7647375.0,5585045.0,5585048.0,5546465.0,5546473.0,5078220.0,5126985.0,5126959.0,5078368.0,5078299.0,4867945.0,4276468.0,4276456.0,4276451.0,3935087.0,3865001.0,3733595.0,3864997.0,3445387.0,3604640.0,3445400.0,3249407.0,3249405.0,3935093.0,2639343.0,2604470.0,2604466.0],"skipIndex":0,"section_code":"gallery","featured_images":"8596166,3935087","id":324196,"singleSection":false});				  						galleries[324195] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Archive","link":"gallery_324195.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"2604480,1004127,1004124,956673,952215","id":324195,"singleSection":false});				  						galleries[120626] = clik.newGallery({"parentGallery":324195,"usePopups":false,"title":2008.0,"link":"gallery_120626.html","maxRecords":0.0,"photoIDs":[2604471.0,2604474.0,2604488.0,2604487.0,2604491.0,2604482.0,2604483.0,2604490.0,1794916.0,1794935.0,1794979.0,1794982.0,2604480.0,2604498.0],"skipIndex":0,"section_code":"gallery","featured_images":2604480.0,"id":120626,"singleSection":false});				  						galleries[72297] = clik.newGallery({"parentGallery":324195,"usePopups":false,"title":2007.0,"link":"gallery_72297.html","maxRecords":0.0,"photoIDs":[1103566.0,1103545.0,1103561.0,1103592.0,1103642.0,1010909.0,1353755.0,1353757.0,1010910.0,1010911.0,1010913.0,1103657.0,1004124.0,1004127.0,956660.0,956673.0,1103683.0,1103686.0,952226.0,956633.0,956634.0,956636.0,956638.0,956640.0,956643.0,956645.0,956646.0],"skipIndex":0,"section_code":"gallery","featured_images":"1004127,1004124,956673","id":72297,"singleSection":false});				  						galleries[71551] = clik.newGallery({"parentGallery":324195,"usePopups":false,"title":2006.0,"link":"gallery_71551.html","maxRecords":0.0,"photoIDs":[952215.0,952218.0,952229.0,952231.0,952233.0,956648.0,956650.0,956652.0,956654.0,956657.0],"skipIndex":0,"section_code":"gallery","featured_images":952215.0,"id":71551,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5585048,5546465,5078368,4867945,4276468,3935087,3865001,3445387,2604470,2604480,2604498';
imageSets[2] = '1004127,1004124,956673,952215,8596166,3935087,2604480';
imageSets[3] = '4276468';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/bobbycheddar/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/bobbycheddar/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Rob Logan: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

