// JavaScript Document

var winheight=100
var winsize=100
var x=5
var y=5

var max_height;
var max_width;

/*
Animated Window Opener Script (updated 00/04/24)- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function openwindow(thelocation, width, height){
max_height = height;
max_width = width;
temploc=thelocation
if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){
window.open(thelocation)
return
}
win2=window.open(thelocation,"","scrollbars=false")
win2.moveTo(0,0)
win2.resizeTo(100,100)
go2()
}

function go2(){
if (winheight >= max_height) x=0 
if (winsize >= max_width) y=0 

win2.resizeBy(y,x)
winheight+=5
winsize+=5

	if(x == 0 && y == 0){
		clearTimeout(repeater);
		x = 5;
		y = 5;
		winheight=100
		winsize=100
	}else{
		repeater = setTimeout("go2()",10);
	}

}
