');
mu.push('');
mu.push(' Official Roster ');
mu.push(' ** '+teamname+' - '+seasonname+' ** ');
mu.push('
');
mu.push('');
mu.push('');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
if (dispWeight) {
mu.push(' ');
}
mu.push(' ');
mu.push(' ');
players = DiiUslRoster.playersA.sortBy(function(s){ return s.ln })
players.each(function(player){
var bdate = '';
mu.push('');
mu.push(' '+player.jersey+' ');
mu.push(' '+player.pos1+' ');
var url = '/scripts/runisa.dll?M2:gp:514828.'+rand4()+':72011+Elements/Display+E+47116+Player/+'+teamkey+'+'+teamgroupkey+'+'+player.personkey;
mu.push(' '+player.ln+', '+player.fn+' ');
var height = '';
if(player.hgtF && player.hgtI){var height = player.hgtF+'' '+player.hgtI+'"'};
mu.push(' '+height+' ');
if (dispWeight) {
mu.push(' '+player.wght+' ');
}
if (player.birthdate.empty() == false) {
bdate = Date.parse(player.birthdate);
} else {
bdate = '';
}
mu.push(' '+player.last_team+' ');
mu.push(' ');
})
mu.push('
');
mu.push('
');
$('roster').innerHTML = mu.join('');
DiiUslRoster.rosterLoaded = true;
diiStripeTables.doit('playerRow', 'RowGray1', 'RowGray2');
DiiTabs.showtab('roster');
},
location: 'home',
rosterLoaded: false
}; // DiiUslRoster
var DIISchedule = {
MISL_lgkey: '36509042',
sename: '2012',
sekey: '42819353',
lgkey: '22290',
tg: '42819419',
tm: '22380',
seSeq: 2012,
othertgs: [],
otherCompCount: 0,
scheduleLoaded: false,
init: function(){
if(DIISchedule.scheduleLoaded == false){
DIISchedule.preRender();
}
else{
DiiTabs.showtab('schedule');
};
},
preRender: function(){
DIISchedule.teamgms = DIISchedule.gatherTmGames();
var foo = DIISchedule.fixgmtimes(DIISchedule.teamgms);
DIISchedule.render(foo);
},
gatherTmGames: function(){
//- coerce hash into array
var gmsA=diiH2A(DIISnapshot.gamesHolder);
var tm=DIISnapshot.tm;
//-select just this teams games and return
return gmsA.select(function(g){ return (g.tm1==tm)||(g.tm2==tm) });
},
fixgmtimes:function(gms){
gms.each(function(g){
var dt = g.dt;
if(dt&&dt!=''){
var tim = g.tim.match(/30-DEC-1899\s(\d+:\d+)/);
if(tim&&tim.length&&tim.length>0){
// g.dttm = Date.parse(dt+' '+tim[1]+' -0400'); // at least for USL
g.dttm = Date.parse(dt+' '+tim[1]);
g.hasTime = true
}
else{
g.dttm = Date.parse(dt); // at least for USL
g.hasTime = false
}
}
});
return gms.sortBy(function(g){return g.dttm});
},
getTeamName:function(tmkey){
if(tmkey=='')return '';
var tm=DIISnapshot.teamsHolder[tmkey];
if(!tm)return '';
return tm.name;
},
isOtherCompTeam:function(tmkey){
if (DIISnapshot.origTeams.indexOf(tmkey.toString()) > -1) {return false;} else{return true; };
},
render: function(gms) {
var seasonname = "W-League 2012";
var teamname = "Seattle Sounders Women";
teamname = teamname.replace(/'/, "'");
var teamkey = 22380;
var teamgroupkey = 42819419;
var seasonkey = 42819353;
if (gms.length == 0) {
return;
}
var oldtbl = $('tblsched');
if (oldtbl) {
oldtbl.remove();
}
// var tz=Date.today().getTimezoneOffset()/60, tza='';
var tza = 'ET';
var mu = [];
mu.push('');
mu.push('');
mu.push('');
mu.push( ' ');
mu.push( ' ');
mu.push( 'Return to '+teamname+' ');
mu.push( ' ');
mu.push(' ');
mu.push(' ');
mu.push('
');
mu.push('');
mu.push('');
mu.push('');
mu.push( ' Full Schedule ');
mu.push( '** '+teamname+' - '+seasonname+' ** ');
mu.push(' ');
mu.push(' ');
mu.push('
');
mu.push('');
mu.push('');
mu.push('');
var gimo = 0,
lastmo = '';
gms.each(function(g) {
var gcode = g.code,
gda = g.dttm.toString("ddd"),
gdt = g.dttm.toString("MMM d"),
gmo = g.dttm.toString("MMMM yyyy"),
gtim = (g.hasTime == true) ? g.dttm.toString("h:mm tt") : 'TBD',
timezone = (gtim != 'TBD') ? tza : '',
gfac = g.facn,
tm1key = g.tm1, tm1nm = tm1key ? DIISnapshot.getTeamName(tm1key) : '', sc1 = g.sc1,
tm2key = g.tm2, tm2nm = tm2key ? DIISnapshot.getTeamName(tm2key) : '', sc2 = g.sc2,
url1, url2,
score = '',
scoreurl = '',
ed = '';
if (!g.se) {
g.se = '42819353';
}
if (tm1key) {
url1 = (tm1key == DIISnapshot.tm) ? '#' : '/scripts/runisa.dll?M2:gp:514828.'+rand4()+':72011+Elements/Display+E+47116+USL/+'+tm1key+'+'+DIISnapshot.teamsHolder[tm1key].primarytg;
} else {
url1 = '';
}
if (tm2key) {
url2 = (tm2key == DIISnapshot.tm)?'#':'/scripts/runisa.dll?M2:gp:514828.'+rand4()+':72011+Elements/Display+E+47116+USL/+'+tm2key+'+'+DIISnapshot.teamsHolder[tm2key].primarytg;
} else {
url2 = '';
}
if (teamgroupkey != g.tg) {
url1 = (url1 == "#") ? "#" : '';
url2 = (url2 == "#") ? "#" : '';
}
if (sc1) {
score = sc1 + '-' + sc2;
scoreurl = '/scripts/runisa.dll?M2:gp:514828.'+rand4()+':72011+Elements/Display+E+47107+Stats/+'+g.key;
} else {
scoreurl = ''
score = 'at';
}
if (lastmo != gmo) {
lastmo = gmo;
gimo = 0;
mu.push('');
mu.push( '');
mu.push(' ');
}
mu.push('');
mu.push( '' + DIIUSLAbbrev.getAbbrev(g.tg, DIISchedule.sekey, DIISchedule.lgkey) + ' '); mu.push( ''+gda+' '); mu.push( ''+gdt+' ');
ed = (g.edited && g.tim_orig != g.tim) ? ' edited' : '';
mu.push( '' + gtim + ' ' + timezone + ' ');
mu.push( '');
if (url1) {
mu.push( '' + tm1nm + ' ');
} else {
mu.push( tm1nm);
}
mu.push( ' ');
mu.push( '');
if (scoreurl) {
mu.push(' ' + score + ' ');
} else {
mu.push(score);
}
mu.push( ' ');
mu.push( '');
if (url2) {
mu.push( '' + tm2nm + ' ');
} else {
mu.push( tm2nm);
}
mu.push( ' ');
ed = (g.edited && g.facn_orig != g.facn) ? ' edited' : '';
mu.push( '' + gfac + ' ');
mu.push( '');
if (g.golive == 1) {
mu.push( ' ');
}
if (g.urlvideo) {
mu.push( ' ');
}
if (g.urlaudio != ''){
mu.push( ' ');
};
mu.push( ' ');
mu.push(' ');
gimo += 1;
});
if (DIISchedule.lgkey !== DIISchedule.MISL_lgkey) { // not for MISL
mu.push( '');
mu.push( '');
mu.push( '');
mu.push( 'USOC - US OPEN CUP, CFU - Caribbean Football Union, NCC - Nutrilite Canadian Championship, EXH - Exhibition, CCC - CONCACAF ');
mu.push( ' Match Tracker, Game Video, Game Audio');
mu.push( ' ');
mu.push( ' ');
mu.push( ' ');
}
mu.push(' ');
mu.push('
');
mu.push('
');
mu.push('
');
$('schedule').innerHTML=mu.join('');
diiStripeTables.doit('gm', 'RowGray1', 'RowGray2');
DIISchedule.scheduleLoaded = true;
DiiTabs.showtab('schedule');
}
}; // DIISchedule
var DIIMemos = {
memoLoaded: new Hash(),
init: function(event, a, b, memo) {
var $tab;
if (memo === undefined) {
var $tab = $j(this);
DIIMemos.memokey = $tab.attr('memo');
DIIMemos.memoname = $tab.attr('memoname');
} else {
var $tab = $j('#' + memo + '-tab');
DIIMemos.memokey = $tab.attr('memo');
DIIMemos.memoname = memo;
};
if (DIIMemos.memoLoaded.get(DIIMemos.memoname) == true) {
DiiTabs.showtab(DIIMemos.memoname);
} else {
DIIMemos.getMemo();
};
}, // init
getMemo: function(){
$j('.visibleDiv').each(function(){
var $div = $j(this);
$div.hide();
$div.removeClass('visibleDiv');
});
$('indicator-text').innerHTML = (DIIMemos.memoname == 'stadium') ?
'Stadium' : DIIMemos.memoname.capitalize();
$('indicator').appear({ duration: 0.2 });
var ajax_url = '/scripts/runisa.dll?M2:gp::72011+Elements/XML/Public/+E+47116+Memo/845/Public/+22380+'+DIIMemos.memokey;
var jaxy = new Ajax.Request(ajax_url,
{method: 'post',
parameters:dii000,
onSuccess:DIIMemos.process ,
onFailure:DIIMemos.myErrorHandler
});
},
myErrorHandler: function(){
alert('Problem Retrieving ' + DIIMemos.memoname.capitalize());
},
process: function(x){
var text = x.responseText;
DIIMemos.render(text);
},
render: function(text){
var teamname = "Seattle Sounders Women";
teamname = teamname.replace(/'/, "'");
var mu=[];
mu.push('
');
mu.push('
');
mu.push( '
');
if (DIIMemos.memoname == 'about') {
var headtext = 'About ' + teamname;
} else if (DIIMemos.memoname == 'stadium') {
var headtext = teamname + ' Stadium Info';
} else {
var headtext = teamname + ' ' + DIIMemos.memoname.capitalize() + ' Info';
};
mu.push( '
'+headtext+'
');
mu.push( '
');
mu.push( '
');
mu.push( text);
mu.push( '
');
mu.push( '
');
mu.push('
');
$j('#' + DIIMemos.memoname).html(mu.join(''));
DIIMemos.memoLoaded.set(DIIMemos.memoname, true);
DiiTabs.showtab(DIIMemos.memoname);
}
}; // DIIMemos
DiiUslStats = {
statsLoaded: false,
init: function(){
if(DiiUslStats.statsLoaded == false){
DiiUslStats.getPlayers();
}
else{
DiiTabs.showtab('stats');
};
},
getPlayers: function(){
$j('.visibleDiv').each(function(){
var $div = $j(this);
$div.hide();
$div.removeClass('visibleDiv');
});
$('indicator-text').innerHTML = "Stats";
$('indicator').appear({ duration: 0.3 });
var url = '/scripts/runisa.dll?M2:gp::72011+Elements/JS/+E+47116+USL/Stats/JS/+22380+42819419';
var jaxy = new Ajax.Request(
url,
{method: 'post',
parameters:dii000,
onSuccess:DiiUslStats.process ,
on404:DiiUslStats.myerrorHandler
}
);
},
myerrorHandler:function(){
alert('Error loading stats');
},
//handles AJAX response
process: function(xJ) {
eval('var roster = '+ xJ.responseText);
DiiUslStats.playersA=diiH2A(roster.players);
DiiUslStats.gks = diiH2A(roster.gk);
DiiUslStats.buildStatsPage();
},
//Builds the roster page
buildStatsPage: function(){
var seasonname = 'W-League 2012';
var teamname = "Seattle Sounders Women";
teamname = teamname.replace(/'/, "'");
var teamkey = 22380;
var teamgroupkey = 42819419;
var seasonkey = 42819353;
mu = [];
mu.push('
');
mu.push('
');
mu.push(' 2012 Statistics ');
mu.push('** '+teamname+' - '+seasonname+' ** ');
mu.push('
');
mu.push('
');
mu.push('');
mu.push(' GP - games played , Pts - scoring , Min - Minutes played , G - Goals scored , A - Assists , S - Shots , F - Fouls
');
mu.push(' ');
mu.push('');
mu.push('');
mu.push('');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
var players = DiiUslStats.playersA.sortBy(function(s){ return s.ln });
players.each(function(player){
mu.push('');
mu.push(' '+player.jersey+' ');
mu.push(' '+player.pos1+' ');
var url_part = teamkey+'+'+teamgroupkey+'+'+player.personkey;
var url = '/scripts/runisa.dll?M2:gp:514828.'+rand4()+':72011+Elements/Display+E+47116+Player/+'+url_part;
mu.push(' ');
mu.push(player.ln+', '+player.fn);
mu.push(' ');
mu.push(' '+player.GP+' ');
mu.push(' '+player.Points+' ');
mu.push(' '+player.Min+' ');
mu.push(' '+player.G+' ');
mu.push(' '+player.A+' ');
mu.push(' '+player.S+' ');
mu.push(' '+player.F+' ');
mu.push(' ');
});
mu.push('
');
mu.push('');
mu.push('');
mu.push('');
mu.push(' Goalkeeper Stats
');
mu.push(' ');
mu.push('');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
var gks = DiiUslStats.gks.sortBy(function(s){ return s.ln });
gks.each(function(player){
//weeding out players not actually GK here
if(player.pos1=='GK'||player.pos2=='GK') {
mu.push('');
mu.push(' '+player.jersey+' ');
var url = '/scripts/runisa.dll?M2:gp:514828.'+rand4()+':72011+Elements/Display+E+47116+Player/+'+teamkey+'+'+teamgroupkey+'+'+player.personkey
mu.push(' '+player.ln+', '+player.fn+' ');
mu.push(' '+player.pos1+' ');
mu.push(' '+player.GKGP+' ');
if(player.GAA.length == 4){
var gaa = addCommas(player.GAA).gsub(',', '.')
}
else if(player.GAA.length == 3){
var gaa = "0."+player.GAA
};
if(gaa == undefined){gaa = '0.000'};
mu.push(' '+gaa+' ');
mu.push(' '+player.GKM+' ');
mu.push(' '+player.GA+' ');
mu.push(' '+player.GKW+' ');
mu.push(' '+player.GKL+' ');
mu.push(' '+player.GKT+' ');
mu.push(' '+player.SO+' ');
mu.push(' '+player.Saves+' ');
mu.push(' '+player.SHFC+' ');
mu.push(' ');
};
});
mu.push('
');
mu.push('
');
$('stats').innerHTML = mu.join('');
DiiUslStats.statsLoaded = true;
diiStripeTables.doit('StatsRow', 'RowGray1', 'RowGray2');
DiiTabs.showtab('stats');
}
}; // DiiUslStats
function addCommas(nStr){
nStr += '';
x = nStr.split('.');
x1 = x[0];
x2 = x.length > 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
};
var TPinit = function(){
};
document.observe('dynamicModule:loaded', DiiTabs.moduleTracker);
document.observe('mainpage:loaded', DiiTabs.init);
');
};
});
if (files.length > 1) {
diiFade.init_images();
$$('div.imageContainerDIVUSL').each(function(i) { i.hide(); });
diiFade.loop();
};
},
get_files: function() {
var rotation_list = $("imageContainer");
while (rotation_list.hasChildNodes()) { rotation_list.removeChild(rotation_list.firstChild); }
new Ajax.Request("/images/rotation/" + rotation_name + "/manifest.xml?r=" + Math.round(Math.random()*10000), {
method: 'get',
asynchronous: false,
onCreate: function() { },
onSuccess: function(r){diiFade.show_files(r); document.fire('dynamicModule:loaded'); },
onFailure: function(){ diiFade.empty_rotation(); document.fire('dynamicModule:loaded'); }
});
}
};
document.observe('dom:loaded',diiFade.init);
Sounders Women Edge Blue Heat
Patterson's 38th minute goal lifts Seattle to 1-0 victory
The Sounders Women started the first leg of a three game road trip with a victory against the Santa Clarita Blue Heat on Wednesday night. A 38th minute goal for Lyndsey Patterson turned out to be the game winner.
/common/js/gallery/images/empty.jpg
');
mu.push(' '+atmnm+' ');
} else {
mu.push(' AWAY (' + DIIUSLAbbrev.getAbbrev(g.tg, sekey, lgkey) + ') ');
mu.push(' '+htmnm+' ');
}
mu.push(' ');
if (g.golive == 1) {
mu.push( ' ');
}
if (g.urlvideo != '') {
mu.push( ' ');
}
if (g.urlaudio != '') {
mu.push( ' ');
}
mu.push( ' ');
mu.push(' ');
mu.push('');
mu.push( '');
mu.push(gdt + ' ' + gtm);
mu.push( ' ');
mu.push( ''+g.facn+' ');
mu.push(' ');
mu.push('');
mu.push('
');
}
} else {
mu = DIISnapshot.renderNoNextGames();
}
if(mu.length>0) $('snap_next').innerHTML=mu.join('');
var mu=[];
var gi=nxt-1;
if (nxt == -1) gi = (gms.length -1);
if (gi >= 0 && gms.length > gi) {
var g=gms[gi], gdt = g.dttm.toString("ddd MMM d"), gtm = g.dttm.toString("h:mm tt");
var htmkey = g.tm2, htmnm = DIISnapshot.getTeamName(htmkey), hsc = g.sc2;
var atmkey = g.tm1, atmnm = DIISnapshot.getTeamName(atmkey), asc = g.sc1;
var scoreurl = '/scripts/runisa.dll?M2:gp:514828.' + rand4() + ':72011+Elements/Display+E+47107+Stats/+' + g.key;
if (!g.se) {
g.se = '42819353';
}
var hurl = ""
if(htmkey != ""){ var hurl = (htmkey == DIISnapshot.tm)?'#':'/scripts/runisa.dll?M2:gp:514828.'+rand4()+':72011+Elements/Display+E+47116+USL/+'+htmkey+'+'+DIISnapshot.teamsHolder[htmkey].primarytg; };
var aurl = ""
if(atmkey != ""){ var aurl = (atmkey == DIISnapshot.tm)?'#':'/scripts/runisa.dll?M2:gp:514828.'+rand4()+':72011+Elements/Display+E+47116+USL/+'+atmkey+'+'+DIISnapshot.teamsHolder[atmkey].primarytg; };
mu.push('
');
mu.push('');
mu.push('');
if (htmkey == DIISnapshot.tm) {
mu.push( 'HOME (' + DIIUSLAbbrev.getAbbrev(g.tg, sekey, lgkey) + ') ');
}
else{
mu.push( 'AWAY (' + DIIUSLAbbrev.getAbbrev(g.tg, sekey, lgkey) + ') ');
};
mu.push( ''+hsc+' '+htmnm+' ');
mu.push( '');
mu.push( '');
if (g.urlvideo != '') {
mu.push( '');
}
mu.push( ' ');
mu.push(' ');
mu.push('');
mu.push( '');
mu.push( ''+gdt+'
');
mu.push( ' ');
mu.push( ''+asc+' '+atmnm+' ');
mu.push(' ');
mu.push(' ');
mu.push('
');
};
if(mu.length>0) $('snap_prev').innerHTML=mu.join('');
},
renderNoNextGames: function(){
mu = []
mu.push('
');
mu.push('');
mu.push('');
mu.push('');
mu.push('No Upcoming Games ');
mu.push(' ');
mu.push(' ');
mu.push(' ');
mu.push('
');
return mu;
}
}
document.observe('dom:loaded',DIISnapshot.init);
Next 3 Games:
Loading ...