function getBasics() {
	vupH = getWinHeight();
	vupW = getWinWidth();
}

function popPic(a) {
	p = a.href;
	pw = xWidth(a);
	ph = xHeight(a);
	sh = screen.availHeight;
	sw = screen.availWidth;
	//alert(p);
	//alert(pw + 'x' + ph);
	t = '/fitPic.asp?p=' + escape(p) + '&pw=' + pw + '&ph=' + ph + '&sw=' + sw + '&sh=' + sh;
	popWinResizeable(t, 'fitPic', 200, 100, 'no', 'center');
}

function popPic2(a) {
	p = a.href;
	t = '/fitPic.asp?p=' + escape(p);
	popWinResizeable(t, 'fitPic2', 200, 100, 'yes', 'center');
	window.close();
}

function popVideo(v) {
	t = '/video.asp?v=' + escape(v);
	popWinResizeable(t, 'video', 380, 350, 'no', 'center');
}

function gotoPic(p) {
	popWinResizeable(p, 'gotoPic', 2000, 1000, 'yes', 'center');
}

addLoadEvent(getBasics);
