var page = { init : function() { /* this.preparePopUps(); /* this.prepareTracking();*/ this.prepareListings(); /* this.logStats();*/ }, vh : YAHOO.util.Dom.getViewportHeight(), vw : YAHOO.util.Dom.getViewportWidth(), links : document.getElementsByTagName("a"), popwin : function(e) { YAHOO.util.Event.stopEvent(e); window.open(this.getAttribute("href"), "_blank", "scrollbars=yes") }, popwin_alt : function(e) { YAHOO.util.Event.stopEvent(e); window.open(this.getAttribute("href"), "_blank") }, fp_clickable : function(e) { YAHOO.util.Event.stopEvent(e); window.open(this.getAttribute("href"), "_blank"); document.location.href = this.getAttribute("rel"); }, /* UIC popups for ad listing boxes */ prepareListings : function() { var listings = document.getElementById('fp_ads'); var popups = document.getElementById('fp_ads_base'); if (listings) { var boxes = listings.getElementsByTagName('div'); } if (popups) { var boxes2 = popups.getElementsByTagName('div'); } for (var i=0; i= 0) { var t_id = classname.match(/tracked\-\d+/); if (t_id) { var tracked = t_id.toString(); var goto_id = tracked.substring(8, tracked.length); this.links[i].href = '/goto/'+goto_id; } } } }, /* UA dimensions Tracking */ logStats : function() { var sh, sw = 0; sw = screen.width; sh = screen.height; YAHOO.util.Connect.asyncRequest("GET","/util/browserstats.php?vw="+this.vw+"&vh="+this.vh+"&sh="+sh+"&sw="+sw, false); } }; function initPage() { page.init();}