// допустим, photo.width = 75 if(photo.width<=75){ //true full_photo=photo.photo_75; }else if(photo.width<=130){ // true full_photo=photo.photo_130; }else if(photo.width<=604){ //true full_photo=photo.photo_604; }else if(photo.width<=807){ // true full_photo=photo.photo_807; }else if(photo.width<=1280){ // true full_photo=photo.photo_1280; }else if(photo.width<=2560){ // true full_photo=photo.photo_2560; } // ну и чему теперь равно full_photo ?