/* DEPRECATED FILE */

function swap(des,num) {
	if (document.images) {
		document.images[names[des]].src = buttons[num].src;
	}
}

function changelink(src) {
	document.links['thumblink'].href = src.getAttribute('href');
}

function popup(src, features) {
	var theWindow = window.open('_loadimg.php?img='+src.getAttribute('href'), src.getAttribute('target'), features);
	theWindow.focus();
	return theWindow;
}
function popupSlideshow(src, index, features) {
	var theWindow = window.open(src.getAttribute('href') + '&photoIndex=' + index, src.getAttribute('target'), features);
	theWindow.focus();
	return theWindow;
}

function popupVr(src, features) {
	var theWindow = window.open('_loadvr.php?vr='+src.getAttribute('href'), src.getAttribute('target'), features);
	theWindow.focus();
	return theWindow;
}

/* DETECT BROWSER FOR WINDOW SIZING PURPOSES */
dh = 0;
dw = 0;

if(navigator.userAgent.match(/MSIE/) && navigator.userAgent.match(/Mac/i)) {
	dh = -16;
	dw = -15;
} else if (navigator.userAgent.match(/MSIE/)) {
	dh = -20;
}
