ImageResourceInfo selectedImgOverInfo = new ImageResourceInfo(
selectedImgOverRR);
int selectedImgOverWidth = selectedImgOverInfo.getWidth();
int selectedImgOverHeight = selectedImgOverInfo.getHeight();
CSSInlineStyle defaultImgStyle = new CSSInlineStyle();
defaultImgStyle.add("background", "url("
+ RequestCycle.get().urlFor(defaultImgRR) + ")");
defaultImgStyle.add("width", defaultImgWidth + "px");
defaultImgStyle.add("height", defaultImgHeight + "px");
CSSInlineStyle defaultImgOverStyle = new CSSInlineStyle();
defaultImgOverStyle.add("background", "url("
+ RequestCycle.get().urlFor(defaultImgOverRR) + ")");
defaultImgOverStyle.add("width", defaultImgOverWidth + "px");
defaultImgOverStyle.add("height", defaultImgOverHeight + "px");
CSSInlineStyle selectedImgStyle = new CSSInlineStyle();
selectedImgStyle.add("background", "url("
+ RequestCycle.get().urlFor(selectedImgRR) + ")");
selectedImgStyle.add("width", selectedImgWidth + "px");
selectedImgStyle.add("height", selectedImgHeight + "px");
CSSInlineStyle selectedImgOverStyle = new CSSInlineStyle();
selectedImgOverStyle.add("background", "url("
+ RequestCycle.get().urlFor(selectedImgOverRR) + ")");
selectedImgOverStyle.add("width", selectedImgOverWidth + "px");
selectedImgOverStyle.add("height", selectedImgOverHeight + "px");
defaultImgStyleList.add(defaultImgStyle);
defaultImgOverStyleList.add(defaultImgOverStyle);
selectedImgStyleList.add(selectedImgStyle);
selectedImgOverStyleList.add(selectedImgOverStyle);