function selectPhoto(obj) {
var background_color = $(obj).parent().parent().css('background');
var rgb=colorRGB2Hex(background_color);
if (rgb != "#87cefa") {
$(obj).parent().parent().css("background","#87cefa");
var bgColor = $(obj).parent().parent().css["background"];
}
else{
$(obj).parent().parent().css("background","#ffffff");
}
}
//RGB转16进制
function colorRGB2Hex(color) {
var rgb = color.split(',');
var r = parseInt(rgb[0].split('(')[1]);
var g = parseInt(rgb[1]);
var b = parseInt(rgb[2].split(')')[0]);
var hex = "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
return hex;
}