function openWin(url, width, height) {
	var w = 480, h = 340;
	
	if (screen != null && screen.availWidth != null) {
		w = screen.availWidth;
		h = screen.availHeight;
	}
	
	var popW = width, popH = height;
	var leftPos = (w - popW) / 2, topPos = (h - popH) / 2;
	
	window.open(url,'popup','width='+width+',height='+height+',toolbar=no,menubar=no,status=no,scrollbars=no,resize=no,top='+topPos+',left='+leftPos);
}

function openWinS(url, width, height) {
	var w = 480, h = 340;
	
	if (screen != null && screen.availWidth != null) {
		w = screen.availWidth;
		h = screen.availHeight;
	}
	
	var popW = width, popH = height;
	var leftPos = (w - popW) / 2, topPos = (h - popH) / 2;
	
	window.open(url,'popup','width='+width+',height='+height+',toolbar=no,menubar=no,status=no,scrollbars=yes,resize=yes,top='+topPos+',left='+leftPos);
}

// No right click function (uncomment when moving live if necessary)
/* 
var clickmessage = "Sorry, we do not allow copying of our images.";

function disableclick(e) {
	if (document.all) {
		if (event.button == 2 || event.button == 3) {
			if (event.srcElement.tagName == "IMG") {
				alert(clickmessage);
				return false;
			}
		}
	}
	if (document.layers) {
		if (e.which == 3) {
			alert(clickmessage);
			return false;
		}
	}
}

function associateimages() {
	for (i = 0; i < document.images.length; i++)
		document.images[i].onmousedown = disableclick;
}

if (document.all)
	document.onmousedown = disableclick;
else if (document.layers)
	associateimages();
*/
