jQuery.fn.extend({shadow:function(A){DropShadow(this,A)
}});
function DropShadow(G,M){var J=8;
var B=4;
var L=80;
var C=20;
var D="black";
if(M){if(M.cornerHeight!=null){J=parseInt(M.cornerHeight)
}if(M.width!=null){B=parseInt(M.width)
}if(M.startOpacity!=null){L=parseFloat(M.startOpacity)
}if(M.endOpacity!=null){C=parseFloat(M.endOpacity)
}if(M.color!=null){D=M.color
}if(L<1){L=Math.round(L*100)
}if(C<1){C=Math.round(C*100)
}}if($(G.id+"_shadow").length>0){$(G.id+"_shadow").remove()
}G=$(G);
var A=G[0].id+"_shadow";
var H="<div id='"+A+"' style='";
if(G.css("position")=="absolute"||G.css("position")=="relative"){H+="position: "+G.css("position")+"; ";
G.css("position","")
}if(G.css("top")){H+="top:"+G.css("top")+"; ";
G.css("top","")
}if(G.css("left")){H+="left:"+G.css("left")+"; ";
G.css("left","")
}H+="'><table style='float:left;' cellpadding='0px' cellspacing='0px'><tr class='shadowFirstRow'><td colspan='2' rowspan='2'></td></tr></table></div>";
G.wrap(H);
H="<td colspan='"+B+"' style='width:"+B+"px; height:"+J+"px;'><table cellpadding='0px' cellspacing='0px'>";
var I=L;
for(var F=0;
F<J;
F++){H+="<tr>";
for(var E=0;
E<B;
E++){I=Math.round((F-E*(J/B))*10);
if(I<0){I=0
}else{if(I<10){I="0"+I
}}H+="<td style='height:1px; width:1px; background-color: "+D+"; opacity:0."+I+"; filter:Alpha(opacity="+I+");'></td>"
}H+="</tr>"
}H+="</table></td>";
$("#"+A).children().children().children(".shadowFirstRow").append(H);
H="<tr>";
for(var F=L;
F>=C;
F-=(L-C)/(B-1)){I=Math.round(F);
if(I<10){I="0"+I
}H+="<td style='background-color:"+D+"; padding:0px; margin:0px; height:"+(G.height()-J+12)+"px; opacity:0."+I+"; filter:Alpha(opacity="+I+");'></td>"
}H+="</tr>";
H+="<tr><td rowspan='"+B+"' style='width:"+J+"px; height:"+B+"px;'><table cellpadding='0px' cellspacing='0px'>";
for(var F=0;
F<B;
F++){H+="<tr>";
for(var E=0;
E<J;
E++){I=Math.round((0-F*(J/B)+E)*10);
if(I<0){I=0
}else{if(I<10){I="0"+I
}}H+="<td style='width:1px; height:1px; background-color:"+D+"; opacity:0."+I+"; filter:Alpha(opacity="+I+");'></td>"
}H+="</tr>"
}H+="</table></td>";
var K=G.width()+4;
if($.browser.msie){K-=J+4
}for(var F=L;
F>=C;
F-=(L-C)/(B-1)){if(F!=L){H+="<tr>"
}I=Math.round(F);
if(I<10){I="0"+I
}H+="<td style='height:1px; width:"+K+"px; background-color:"+D+"; opacity:0."+I+"; filter:Alpha(opacity="+I+");'></td>";
for(var E=L;
E>=C;
E-=(L-C)/(B-1)){I=Math.round(E);
if(I>F){I=Math.round(F)
}if(I<10){I="0"+I
}H+="<td style='width:1px; height:1px; background-color:"+D+"; opacity:0."+I+"; filter:Alpha(opacity="+I+");'></td>"
}H+="</tr>"
}$("#"+A).children("table").append(H)
};