function openPop(url) {
	xpos = (screen.width - 800) / 2;
	ypos = (screen.height - 600) / 2;
	if(screen.width == 800) {
		winHeight = 540;
	}
	else {
		winHeight = 570;
	}
	if(url.charAt(0) == "h") {
		attributes = 'width=800,height=' + winHeight + ',scrollbars=no,resizable=no,status=yes,left=' + xpos + ',top=' + ypos;
		winName = 'subscribe';
	}
	else {
		attributes = 'width=600,height=' + winHeight + ',scrollbars=no,resizable=no,status=no,left=' + xpos + ',top=' + ypos;
		winName = 'pop';
	}
	platformPopup = window.open(url,winName,attributes);
	platformPopup.focus();
}

function swapImage(names) {
	if (document.images) {
		imageList = names.split(",");
		for (i = 0 ; i < imageList.length ; i++) {
			imagePair = imageList[i].split("=");
			if (imagePair.length == 2) {
				if (document.images[imagePair[0]]) {
					document.images[imagePair[0]].src = imagePair[1];
				}
			}
		}
	}
}