// Pop up JS file for http://2007.gogrove.com

//this file drives the pop up windows used to display forms on the site. 
//The pop ups are triggered by the onClick element attached to the text for that particular form.
//-----------------------------------------------------------------------------------------------

//pop up window for photo gallery
//located at bottom of site in the brickwall flash element
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height){
if(popUpWin)
	{
	if(!popUpWin.closed) popUpWin.close();
	}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=800,height=600,left=60, top=0,screenX='+left+',screenY='+top+'');

}

//pop up window for online application
//located on the apply_now page
var popUpApp=0;
function popUpApplication(URLStr, left, top, width, height){
if(popUpApp)
	{
	if(!popUpApp.closed) popUpApp.close();
	}
popUpApp = open(URLStr, 'popUpApp', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=710,height=600,left=60, top=0,screenX='+left+',screenY='+top+'');

}

//pop up window for contact form
//located on the contact_us page
var popUpCon=0;
function popUpContact(URLStr, left, top, width, height){
if(popUpCon)
	{
	if(!popUpCon.closed) popUpCon.close();
	}
popUpCon = open(URLStr, 'popUpCon', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=330,height=525,left=60, top=0,screenX='+left+',screenY='+top+'');
}

//pop up window for maintenance request form
//located on the contact_us page
var popUpMain=0;
function popUpMaintenance(URLStr, left, top, width, height){
if(popUpMain)
	{
	if(!popUpMain.closed) popUpMain.close();
	}
popUpMain = open(URLStr, 'popUpMain', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=560,height=470,left=60, top=0,screenX='+left+',screenY='+top+'');

}