(function(){

	//获取对象
	var $ = function(id){if(document.getElementById){return eval('document.getElementById("'+id+'")')}else{return eval('document.all.'+id)}};
	//构造函数
	var init = function(){
	  try{
		document.write('\
		  <style type="text/css">\
			html{background:url(Http://www.mathschina.com/skin/mc/10y_01.gif) repeat-x 0 0;}\
			body{background:url(Http://www.mathschina.com/skin/mc/10y_02.png) no-repeat top center;padding-top:0;margin-top:0;min-width:960px;}\
			.topAD{background:#fff;}\
			#wrap{padding-top:0;margin-top:0;}\
		  </style>\
		  <div id="TopBar" style="clear:both;width:960px;height:38px;margin:0 auto;padding:0;overflow:hidden;position:relative;">\
			<a href="http://www.sxzybao.com/zt/2010/y10.html" target="_blank" style="position:absolute;left:0;top:0;height:38px;padding:0;margin:0;cursor:pointer;width:960px;z-index:1;"></a>\
			<div id="TopBarClose" style="width:44px;height:18px;padding:0;margin:0;position:absolute;right:0;bottom:0;cursor:pointer;display:block;background:url(Http://www.mathschina.com/skin/mc/10y_03.gif) no-repeat;z-index:2;" title="关闭背景"></div>\
		  </div>\
		  <div id="TopBlank" style="clear:both;height:5px;line-height:0;font-size:0;overflow:hidden;display:none;"></div>\
		');

		$("TopBarClose").onclick = function(){
			document.documentElement.style.background = "none";
			document.body.style.background = "none";
			$("TopBar").style.display = "none";
			$("TopBlank").style.display = "block";
		};
	  }catch(e){}
	}
	init();

})();
