
// Code by James Kirkbright 30/08/05 for www.piskiesits.co.uk


function resize(which, start_width, start_height, end_width, end_height, interval, page){

	obj78 = document.getElementById(which)

	obj78.style.width = start_width
	obj78.style.height = start_height

	zooming = setInterval("intervalResize(obj78, " + start_width + ", " + start_height + ", " + end_width + ", " + end_height + ", " + interval + ", '" + page +  "')", 1)
}


function intervalResize(obj78, start_width, start_height, end_width, end_height, interval, page){

	yar1 = parseInt(obj78.style.width)
	yar2 = parseInt(obj78.style.height)


	if (yar1 < end_width || yar2 < end_height) {
		obj78.style.width = yar1 + interval
		obj78.style.height = yar2 + interval
	}
	else { 
		clearInterval(zooming)
		obj78.style.width = end_width
		obj78.style.height= end_height

		if (page != '') {
			yar3 = document.getElementById(page)
			yar3.style.display = 'inline'
			yar4 = document.getElementById(page + '2')
			yar4.style.visibility = 'visible'

			yar5 = document.getElementById('fade1')
			yar5.style.visibility = 'visible'
			yar5 = document.getElementById('fade2')
			yar5.style.visibility = 'visible'

		}

	}


}



