$(function () {
$("table.csstable tr:even").css("background-color", "#ECF4FF");
$("table.csstable tr:odd").css("background-color", "#FFF");
if($("table.csstable tr:last-child").attr("count")=="count"){
var bgColor = "";
$("table.csstable tr").not("table.csstable tr:last-child").mouseover(function () {
bgColor = $(this).css("background-color");
$(this).css("background-color", "#FAFAA3");
}).mouseout(function () {
$(this).css("background-color", bgColor);
});
$("table.csstable tr:last-child").children("td").css("padding-left","10px");
} else {
var bgColor = "";
$("table.csstable tr").mouseover(function () {
bgColor = $(this).css("background-color");
$(this).css("background-color", "#FAFAA3");
}).mouseout(function () {
$(this).css("background-color", bgColor);
});
}
$("div.imgbutton-s").mouseover(function(){
$(this).removeClass("imgbutton-s").addClass("imgbuttonhover-s");
}).mouseout(function(){
$(this).removeClass("imgbuttonhover-s").addClass("imgbutton-s");
});
$("div.imgbutton-s-long").mouseover(function(){
$(this).removeClass("imgbutton-s-long").addClass("imgbuttonhover-s-long");
}).mouseout(function(){
$(this).removeClass("imgbuttonhover-s-long").addClass("imgbutton-s-long");
});
$("div.imgbutton-s-float").mouseover(function(){
$(this).removeClass("imgbutton-s-float").addClass("imgbuttonhover-s-float");
}).mouseout(function(){
$(this).removeClass("imgbuttonhover-s-float").addClass("imgbutton-s-float");
});
});