var domLoadedTime=date.getTime();var pageLoadedTime=0;var stopProfiling=function(B){var A=new Date();pageLoadedTime=A.getTime()};var postLoadTime=function(E){var B=new Date();stopProfiling(E);if(loadtime.insertID<=0){return false}loadtime.onload=B.getTime()-startOnload;loadtime.page=B.getTime()-startTime;loadtime.headtime=headTime-startTime;loadtime.leaderboard=leaderBoardTime-headTime;loadtime.js=timeJS;loadtime.html=timeHtml;var A=ComCore.Page.buildAjaxURL("debug","postLoadTime")+"&hip="+Math.floor(Math.random()*1000000);var C="&html="+loadtime.html;C+="&page="+loadtime.page;C+="&headtime="+loadtime.headtime;C+="&leaderboardtime="+loadtime.leaderboard;C+="&onload="+loadtime.onload;C+="&js="+loadtime.js;C+="&insertID="+loadtime.insertID;var D=new Ajax.Request(A,{method:"post",parameters:C,onSuccess:function(G,F){try{if(!F.success){throw"Could not post succesfully"}}catch(H){ComCore.Debug.error("Error in onPostLoadTimeSuccess");ComCore.Debug.error(H)}},onFailure:function(F){debug("Could not send the load time");debug(t)}})};Event.observe(window,"load",postLoadTime,false);