// JavaScript Document
 	function ShowNo() 
	{ 
		document.getElementById("doing").style.display="none"; 
		document.getElementById("divLogin").style.display="none"; 
	}  
		    
	function M(id) 
	{ 
		return (document.getElementById) ? document.getElementById(id) : document.all[id] ; 
	} 
		
	function showFloat() 
	{ 
		var range = getRange(); 
			M('doing').style.width = range.width + "px"; 
			M('doing').style.height = range.height + "px"; 
			M('doing').style.display = "block"; 
			document.getElementById("divLogin").style.display=""; 
	} 
	
	function getRange() 
	{ 
		  var top    = document.body.scrollTop; 
		  var left    = document.body.scrollLeft; 
		  var height  = document.body.clientHeight; 
		  var width  = document.body.clientWidth; 

		  if (top==0 && left==0 && height==0 && width==0) 
		  { 
			top    = document.documentElement.scrollTop; 
			left    = document.documentElement.scrollLeft; 
			height  = document.documentElement.clientHeight; 
			width  = document.documentElement.clientWidth; 
		  } 
		  return  {top:top  ,left:left ,height:height ,width:width } ; 
	} 
	
	
	/********************** auto scroll Ѷ*****************/
	
	function AutoScroll(obj){
      $(obj).find("ul:first").animate({
                marginTop:"-25px"
        },500,function(){
                $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
        });
	}
	$(document).ready(function(){
		setInterval('AutoScroll("#scrollDiv")',5000)
	});
	
	
	
	/*********设为首页********/
	
	function h(obj,url)
	{
		obj.style.behavior='url(#default#homepage)';
		obj.setHomePage(url);
	}
