
// Code by James Kirkbright 30/08/05 for www.piskiesits.co.uk


function resize2(which, start_width, start_height, end_width, end_height, interval, page){

	obj281 = document.getElementById(which)

	obj281.style.width = start_width
	obj281.style.height = start_height

	zooming2 = setInterval("intervalResize2(obj281, " + start_width + ", " + start_height + ", " + end_width + ", " + end_height + ", " + interval + ", '" + page +  "')", 1)
}


function intervalResize2(obj281, start_width, start_height, end_width, end_height, interval, page){

	yar1 = parseInt(obj281.style.width)
	yar2 = parseInt(obj281.style.height)


	if (yar1 < end_width || yar2 < end_height) {
		obj281.style.width = yar1 + interval
		obj281.style.height = yar2 + interval
	}
	else { 
		clearInterval(zooming2)
		obj281.style.width = end_width
		obj281.style.height= end_height
	}

}



