function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[1918406]=new thumbnail(1918406,"128627","all saints day","IMG_2335_thumb.JPG",130,98,1);thumbnails[1918425]=new thumbnail(1918425,"128627","all saints day","IMG_2351_thumb.JPG",130,90,1);thumbnails[1918431]=new thumbnail(1918431,"128627","all saints day","IMG_2359_thumb.JPG",130,176,1);thumbnails[1918433]=new thumbnail(1918433,"128627","all saints day","IMG_2392_thumb.JPG",130,94,1);thumbnails[1918434]=new thumbnail(1918434,"128627","all saints day","IMG_2441_thumb.JPG",130,91,1);thumbnails[1918437]=new thumbnail(1918437,"128627","all saints day","IMG_2453_thumb.JPG",130,111,1);thumbnails[1918438]=new thumbnail(1918438,"128627","all saints day","IMG_2461_thumb.JPG",130,90,1);thumbnails[1918442]=new thumbnail(1918442,"128627","all saints day","IMG_2466_thumb.JPG",130,90,1);thumbnails[1918443]=new thumbnail(1918443,"128627","all saints day","IMG_2473_thumb.JPG",130,88,1);thumbnails[1918446]=new thumbnail(1918446,"128627","all saints day","IMG_2490_thumb.JPG",130,101,1);thumbnails[1851365]=new thumbnail(1851365,"124844","the sports complex","ruineds in korca_thumb.JPG",130,87,1);thumbnails[1847117]=new thumbnail(1847117,"124770","the chemical factory","IA7E2643_thumb.JPG",130,182,1);thumbnails[1847134]=new thumbnail(1847134,"124770","the chemical factory","IA7E2657_thumb.JPG",130,77,1);thumbnails[1847139]=new thumbnail(1847139,"124770","the chemical factory","IA7E2661_thumb.JPG",130,87,1);thumbnails[1847270]=new thumbnail(1847270,"124770","the chemical factory","IA7E2674_thumb.JPG",130,194,1);thumbnails[1847289]=new thumbnail(1847289,"124770","the chemical factory","IA7E2667_thumb.JPG",130,87,1);thumbnails[1847299]=new thumbnail(1847299,"124770","the chemical factory","IA7E2676_thumb.JPG",130,87,1);thumbnails[1847308]=new thumbnail(1847308,"124770","the chemical factory","IA7E2703_thumb.JPG",130,98,1);thumbnails[1847312]=new thumbnail(1847312,"124770","the chemical factory","IA7E2684_thumb.JPG",130,72,1);thumbnails[1847320]=new thumbnail(1847320,"124770","the chemical factory","IA7E2712_thumb.JPG",130,87,1);thumbnails[1853763]=new thumbnail(1853763,"124774","the mushrooms","IA7E26881_thumb.JPG",130,87,1);thumbnails[1853777]=new thumbnail(1853777,"124774","the fast food bunker","IMG_4451_thumb.JPG",130,87,1);thumbnails[1853788]=new thumbnail(1853788,"124774","well in to the sea","IA7E26921_thumb.JPG",130,80,1);thumbnails[1853791]=new thumbnail(1853791,"124774","the house bunker","IMG_4456_thumb.JPG",130,71,1);thumbnails[1853793]=new thumbnail(1853793,"124774","big mouth","IMG_4485_thumb.JPG",130,87,1);thumbnails[1853795]=new thumbnail(1853795,"124774","part of a tenis court","IMG_4480_thumb.JPG",130,87,1);thumbnails[1853803]=new thumbnail(1853803,"124774","they talk some times","IMG_4492_thumb.JPG",130,87,1);thumbnails[1853812]=new thumbnail(1853812,"124774","onother house bunker","IMG_4509_thumb.JPG",130,77,1);thumbnails[1853823]=new thumbnail(1853823,"124774","they are the atomic cold war bunkers","IMG_4584_thumb.JPG",130,109,1);thumbnails[1918382]=new thumbnail(1918382,"128627","all saints day","IMG_2325_thumb.JPG",130,89,1);thumbnails[1828508]=new thumbnail(1828508,"123217","salar de uyuni","P10204142_thumb.JPG",130,98,1);thumbnails[1828511]=new thumbnail(1828511,"123217","salar de uyuni","P1020415_thumb.JPG",130,98,1);thumbnails[1828521]=new thumbnail(1828521,"123217","salar de uyuni","P1020419_thumb.JPG",130,98,1);thumbnails[1828532]=new thumbnail(1828532,"123217","salar de uyuni","P1020433_thumb.JPG",130,98,1);thumbnails[1828540]=new thumbnail(1828540,"123217","salar de uyuni","P1020439_thumb.JPG",130,98,1);thumbnails[1828549]=new thumbnail(1828549,"123217","salar de uyuni","P1020450_thumb.JPG",130,98,1);thumbnails[1828565]=new thumbnail(1828565,"123217","salar de uyuni","P1020447_thumb.JPG",130,98,1);thumbnails[1828567]=new thumbnail(1828567,"123217","salar de uyuni","P1020457_thumb.JPG",130,98,1);thumbnails[1828568]=new thumbnail(1828568,"123217","salar de uyuni","P1020462_thumb.JPG",130,98,1);thumbnails[1828578]=new thumbnail(1828578,"123217","salar de uyuni","P1020475_thumb.JPG",130,92,1);thumbnails[1828579]=new thumbnail(1828579,"123217","salar de uyuni","P1020467_thumb.JPG",130,98,1);thumbnails[1828581]=new thumbnail(1828581,"123217","salar de uyuni","P1020469_thumb.JPG",130,98,1);thumbnails[1828722]=new thumbnail(1828722,"123217","salar de uyuni","IMG_0565_thumb.JPG",130,87,1);thumbnails[1828742]=new thumbnail(1828742,"123217","salar de uyuni","IMG_0563_thumb.JPG",130,87,1);thumbnails[1828744]=new thumbnail(1828744,"123217","salar de uyuni","IMG_0473_thumb.JPG",130,87,1);thumbnails[1828746]=new thumbnail(1828746,"123217","salar de uyuni","IMG_0368_thumb.JPG",130,87,1);thumbnails[1829208]=new thumbnail(1829208,"124844","bajram prayers","Bajram Prayers_thumb.jpg",130,82,1);thumbnails[1829330]=new thumbnail(1829330,"124844","playing with fire","Playing with Fire_thumb.JPG",130,192,1);thumbnails[1829353]=new thumbnail(1829353,"124844","presidential orphans","Presidential Orphans_thumb.JPG",130,85,1);thumbnails[1829362]=new thumbnail(1829362,"124844","loading flour","Loading Flour_thumb.JPG",130,161,1);thumbnails[1829465]=new thumbnail(1829465,"124844","zogu i zi","zogu izi_thumb.JPG",130,87,1);thumbnails[1829472]=new thumbnail(1829472,"124844","duam drita","IMG_7088_thumb.JPG",130,87,1);thumbnails[1829497]=new thumbnail(1829497,"124844","old pianos","Old Pianos_thumb.JPG",130,79,1);thumbnails[1829531]=new thumbnail(1829531,"124844","the pride of the sea","The Pride of the Sea_thumb.JPG",130,87,1);thumbnails[1829536]=new thumbnail(1829536,"124844","under the bridge","Under the Bridge_thumb.JPG",130,80,1);thumbnails[1831122]=new thumbnail(1831122,"124844","police in action","IMG_6125-1_thumb.jpg",130,76,1);thumbnails[1832435]=new thumbnail(1832435,"123217","salt lake","P1020483_thumb.JPG",130,98,1);thumbnails[1832821]=new thumbnail(1832821,"124844","bajram celebration","IMG_2620_thumb.JPG",130,90,1);thumbnails[2651715]=new thumbnail(2651715,"167947","","P1030690_thumb.JPG",130,98,1);thumbnails[2651719]=new thumbnail(2651719,"167947","","P1030694_thumb.JPG",130,98,1);thumbnails[2651735]=new thumbnail(2651735,"167947","","P1030698_thumb.JPG",130,98,1);thumbnails[2651874]=new thumbnail(2651874,"167947","","P1030701_thumb.JPG",130,98,1);thumbnails[2651892]=new thumbnail(2651892,"167947","","P1030710_thumb.JPG",130,173,1);thumbnails[2651893]=new thumbnail(2651893,"167947","","P1030714_thumb.JPG",130,98,1);thumbnails[2651895]=new thumbnail(2651895,"167947","","P1030732_thumb.JPG",130,98,1);thumbnails[2651899]=new thumbnail(2651899,"167947","","P1030750_thumb.JPG",130,98,1);thumbnails[2651912]=new thumbnail(2651912,"167947","","P1030755_thumb.JPG",130,98,1);thumbnails[3701192]=new thumbnail(3701192,"226123","oruro carnaval, bolivia 09","IMG_2594_thumb.JPG",130,90,1);thumbnails[3701646]=new thumbnail(3701646,"226123","oruro carnaval 09, bolivia","IMG_2677_thumb.JPG",130,101,1);thumbnails[3701650]=new thumbnail(3701650,"226123","oruro carnaval 09, bolivia","IMG_2757_thumb.JPG",130,195,1);thumbnails[3701652]=new thumbnail(3701652,"226123","oruro carnaval 09, bolivia","IMG_2993_thumb.JPG",130,168,1);thumbnails[3701662]=new thumbnail(3701662,"226123","oruro carnaval 09, bolivia","IMG_3153_thumb.JPG",130,195,1);thumbnails[3701667]=new thumbnail(3701667,"226123","oruro carnaval 09, bolivia","IMG_3275_thumb.JPG",130,199,1);thumbnails[3701669]=new thumbnail(3701669,"226123","oruro carnaval 09, bolivia","IMG_3342_thumb.JPG",130,96,1);thumbnails[3701674]=new thumbnail(3701674,"226123","oruro carnaval 09, bolivia","IMG_3576_thumb.JPG",130,189,1);thumbnails[3701679]=new thumbnail(3701679,"226123","oruro carnaval 09, bolivia","IMG_4030_thumb.JPG",130,191,1);thumbnails[3701684]=new thumbnail(3701684,"226123","oruro carnaval 09, bolivia","IMG_4073_thumb.JPG",130,105,1);thumbnails[3701694]=new thumbnail(3701694,"226123","","IMG_4150_thumb.JPG",130,91,1);thumbnails[3701761]=new thumbnail(3701761,"226123","oruro carnaval 09, bolivia","IMG_2655_thumb.JPG",130,74,1);thumbnails[3701798]=new thumbnail(3701798,"226123","oruro carnaval 09, bolivia","IMG_3023_thumb.JPG",130,104,1);thumbnails[3701841]=new thumbnail(3701841,"226123","oruro carnaval 09, bolivia","IMG_3194_thumb.JPG",130,125,1);thumbnails[3701864]=new thumbnail(3701864,"226123","oruro carnaval","IMG_3485_thumb.JPG",130,183,1);thumbnails[3707361]=new thumbnail(3707361,"","Oruro Carnaval 09, Bolivia","IMG_2611_thumb.JPG",130,92,1);thumbnails[3707362]=new thumbnail(3707362,"","Oruro Carnaval 09, Bolivia","IMG_2664_thumb.JPG",130,95,1);thumbnails[3707364]=new thumbnail(3707364,"","Oruro Carnaval 09, Bolivia","IMG_3255_thumb.JPG",130,108,1);thumbnails[3707365]=new thumbnail(3707365,"","","IMG_2683_thumb.JPG",130,113,1);thumbnails[3707370]=new thumbnail(3707370,"","Oruro Carnaval 09, Bolivia","IMG_2788_thumb.JPG",130,103,1);thumbnails[3707373]=new thumbnail(3707373,"","Ouro Carnaval 09, Bolivia","IMG_4091_thumb.JPG",130,195,1);thumbnails[4451394]=new thumbnail(4451394,"260217","","Demonstration_against_2003_Killings_thumb.JPG",130,87,1);thumbnails[4451473]=new thumbnail(4451473,"260217","","IMG_0025_thumb.JPG",130,87,1);thumbnails[4451482]=new thumbnail(4451482,"260217","","IMG_0162_thumb.JPG",130,113,1);thumbnails[4451486]=new thumbnail(4451486,"260217","","IMG_0242_thumb.JPG",130,139,1);thumbnails[4451524]=new thumbnail(4451524,"260217","","IMG_0281_thumb.JPG",130,87,1);thumbnails[4451529]=new thumbnail(4451529,"260217","","IMG_0291_thumb.JPG",130,87,1);thumbnails[4451554]=new thumbnail(4451554,"260217","","IMG_0402_thumb.JPG",130,87,1);thumbnails[4451572]=new thumbnail(4451572,"260217","","IMG_0409_thumb.JPG",130,76,1);thumbnails[4451573]=new thumbnail(4451573,"260217","","IMG_0447_thumb.JPG",130,87,1);thumbnails[4451576]=new thumbnail(4451576,"260217","","IMG_0470_thumb.JPG",130,97,1);thumbnails[4451579]=new thumbnail(4451579,"260217","","IMG_0569_thumb.JPG",130,87,1);thumbnails[4451586]=new thumbnail(4451586,"260217","","IMG_0783_thumb.JPG",130,90,1);thumbnails[4451588]=new thumbnail(4451588,"260217","","IMG_0811_thumb.JPG",130,100,1);thumbnails[4451595]=new thumbnail(4451595,"260217","","IMG_0867_thumb.JPG",130,69,1);thumbnails[4451597]=new thumbnail(4451597,"260217","","IMG_9831_thumb.JPG",130,95,1);thumbnails[4451598]=new thumbnail(4451598,"260217","","IMG_0899_thumb.JPG",130,77,1);thumbnails[4452069]=new thumbnail(4452069,"260272","","IMG_1806_thumb.JPG",130,87,1);thumbnails[4452089]=new thumbnail(4452089,"260272","","IMG_1807_thumb.JPG",130,94,1);thumbnails[4452093]=new thumbnail(4452093,"260272","","IMG_1813_thumb.JPG",130,87,1);thumbnails[4452097]=new thumbnail(4452097,"260272","","IMG_1817_thumb.JPG",130,151,1);thumbnails[4452103]=new thumbnail(4452103,"260272","","IMG_1870_thumb.JPG",130,90,1);thumbnails[4452107]=new thumbnail(4452107,"260272","","IMG_1853_thumb.JPG",130,92,1);thumbnails[4452112]=new thumbnail(4452112,"260272","","IMG_1830_thumb.JPG",130,87,1);thumbnails[4452122]=new thumbnail(4452122,"260272","","IMG_1846_thumb.JPG",130,91,1);thumbnails[4452126]=new thumbnail(4452126,"260272","","IMG_1859_thumb.JPG",130,96,1);thumbnails[4452132]=new thumbnail(4452132,"260272","","IMG_1877_thumb.JPG",130,94,1);thumbnails[4452134]=new thumbnail(4452134,"260272","","IMG_1898_thumb.JPG",130,85,1);thumbnails[4452136]=new thumbnail(4452136,"260272","","IMG_1967_thumb.JPG",130,90,1);thumbnails[4464398]=new thumbnail(4464398,"260784","","IMG_4402_thumb.JPG",130,93,1);thumbnails[4464401]=new thumbnail(4464401,"260784","","IMG_4415_thumb.JPG",130,97,1);thumbnails[4464403]=new thumbnail(4464403,"260784","","IMG_4418_thumb.JPG",130,93,1);thumbnails[4464407]=new thumbnail(4464407,"260784","","IMG_4425_thumb.JPG",130,111,1);thumbnails[4464416]=new thumbnail(4464416,"260784","","IMG_4424_thumb.JPG",130,108,1);thumbnails[4464417]=new thumbnail(4464417,"260784","","IMG_4444_thumb.JPG",130,91,1);thumbnails[4464422]=new thumbnail(4464422,"260784","MIG 15, UTI-BIS","IMG_4500_thumb.JPG",130,87,1);thumbnails[4464434]=new thumbnail(4464434,"260784","MIG 15, UTI-BIS","IMG_4497_thumb.JPG",130,80,1);thumbnails[4464456]=new thumbnail(4464456,"260784","MIG 15, UTI-BIS","IMG_44991_thumb.JPG",130,87,1);thumbnails[4464461]=new thumbnail(4464461,"260784","MIG 15, UTI-BIS","IMG_4479_thumb.JPG",130,89,1);thumbnails[4464828]=new thumbnail(4464828,"124844","","IMG_8437_thumb.JPG",130,81,1);thumbnails[5241227]=new thumbnail(5241227,"295397","","IMG_0700_thumb.JPG",130,101,1);thumbnails[5241235]=new thumbnail(5241235,"295397","","IMG_6869_thumb.JPG",130,115,1);thumbnails[5241245]=new thumbnail(5241245,"295397","","IMG_68861_thumb.JPG",130,163,1);thumbnails[5241255]=new thumbnail(5241255,"295397","","IMG_69001_thumb.JPG",130,119,1);thumbnails[5241260]=new thumbnail(5241260,"295397","","IMG_68871_thumb.JPG",130,158,1);thumbnails[5241262]=new thumbnail(5241262,"295397","","IMG_68991_thumb.JPG",130,111,1);thumbnails[5241266]=new thumbnail(5241266,"295397","","IMG_68421_thumb.JPG",130,96,1);thumbnails[5241267]=new thumbnail(5241267,"295397","","IMG_69101_thumb.JPG",130,103,1);thumbnails[5241276]=new thumbnail(5241276,"295404","","IMG_7985_thumb.JPG",130,181,1);thumbnails[5241278]=new thumbnail(5241278,"295404","","IMG_8047_thumb.JPG",130,195,1);thumbnails[5241280]=new thumbnail(5241280,"295404","","IMG_8060_thumb.JPG",130,173,1);thumbnails[5241283]=new thumbnail(5241283,"295404","","IMG_8132_thumb.JPG",130,122,1);thumbnails[5241285]=new thumbnail(5241285,"295404","","IMG_8050_thumb.JPG",130,189,1);thumbnails[5241868]=new thumbnail(5241868,"295397","","IMG_6377_thumb.JPG",130,180,1);thumbnails[5241869]=new thumbnail(5241869,"295397","","IMG_6347_thumb.JPG",130,175,1);thumbnails[5241871]=new thumbnail(5241871,"295397","","IMG_6384_thumb.JPG",130,190,1);thumbnails[5241874]=new thumbnail(5241874,"295397","","IMG_6431_thumb.JPG",130,184,1);thumbnails[5460544]=new thumbnail(5460544,"295397","","IMG_0960_thumb.JPG",130,147,1);thumbnails[5460554]=new thumbnail(5460554,"124844","","IMG_4173_thumb.JPG",130,122,1);var galleries=new Object();galleries[124844]=new gallery(124844,"5460554,4464828,1851365,1832821,1831122,1829536,1829531,1829497,1829472,1829465","Albania Social Comment - General","gallery",[1851365,1829208,1829330,1829353,1829362,1829465,1829472,1829497,1829531,1829536,1831122,1832821,4464828,5460554]);galleries[124836]=new gallery(124836,"5460554,4464828,4464461,4464456,4464434,4464422,4464417,4464416,4464407,4464403","Albanian Social Comment","gallery",[]);galleries[295397]=new gallery(295397,"5460544,5241874,5241871,5241869,5241868,5241267,5241266,5241262,5241260,5241255","Babies & Bumps","gallery",[5241227,5241235,5241245,5241255,5241260,5241262,5241266,5241267,5241868,5241869,5241871,5241874,5460544]);galleries[167953]=new gallery(167953,"4451598,4451597,4451595,4451588,4451586,4451579,4451576,4451573,4451572,4451554","Bolivian Social Comment","gallery",[]);galleries[167947]=new gallery(167947,"2651912,2651899,2651895,2651893,2651892,2651874,2651735,2651719,2651715","cero rico","gallery",[2651715,2651719,2651735,2651874,2651892,2651893,2651895,2651899,2651912]);galleries[260217]=new gallery(260217,"4451598,4451597,4451595,4451588,4451586,4451579,4451576,4451573,4451572,4451554","Demonstration ","gallery",[4451394,4451473,4451482,4451486,4451524,4451529,4451554,4451572,4451573,4451576,4451579,4451586,4451588,4451595,4451597,4451598]);galleries[128627]=new gallery(128627,"1918446,1918443,1918442,1918438,1918437,1918434,1918433,1918431,1918425,1918406","el dia de todos los santos","gallery",[1918406,1918425,1918431,1918433,1918434,1918437,1918438,1918442,1918443,1918446,1918382]);galleries[295404]=new gallery(295404,"5241285,5241283,5241280,5241278,5241276","Family Portraits","gallery",[5241276,5241278,5241280,5241283,5241285]);galleries[138661]=new gallery(138661,"1832435,1828746,1828744,1828742,1828722,1828581,1828579,1828578,1828568,1828567","landscape","gallery",[]);galleries[260784]=new gallery(260784,"4464461,4464456,4464434,4464422,4464417,4464416,4464407,4464403,4464401,4464398","Once Upon a Time","gallery",[4464398,4464401,4464403,4464407,4464416,4464417,4464422,4464434,4464456,4464461]);galleries[226123]=new gallery(226123,"3701864,3701841,3701798,3701761,3701694,3701684,3701679,3701674,3701669,3701667","Oruro Carnaval","gallery",[3701192,3701646,3701650,3701652,3701662,3701667,3701669,3701674,3701679,3701684,3701694,3701761,3701798,3701841,3701864]);galleries[123217]=new gallery(123217,"1832435,1828746,1828744,1828742,1828722,1828581,1828579,1828578,1828568,1828567","salt lake(salar de uyuni) 1 of 19","gallery",[1828508,1828511,1828521,1828532,1828540,1828549,1828565,1828567,1828568,1828578,1828579,1828581,1828722,1828742,1828744,1828746,1832435]);galleries[124770]=new gallery(124770,"1847320,1847312,1847308,1847299,1847289,1847270,1847139,1847134,1847117","soda factory ","gallery",[1847117,1847134,1847139,1847270,1847289,1847299,1847308,1847312,1847320]);galleries[124774]=new gallery(124774,"1853823,1853812,1853803,1853795,1853793,1853791,1853788,1853777,1853763","the communist bunkers","gallery",[1853763,1853777,1853788,1853791,1853793,1853795,1853803,1853812,1853823]);galleries[260272]=new gallery(260272,"4452136,4452134,4452132,4452126,4452122,4452112,4452107,4452103,4452097,4452093","The Koman Ferry","gallery",[4452069,4452089,4452093,4452097,4452103,4452107,4452112,4452122,4452126,4452132,4452134,4452136]);var imageSets=new Object();imageSets[1]="5460554,5460544,5241874,5241871,5241869,5241868,5241285,5241283,5241280,5241278,5241276,5241267,5241266,5241262,5241260,5241255,5241245,5241235,5241227,4464828,4464461,4464456,4464434,4464422,4464417,4464416,4464407,4464403,4464401,4464398,4452136,4452134,4452132,4452126,4452122,4452112,4452107,4452103,4452097,4452093,4452089,4452069,4451598,4451597,4451595,4451588,4451586,4451579,4451576,4451573";imageSets[3]="5460554,5460544,5241874,5241871,5241869,5241868,5241285,5241283,5241280,5241278,5241276,5241267,5241266,5241262,5241260,5241255,5241245,5241235,5241227,4464828,4464461,4464456,4464434,4464422,4464417,4464416,4464407,4464403,4464401,4464398,4452136,4452134,4452132,4452126,4452122,4452112,4452107,4452103,4452097,4452093,4452089,4452069,4451598,4451597,4451595,4451588,4451586,4451579,4451576,4451573";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/elidonveshaj/images";break}switch(a){case 1:b="http://www1.clikpic.com/elidonveshaj/images";break}switch(a){case 2:b="http://admin.clikpic.com/elidonveshaj/images";break}switch(a){case 24:b="http://tpc15/clikpic/elidonveshaj/images";break}switch(a){case 4:b="http://www.clikchurch.com/elidonveshaj/images";break}switch(a){case 5:b="http://www2.clikpic.com/elidonveshaj/images";break}switch(a){case 22:b="http://tpc5/clikpic/elidonveshaj/images";break}switch(a){case 23:b="http://tpc10/clikpic/elidonveshaj/images";break}switch(a){case 25:b="http://tpc16/clikpic/elidonveshaj/images";break}switch(a){case 15:b="http://www3.clikpic.com/elidonveshaj/images";break}switch(a){case 18:b="http://www4.clikpic.com/elidonveshaj/images";break}switch(a){case 19:b="http://www5.clikpic.com/elidonveshaj/images";break}switch(a){case 31:b="http://www7.clikpic.com/elidonveshaj/images";break}switch(a){case 32:b="http://admin2.clikpic.com/elidonveshaj/images";break}switch(a){case 33:b="http://www8.clikpic.com/elidonveshaj/images";break}switch(a){case 34:b="http://www9.clikpic.com/elidonveshaj/images";break}switch(a){case 35:b="http://admin3.clikpic.com/elidonveshaj/images";break}switch(a){case 37:b="http://admin4.clikpic.com/elidonveshaj/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+backgrounds[imageID].caption+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="elidon veshaj photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};