SportsShares.Utils=new function(){return{GetCssIdSelector:function(id){return"#"+id;
},AddLinkDecoration:function(selector){var items=jQuery(selector);items.each(function(index){var text=jQuery(this).text();
jQuery(this).html(text+SportsShares.Config.UI.LinkDecoration);});},AddQuotes:function(){var items=jQuery("blockquote");
items.each(function(index){var text=jQuery(this).text();jQuery(this).html("&quot;"+text+"&quot;");
});},GetMiddle:function(oddNumber){return Math.round(((oddNumber-1)/2))+(oddNumber%2)-1;
},GetJsonLength:function(json){var i=0;for(var j in json){i++;}return i;},GetJsonValueAtIndex:function(json,index){var i=0;
for(var j in json){if(i===index){return json[j];}i++;}},AutoFill:function(selector,value){try{jQuery(selector).autofill({value:value});
setTimeout(function(){jQuery(selector).blur();},500);}catch(ex){}},ParseASPNETDate:function(dateString){dateString=dateString.replace(/\//g,"");
return eval("new "+dateString);}};};Date.prototype.getMonthName=function(){var m=["January","February","March","April","May","June","July","August","September","October","November","December"];
return m[this.getMonth()];};Date.prototype.getMonthNumber=function(){return this.getMonth()+1;
};Date.prototype.getShortYear=function(){var y=this.getFullYear()+"";return y.substring(2,4);
};Date.prototype.getDayName=function(){var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
return d[this.getDay()];};Date.prototype.getShortDate=function(){return this.getMonthNumber()+"/"+this.getDate()+"/"+this.getShortYear();
};Date.prototype.getSuperScriptDay=function(){var day=this.getDay();var numb=parseInt(day.toString().charAt(day.length-1));
var superscript="th";switch(true){case (numb==1&&day!=11):superscript="st";break;
case (numb==2&&day!=12):superscript="nd";break;case (numb==3&&day!=13):superscript="rd";
break;}return day+superscript;};