document.write ("<iframe name=win id=win marginwidth=0 marginheight=0  frameborder=0 scrolling=no src='' width=0 height=0></iframe>");


var admesg='<a href=\"http://www.3gzyw.com/51mike/" title=\"麦客疯下载" target=\"_blank\" style=\"font-size:14px;font-weight:bold\"><font style="color:#ff0000">麦客疯,点击下载!</font></a>';
var topmesg="<bgsound src=\"/js/info.wav\" loop=\"1\" volume=\"0\"><div id=\"iewarning\" style=\"width:19px; float:left;\"><img align=\"absmiddle\" src=\"/js/warning.gif\" border=\"0\" /></div><div id=\"closeimg\" style=\"width:19px; float:right;\"><a href=\"javascript:closediv('topnetease5');\" title=\"关闭提示\"><img src=\"/js/close.jpg\" align=\"absmiddle\" border=\"0\" /></a></div><div style=\" margin-top:4px;marign-left:4px;font-size:12px;color:#092E20\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td style=\"font-size:14px;font-weight:bold\">友情提示:想网络在线卡拉OK,强烈推荐您使用免费的</td><td>"+admesg+"</td></tr></table></div>";
document.ns = navigator.appName == "Netscape";
function gload4(){
  if (navigator.appName == "Netscape") {
	document.topnetease5.pageY=0;
	document.topnetease5.pageX=0;
	gmove4();
  }else {
	topnetease5.style.top=0;
	topnetease5.style.left=0;
	gmove4();
  }
}

function gmove4(){
	if(document.ns) {
		document.topnetease5.pageY=0;
		document.topnetease5.pageX=0;
		setTimeout("gmove4();",80)
	}else {
		topnetease5.style.top=document.body.scrollTop;
		topnetease5.style.left=0;
		setTimeout("gmove4();",80)
	}
}

function closediv(i) {
	writeCookie("mtopmesg","ikzhetopmesg",30);
	document.getElementById(i).style.display='none'; 
	window.addbr.innerHTML="";
}


function addfav(){
  showadgoogle();
}

function setCookie(arg_CookieName,arg_CookieValue,arg_CookieExpireDays){
  var todayDate=new Date();
  todayDate.setDate(todayDate.getDate()+arg_CookieExpireDays); 
  document.cookie=arg_CookieName+"="+arg_CookieValue+";path=/;expires="+todayDate.toGMTString()+";";
}

function getCookie(arg_CookieName){
  var Found=false;
  var start,end;
  var i=0;
  while(i <=document.cookie.length){
   start=i;end=start+arg_CookieName.length;
   if(document.cookie.substring(start,end)==arg_CookieName){
    Found=true;break;
   }
  i++;
  }
  
  if(Found==true){
   start=end+1;
   end=document.cookie.indexOf(";",start);
   if(end < start)end=document.cookie.length;
   return document.cookie.substring(start,end);
  }
  return "";
} 

function writeCookie(name,value,minus){
	var expire = "";
	if(minus != null){
	   expire = new Date((new Date()).getTime() + minus * 60000);
	   expire = "; expires=" + expire.toGMTString();
	}
	document.cookie = name + "=" + escape(value) + expire;
}

function readCookie(name){
	var cookieValue = "";
	var search = name + "=";
	if(document.cookie.length > 0)
	{
		offset = document.cookie.indexOf(search);
		if (offset != -1)
		{
			offset += search.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1) end = document.cookie.length;
			cookieValue = unescape(document.cookie.substring(offset, end))
		}
	}
	return cookieValue;
}

function showadgoogle(){
  if(readCookie("mtopmesg") != "ikzhetopmesg"){
  	window.addbr.innerHTML="<br><br>";
    if (navigator.appName == "Netscape"){
      document.write("<layer id=topnetease5 top=0 width=100% height=27 style='top:0; position: absolute; width:100%;background:#FFFFBB; text-align: center;border-bottom:1px solid #ffd532;'>"+topmesg+"</layer>");
      gload4();
    }else{
      document.write("<div id=topnetease5 style='top:0; position: absolute; width:100%;background:#FFFFBB; text-align: center;border-bottom:1px solid #ffd532;'>"+topmesg+"</div>");
      gload4();	
    }
  }else{
  	 window.addbr.innerHTML="";
  }
}

document.write("<span id=addbr></span>");
addfav();


