var timeStamp=Math.floor(Math.random()*999999) function openPositionedWindow(url, name, width, height, x, y, status, scrollbars, moreProperties, openerName) { // ie 4.5 and 5.0 mac - windows are 2 pixels too short; if a statusbar is used, the window will be an additional 15 pixels short var agent = navigator.userAgent.toLowerCase(); if (agent.indexOf("mac") != -1 && agent.indexOf("msie") != -1 && (agent.indexOf("msie 4") != -1 || agent.indexOf("msie 5.0") != -1) ) { height += (status) ? 17 : 2; } // Adjust width if scrollbars are used (pc places scrollbars inside the content area; mac outside) width += (scrollbars != '' && scrollbars != null && agent.indexOf("mac") == -1) ? 16 : 0; var properties = 'width=' + width + ',height=' + height + ',screenX=' + x + ',screenY=' + y + ',left=' + x + ',top=' + y + ((status) ? ',status' : '') + ',scrollbars' + ((scrollbars) ? '' : '=no') + ((moreProperties) ? ',' + moreProperties : ''); var reference = openWindow(url, name, properties, openerName); return reference; } function openWindow(url, name, properties, openerName) { // ie4.x pc can't give focus to windows containing documents from a different domain // in this case, initially load a local interstisial page to allow focussing before loading final url var agent = navigator.userAgent.toLowerCase(); if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) == 4 && agent.indexOf("msie 5") == -1 && agent.indexOf("msie5") == -1 && agent.indexOf("win") != -1 && url.indexOf('http://') == 0) { winReference = window.open('about:blank', name, properties); setTimeout('if (winReference && !winReference.closed) winReference.location.replace("' + url + '")', 300); } else { winReference = window.open(url, name, properties); } // ie doesn't like giving focus immediately (to new window in 4.5 on mac; to existing ones in 5 on pc) setTimeout('if (winReference && !winReference.closed) winReference.focus()', 200); if (openerName) self.name = openerName; return winReference; } function writeFlashNav(targetID, currentPage) { var so = new SWFObject("http://www.beta.ea.com/skate/swf/nav2.swf?xml=http://www.beta.ea.com/skate/swf/xml/nav2.xml", "skate_header", "960", "347", "8"); so.addVariable("currrentSection",currentPage); so.addParam("base", "http://www.beta.ea.com/skate/swf/"); so.addParam("wmode", "transparent"); so.write(targetID); } function writeRectangleAd(pageID,tileNum) { document.write('