function openSignUp()
            {
            window.opener.location.href = "/join_today/";
            window.opener.focus();
            window.close();
}



// Preloads all hoverable images and sets mouseover actions on them.
// Assumes these images are the only ones with a name="" attribute.
// Assumes on state image file names are the filename with "_on" directly before the dot and file extension, in the same folder.
var ImageOvers = new Object();

function setMouseOvers() {
	if(document.images){
		var img;
		var first=true;
		for(var i=0;i<document.images.length;i++) {
			if (document.images[i].name&&document.images[i].name.indexOf("plan_") == 0){
				img=document.images[i];
				// set named image for default state
				ImageOvers[img.name] = new Image();
				ImageOvers[img.name].src = img.src;
				// set named image for mouseover state (and preload mouseover image)
				ImageOvers[img.name+'_on'] = new Image();
				ImageOvers[img.name+'_on'].src = img.src.substr(0,img.src.lastIndexOf("."))+"_on"+img.src.substr(img.src.lastIndexOf("."),img.src.length);
				// set mouseover/mouseout functions
				img.Xonmouseover = function() {this.src = ImageOvers[this.name+'_on'].src;}
				img.Xonmouseout  = function() {
					if (!this.selected) {
					this.src = ImageOvers[this.name].src;
					}
				}
				if(first){
					first=false;
					img.Xonmouseover();
				}
			}
		}
	}
}
window.onload = setMouseOvers;
function switchTab(tabID, imgName)
		{
		//set all of the tabs to 1
		document.getElementById("pic1").style.zIndex = 5;
		document.getElementById("pic2").style.zIndex = 4;
		document.getElementById("pic3").style.zIndex = 3;
		document.getElementById("pic4").style.zIndex = 2;
		document.getElementById("pic5").style.zIndex = 1;

		document.getElementById("pic1").style.visibility = "hidden";
		document.getElementById("pic2").style.visibility = "hidden";
		document.getElementById("pic3").style.visibility = "hidden";
		document.getElementById("pic4").style.visibility = "hidden";
		document.getElementById("pic5").style.visibility = "hidden";

		//set the selected tab to the top
		document.getElementById(tabID).style.zIndex = 6;
		document.getElementById(tabID).style.visibility = "visible";

		var imageToHighlight = document.images[imgName];
		for(var i=0;i<document.images.length;i++) {
			if (document.images[i].name&&document.images[i].name.indexOf("plan_") == 0){
				document.images[i].selected = false;
				document.images[i].Xonmouseout();
			}
		}
		imageToHighlight.selected = true;
		imageToHighlight.Xonmouseover();
		
		}
