		
$(function(){
	
	$(window).load(function(){		
		$("#toMax").hide();
		IndexImPop();
		$("div[id=newnotice]").show(1500);
		$("div[id=newnotice]").slideDown(1500);		
		setTimeout(	function(){
			$("div[id=noticecon]","div[id=newnotice]").slideUp(1500);
			$("#toMax").show();
			$("#toMin").hide();
		},30000);
	})	
	$("label[id=toMin]").click(function(){
		$("div[id=noticecon]","div[id=newnotice]").slideUp(1500);
		$("#toMax").show();
		$("#toMin").hide();
	});
	
	$("label[id=toMax]").click(function(){
		$("div[id=noticecon]","div[id=newnotice]").slideDown(1500);
		$("#toMax").hide();
		$("#toMin").show();
	});
	
	$("label[id=toClose]").click(function(){
		$("div[id=newnotice]").hide(1500);
	});
	
	
});




function IndexImPop (){	
	var isIE6=$.browser.msie && $.browser.version=="6.0";	
	var wObject=(document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
	if(isIE6){		
		var topHeight=wObject.scrollTop + wObject.clientHeight - document.getElementById("newnotice").offsetHeight;
		var loc={right:"0px",top:topHeight+"px"};
		$("div[id=newnotice]").css(loc);		
			setTimeout("IndexImPop()",80);			
	}else{
		var loc={right:"0px",bottom:"0px"};
		$("div[id=newnotice]").css(loc);
		$("div[id=newnotice]").css("position","fixed");
	}	
};