//修改广告内容
var AD_CONTENT = "<div style='background-color:#eeeeee;font-size:10pt;color:blue;height:250px;overflow:auto;'>"
+ "<ol>"
+ "<li>网友发布技术提问贴时请指定合适的金币数（如不设置金币数，可能无人为你解答问题），问题得到解决后请结贴！<font color='red'><b>发帖者结贴时将获得系统返还66%的金币。</b></font></li>"
+ "<li>新注册网友请“新手报到区”发布一条“报道贴”以领取新人红包（疯狂金币+38），不要在该区重复发布，否则疯狂金币-10。</li>"
+ "<li>帖子中的代码请保持良好代码风格，并使用code标签（除非需要在代码中使用粗体字，其他颜色、大小的字体），乱糟糟的代码帖一律禁言3天！</li>"
+ "<li>论坛是一个公益性的社区，每个上论坛的朋友，不管他的技术有多厉害，他都要吃饭、要上班，别人能抽时间来为你回答问题，你是不是应该表示感谢呢？所以问题得到解决后请记得结贴！</li>"
+ "<li>不要在本论坛发布商业广告、尤其是其他培训机构的宣传广告，更不要在本论坛出现！</li>"
+ "<li>本论坛是技术性论坛，请勿发布敏感话题、政治言论。如发现严重违反此规定的，立即删贴，注销ID，禁止IP！</li>"
+ "</ol>"
+ "</div>";
function yeeku_right_fun()
{
	var target = document.getElementById('yeeku_right_ad');
	if (getCookie() == 'yecl')
	{
		target.style.display = 'none';
	}
	else
	{
		target.style.display = '';
		target.style.top=document.documentElement.scrollTop + document.documentElement.clientHeight-302 + "px";
		target.style.left=document.documentElement.scrollLeft + document.documentElement.clientWidth-534 + "px";
	}
}
function yeeku_flash()
{
	var target = document.getElementById("yeeku_flash");
	if (target.style.color == "#ff2222")
	{
		target.style.color = "#118811";
	}
	else
	{
		target.style.color = "#ff2222";
	}
}
var t1 = window.setInterval('yeeku_right_fun();',1);
var t2 = window.setInterval('yeeku_flash();',400);
function setCookie()
{
	document.cookie = 'hasClose=' + escape('yecl') +  ';';
}
function getCookie()
{
	var search = 'hasClose='
	var offset = document.cookie.indexOf(search)
	if (offset != -1)
	{
		offset += search.length ;
		end = document.cookie.indexOf(';', offset) ;
		if (end == -1)
		{
			end = document.cookie.length;
		}
		return unescape(document.cookie.substring(offset, end));
	}
	else
	{
		return '';
	}
}
