var coreFuncs={addLoadEvent:function(func){if(!coreFuncs.checkSupport()){return false;}
var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}},addResizeEvent:function(func){if(!coreFuncs.checkSupport()){return false;}
var oldonresize=window.onresize;if(typeof window.onresize!='function'){window.onresize=func;}else{window.onresize=function(){oldonresize();func();}}},ajaxInit:function(){var xmlHttp=false;try{xmlHttp=new XMLHttpRequest();}
catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){return false;}}}
return xmlHttp;},checkSupport:function(){if(!document.getElementById||!document.getElementsByTagName||!document.createTextNode||!document.createElement||!coreFuncs.ajaxInit()){return false;}
return true;}}