//	alert	("I am divbox.js");

	var x		        = 0;
	var y		        = 0;
	var count	        = 0;
	var count2	        = null;
	var x_destination   = 0;
	var y_destination   = 0;
	var start_x	        = window.screen.width/2;
	var start_y	        = window.screen.height/3;

function move_div(pixel_object)
{
	count += 20;
	x_destination = (screen.availWidth - parseInt(pixel_object.style.width)   )/2;
	/* x=  (parseInt(pixel_object.style.left));

	pixel_object.style.left  =  x + 10;

	if(count<x_destination) setTimeout("move_div("+pixel_object.id+");", 1);  
	*/

	pixel_object.style.left  = x_destination;

return x_destination;
}

function move_div2(pixel_object)
{
    //alert("I am move_div2!");
	if(count2 == null)
	{
		//count2	= (window.document.body.scrollWidth - parseInt(pixel_object.style.width))/2;
		count2	= 0;
		pixel_object.style.top  = count2;
		pixel_object.style.left  = count2;
	}
	
	count2 += 20;
	
	y = y_destination;
	y=  (parseInt(pixel_object.style.top));
	
	x = x_destination;
	x=  (parseInt(pixel_object.style.left));

	pixel_object.style.top   =  ((parseInt(pixel_object.style.top)) - 20);
	//pixel_object.style.left  =  ((parseInt(pixel_object.style.left))- 20);
	
	//alert("x - 40: " + (x - 40) + "\ncount2: " + count2 + "\nx_destination: " + x_destination);

	if(count2 <= 100) setTimeout("move_div2("+pixel_object.id+");", 1);  

return x_destination;
}

function size_div(pixel_object, to_height)
{

	count += 1;
	x	=	(parseInt(pixel_object.width));
	y	=	(parseInt(pixel_object.height));
	left	=	(parseInt(pixel_object.style.left));
	opacity	=	(parseInt(pixel_object.filters.alpha.opacity));


	pixel_object.width			= x		+ 2;  	
	pixel_object.height			= y		+ 2;

	if(left < 200)	
	pixel_object.style.left			= left		+ 2;

	if(!(count%3))
    	pixel_object.filters.alpha.opacity	= opacity	+ 1;
	
    
	if(y<=to_height) setTimeout("size_div("+pixel_object.id+", "+ to_height +");", 1); 

return false;
}
