/********************************* ea_sports.js for EA.com code by Allan Chang [allan.chang(AT)blastradius(DOT)com] *********************************/ /********************************* GLOBAL VARS *********************************/ var PADDING = 6; var SB_WIDTH = 16; var WIDTH_W_SCROLL = 34; var NAV_COLOR = "#000000"; var NAV_ALPHA = 0.7; var COMP_BORDER_WIDTH = 0; var MAC_ALT_BG_COLOR = "#000000"; /********************************* DATE INFORMATION *********************************/ function makeArray() { this[0] = makeArray.arguments.length; for (i = 0; i 2 ) { NumericYear = NumericYear.substring((NumericYear.length-2), NumericYear); } if (eval(NumericMonth) < 10) { NumericMonth = "0" + NumericMonth; } if (eval(NumericDay) < 10) { NumericDay = "0" + NumericDay; } document.write (NumericMonth + "/" + NumericDay + "/" + NumericYear); } /********************************* TIME INFORMATION *********************************/ function TimeConversion(MilTime) { var newTime; MilTime = eval(MilTime.charAt(0) + MilTime.charAt(1)); if (MilTime == 0) { newTime = MilTime.toString() + ":00 AM"; } else if (MilTime > 12) { MilTime = MilTime - 12; newTime = MilTime.toString() + ":00 PM"; } else if (MilTime == 12) { newTime = MilTime.toString() + ":00 PM"; } else { newTime = MilTime.toString() + ":00 AM"; } document.write (newTime); } function DateConvert (theDate) { // 1976-7-19 var tmpString = ""; var DateAYear = ""; var DateAMonth = ""; var DateADay = ""; Dash1 = eval(theDate.indexOf('-',0)); Dash2 = eval(theDate.indexOf('-',Dash1+1)); for (var i = 0; i < Dash1; i++) { DateAYear = DateAYear + theDate.charAt(i); } for (var i = Dash1+1; i < Dash2; i++) { DateAMonth = DateAMonth + theDate.charAt(i); } for (var i = Dash2+1; i < theDate.length; i++) { DateADay = DateADay + theDate.charAt(i); } if (DateAMonth.length < 2) DateAMonth = "0" + DateAMonth; if (DateADay.length < 2) DateADay = "0" + DateADay; tmpString = DateAYear + DateAMonth + DateADay; return tmpString; } function EventAvailabilities(DateA, DateB, eventURL, eventFee, eventPro) { var DateClosing = eval(DateConvert(DateA)); var DateToday = eval(DateConvert(DateB)); tmpString = ""; if (DateClosing > DateToday) { if (!(eventPro)) tmpString += '

This is a competition for those new to the Madden Challenge and who don’t feel they are ready for the level of play that has competed in previous years.

'; tmpString += '

Online Registration is open. Sign up now! Please remember to bring your Photo ID and confirmation email. Walk up registrants please remember to bring your photo ID'; if (eventFee > 0) tmpString += 'and $' + eventFee + ' in cash'; tmpString += ' to compete. We look forward to seeing you there!

'; tmpString += '
Register Now
'; } else { tmpString += '

Online Registration is now closed. If you were unable to register online, walk up spots will be available onsite and you will get a spot! Show up at the event designated start time.

'; } document.write (tmpString); } function EventClosure(DateA, DateB, eventURL, eventRecap) { var DateClosing = eval(DateConvert(DateA)); var DateToday = eval(DateConvert(DateB)); tmpString = ""; if (DateClosing > DateToday) { tmpString += 'Open' } else { tmpString += 'Closed | View Recap'; } document.write (tmpString); } //1k DHTML API d=document;l=d.layers;op=navigator.userAgent.indexOf('Opera')!=-1; function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W