function getUsersFormImg(){
var v=getCookie("donate");
var _2="v="+v;
new Ajax.Request("/ajaxapis/user_donate",{method:"get",parameters:_2});
}
function mark_user(_3){
var _4=_3.m_u;
for(var i=0;i<_4.length;i++){
var _6=$$("."+_4[i]+"_u");
_6.each(function(_7){
mark_img(_7);
});
}
}
function mark_img(_8){
var _9=_8.firstChild;
var _a=_9.className.split(" ")[0].split("|")[0];
if(_a!="small"){
var _b="/images/donate/badge18.png";
if(parseInt(_a)<60){
_b="/images/donate/badge13.png";
}else{
if(_a=="golden_224"){
_b="/images/donate/badge32.png";
}
}
var _c=document.createElement("img");
_c.src=_b;
_c.className="marker_tg transparent";
_8.appendChild(_c);
if(_8.className.indexOf("no_linker")<0){
_c.style.cursor="help";
Event.observe(_c,"click",function(_d){
_d.stop();
document.location="/donate/home";
});
}
}
}
Event.observe(window,"load",function(){
getUsersFormImg();
$$(".badge_example").each(function(_e){
mark_img(_e.parentNode);
});
});
function setCookie(_1,_2,_3,_4,_5,_6){
document.cookie=_1+"="+escape(_2)+((_3)?"; expires="+_3.toGMTString():"")+((_4)?"; path="+_4:"")+((_5)?"; domain="+_5:"")+((_6)?"; secure":"");
}
function getCookie(_7){
var dc=document.cookie;
var _9=_7+"=";
var _a=dc.indexOf("; "+_9);
if(_a==-1){
_a=dc.indexOf(_9);
if(_a!=0){
return null;
}
}else{
_a+=2;
}
var _b=document.cookie.indexOf(";",_a);
if(_b==-1){
_b=dc.length;
}
return unescape(dc.substring(_a+_9.length,_b));
}
function deleteCookie(_c,_d,_e){
if(getCookie(_c)){
document.cookie=_c+"="+((_d)?"; path="+_d:"")+((_e)?"; domain="+_e:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
var UA=navigator.userAgent;
if(/MSIE 6/.test(UA)){
UA="ie";
}else{
if(/Gecko/.test(UA)){
UA="gecko";
}else{
if(/MSIE 7/.test(UA)){
UA="ie7";
}else{
if(/Opera/.test(UA)){
UA="opera";
}
}
}
}
var LOADING_BAR_TIMER=null;
function isIE(){
return UA=="ie";
}
function getFlashDOM(_1d){
var _1e=null;
if(navigator.appName.indexOf("Microsoft")!=-1){
_1e=window[_1d];
}else{
_1e=document[_1d];
}
y_setGlobal("pagemp3",_1d,_1e);
return _1e;
}
function y_setGlobal(_1f,_20,_21){
if(typeof document[_1f]=="undefined"){
document[_1f]={};
}
document[_1f][_20]=_21;
}
function y_getGlobal(_22,_23){
if(typeof document[_22]=="undefined"){
document[_22]={};
}
if(typeof document[_22][_23]!="undefined"){
return document[_22][_23];
}
return null;
}
function string_trim(_24){
return _24.replace(/(^\s*)|(\s*$)/g,"");
}
function show_dom(_25,_26){
var _27=$(_25);
if(_27){
_27.show();
}
var _28=$(_26);
if(_28){
_28.hide();
}
}
function getViewportSize(){
var _29=[0,0];
if(typeof window.innerWidth!="undefined"){
_29=[window.innerWidth,window.innerHeight];
}else{
if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){
_29=[document.documentElement.clientWidth,document.documentElement.clientHeight];
}else{
_29=[document.getElementsByTagName("body")[0].clientWidth,document.getElementsByTagName("body")[0].clientHeight];
}
}
return _29;
}
function getDocHeight(){
return document.body.scrollHeight>=getViewportSize()[1]?document.body.scrollHeight:getViewportSize()[1];
}
function setDivMiddle(div){
div.style.display="block";
var _2b=div.offsetWidth;
var _2c=div.offsetHeight;
var _2d=getViewportSize();
var _2e=_2d[0];
var _2f=_2d[1];
var _30=parseInt((_2e-_2b)/2);
var top=getPageOffsetY()+parseInt(_2f-_2c)/2;
div.style.left=_30+"px";
div.style.top=top+"px";
div.style.display="none";
}
function getPageOffsetY(){
var _32=0;
if(typeof pageYOffset!="undefined"){
_32=pageYOffset;
}else{
_32=document.documentElement.scrollTop;
}
return _32;
}
function for_each(_33,_34){
for(var i=0;i<_33.length;i++){
_34(_33[i]);
}
}
function showShadow(){
var _36=$("pop_shadow");
if(!_36){
_36=document.createElement("div");
_36.id="pop_shadow";
document.body.appendChild(_36);
}
if(isIE()){
var _37=document.getElementsByTagName("select");
for_each(_37,function(_38){
_38.style.visibility="hidden";
});
}
_36.style.position="absolute";
_36.style.display="block";
_36.style.opacity="0.3";
_36.style.filter="alpha(opacity=30)";
_36.style.background="#000";
_36.style.zIndex="100";
var _39=getViewportSize();
var _3a=_39[0];
var _3b=getDocHeight();
var _3c=document.body.scrollTop+document.documentElement.scrollTop;
_36.style.top="0px";
_36.style.left="0px";
_36.style.width=_3a+"px";
_36.style.height=(_3b+_3c)+"px";
}
function hideShadow(){
var _3d=$("pop_shadow");
if(_3d){
_3d.hide();
}
if(isIE()){
var _3e=document.getElementsByTagName("select");
for_each(_3e,function(_3f){
_3f.style.visibility="visible";
});
}
}
function show_loading(div){
if(LOADING_BAR_TIMER){
clearTimeout(LOADING_BAR_TIMER);
}
div=$(div);
var lb=$("tool_loadingbar");
if(div&&lb){
var top=getPos(div,"Top");
var _43=getPos(div,"Left");
var w=div.offsetWidth;
var h=div.offsetHeight;
w=Math.max(w,21);
h=Math.max(h,16);
h=Math.min(h,30);
Element.show("tool_loadingbar");
lb.style.top=(top-1)+"px";
lb.style.left=(_43-1)+"px";
lb.style.width=(w-21)+"px";
lb.style.height=(h-1)+"px";
Element.show("tool_loadingbar");
LOADING_BAR_TIMER=setTimeout(function(){
Element.hide("tool_loadingbar");
},30*1000);
}
}
function hide_loading(){
if(LOADING_BAR_TIMER){
clearTimeout(LOADING_BAR_TIMER);
}
var lb=$("tool_loadingbar");
if(lb){
Element.hide(lb);
}
}
function getPos(el,_48){
el=$(el);
var _49=0;
while(el!=null){
_49+=el["offset"+_48];
el=el.offsetParent;
}
return _49;
}
