var alltop;
function init(){

	var showDiv;
	divs = document.all.tags("BODY");
	for( var mezzo_i=0; mezzo_i < divs.length; mezzo_i++ ){
		if(divs[mezzo_i].id == 'mezzonb'){
			showDiv = divs(mezzo_i);
			break;
		}
	}

	w = document.body.clientWidth; 
	h = document.body.clientHeight;

	var top		= ( h + 30 );
	alltop		= ( h + 30 );
	var left	= ( w - 190 );

	document.all['npp'].style.visibility 	= 'visible';
	document.all['npp'].style.width	= 190;
	document.all['npp'].style.height	= 200;
	document.all['npp'].style.left		= left;
	document.all['npp'].style.top		= top;

}

function mv()
{
	t = Number(alltop) - 205;
	aa=parseInt(document.all['npp'].style.top)
	document.all['npp'].style.top = aa-5
	bb=parseInt(document.all['npp'].style.top)

	if(bb > t){
		setTimeout('mv()',30)
	}else{
		clearTimeout('mv()')
		InitScroll();
	}
}//end mv

function hideNewpopup( divid ) {

 divid.filters.blendTrans.apply();
 divid.style.visibility = "hidden";
 divid.filters.blendTrans.play(); 
}

function Move( he, wid )
{
	var showDiv;
	divs = document.all.tags("DIV");

	for( var mezzo_i=0; mezzo_i < divs.length; mezzo_i++ ){
		if(divs[mezzo_i].id == 'npp'){
			showDiv = divs(mezzo_i);
			break;
		}
	}

	
	windowHeight = document.body.clientHeight;
	windowWidth = document.body.clientWidth;

	scrollY = document.body.scrollTop;

	if( 1050 <  (windowHeight + scrollY - 180) ){
		showDiv.style.display = "";
		showDiv.style.top =  1030 ;
//		showDiv.style.left = wid;
		document.body.scrollTop = scrollY;
	}else{
		showDiv.style.display = "";
		showDiv.style.top = (windowHeight + scrollY - 180);
		showDiv.style.left = (windowWidth - 190);
	}

}
function InitScroll()
{

	Height	= document.body.clientHeight;
	Width	= document.body.clientWidth;
	cookie = setInterval("Move("+ (Height) +", "+ (Width) +" )", 10);

}



