function hideImage(strDivName) {
	if (m_lngDivTeller < 3) {
		document.getElementById(strDivName + parseInt(m_lngDivTeller)).style.display = 'none';
	}
	m_lngDivTeller++;

	if (m_lngDivTeller <= 3) {
		x = 10; //Starting Location - left
		y = -200; //Starting Location - top
	
		moveImage(strDivName);
	}
	else
	{
		if (m_lngDivTeller > 3) {
			x = -200;
			y += 50;
			dest_x = 20;
			
			switch (m_lngDivTeller) {
				case 4:
					dest_y += 50;
					break;
				case 5: 
					dest_y += 40;
					break;
				default:
					dest_y += 80;
			}
			
			if (m_lngDivTeller <= 6) {
				moveImage(strDivName);
			}
		}
	}
}

function moveImage(strDivName) {
	//Keep on moving the image till the target is achieved
	var l_strEvalMove = "moveImage('" + strDivName + "')";
	var l_strEvalHide = "hideImage('" + strDivName + "')";
	
	if(x<dest_x) x = x + interval; 
	if(y<dest_y) y = y + interval;
	
	//Move the image to the new location
	document.getElementById(strDivName + parseInt(m_lngDivTeller)).style.top  = y+'px';
	document.getElementById(strDivName + parseInt(m_lngDivTeller)).style.left = x+'px';

	if ((x+interval < dest_x) || (y+interval < dest_y)) {
		//Keep on calling this function every 100 microsecond 
		//	till the target location is reached
		window.setTimeout(l_strEvalMove, 25);
	}
}
var x = 10; //Starting Location - left
var y = -300; //Starting Location - top
var dest_x = 10;  //Ending Location - left
var dest_y = 150;  //Ending Location - top
var interval = 10; //Move 10px every initialization
var m_lngDivTeller = 1;