//Family Club Rock-a-stack popup
var sCookieName = "NFYROCKFLA"; //popup cookiename;
var filename = 'rock_popup.asp'; // popup filename
var windowoptions = 'left=10,top=10,screenX=10,screenY=10,height=620,width=450,scrollbars=no,toolbar=no,menubar=no;' //popup size options

function NFYPopUp(sWindow) {
	var Cookie = sCookieName+"=true;";
				
	var nextyear = new Date();
	nextyear.setFullYear(nextyear.getFullYear() + 1);				
	document.cookie = Cookie + "expires="+ nextyear.toGMTString();
				
			
	tWindow= window.open(filename,'popWindow',windowoptions);
	tWindow.focus();
				
}// end of NFY POPUP

function joinFamilyClub(sCtry)
{
	var NewEmail
	NewEmail = document.signup.email.value
	//this function gets called when we go to track the sign up for the Fisher-Price Family Feature box, for tracking purposes; SB 06/06/02
	document.signup.action = "/"+ sCtry +"/family/default.asp?email="+ NewEmail;
} // end of function

function GotoMyfp()
{
	var sURL;
	
	if (document.myfp.age_id[document.myfp.age_id.selectedIndex].value == 'botw')
		sURL = 	'myfp/botw.asp';
	else if (document.myfp.age_id[document.myfp.age_id.selectedIndex].value == '')
		sURL = 	'myfp/';
	else
		sURL = 	'myfp/age.asp?age=' + document.myfp.age_id[document.myfp.age_id.selectedIndex].value;
	
	window.location.href = sURL;
}


function check_NFY_cookie() {
	var allcookies = document.cookie;
	var pos = allcookies.indexOf(sCookieName+"=");
	var squery = location.search.substring(1);
	
	if (pos == -1){
		NFYPopUp('pop'); // pop up family club Items
	}			
}
