function VTPop(varLot) {
	window.open('VirtualTourPop.asp?Lot='+varLot,'','width=520, height=550, screenx=25, screeny=25, top=25, left=25 scrollbars=no')
}

function VPPop(varLot) {
	window.open('ViewPropertyPop.asp?Lot='+varLot,'','width=580, height=400, screenx=25, screeny=25, top=25, left=25 scrollbars=no')
}

function SchedulePop(varLot) {
	window.open('ScheduleViewingPop.asp?Lot='+varLot,'','width=400, height=475, screenx=25, screeny=25, top=25, left=25 scrollbars=no');
}

function PrintPop(varLot) {
	window.open('PrintPop.asp?Lot='+varLot,'','width=630, height=620, screenx=25, screeny=25, top=25, left=25 scrollbars=no');
}

function PopImg(varPic) {
	window.open('ImgPop.asp?Pic='+varPic,'','width=660, height=530, screenx=25, screeny=25, top=25, left=25 scrollbars=no');
}

function showVT(varLot) {
	myLightWindow.activateWindow({
		href: 'VirtualTourPop.asp?Lot='+varLot, 
		title: 'Virtual Tour for Lot '+varLot, 
		author: '', 
		caption: '', 
		type: 'external',
		height: 571,
		width: 546
	});

}

function showVideo() {
	window.open('MainVideoPage.asp','','width=430, height=330, screenx=25, screeny=25, top=25, left=25 scrollbars=no');
}

function showPrint(varLot) {
	window.open('PrintLot.asp?Lot='+varLot,'','width=630, height=530, screenx=25, screeny=25, top=25, left=25, scrollbars=yes');
}

function showProp(varLot) {

	parent.myLightWindow.activateWindow({
		href: 'PrintPop.asp?Lot='+varLot, 
		title: 'Lot '+varLot, 
		author: '', 
		caption: '',
		type: 'page',
		height: 571,
		width: 700
	});

}

function showViewing(varLot) {
	myLightWindow.activateWindow({
		href: 'ScheduleViewingPop.asp?Lot='+varLot, 
		title: 'Schedule a Property Viewing', 
		author: '', 
		caption: '',
		type: 'external',
		height: 570,
		width: 547
	});

}

var qsParm = new Array();
function qs() {
	var query = window.location.search.substring(1);
	var parms = query.split('&');
	for (var i=0; i<parms.length; i++) {
		var pos = parms[i].indexOf('=');
	
		if (pos > 0) {
			var key = parms[i].substring(0,pos);
			var val = parms[i].substring(pos+1);
			qsParm[key] = val;
		}
	}
}