//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(sPupFrom) {
	var iCkPos;
	var sCookies, sPupName;
	
	sPupName = 'rockPop';
	sCookies = document.cookie;
	tWindow= window.open(filename,sPupName,windowoptions);
	iCkPos = sCookies.indexOf(sPupName+'Blkd');
	if (iCkPos == -1)
		detectPupBlocker(tWindow, filename, sPupName, windowoptions, sPupFrom);
}// end of NFY POPUP

function joinFamilyClub()
{
	var NewEmail
	NewEmail = document.signup.email.value.toLowerCase();
	if (NewEmail.indexOf(" ") != -1)
		NewEmail = "";
	//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 = "golink.asp?Section=FeatureBox_Join&link=%2Ffamily%2Fdefault%2Easp%3Femail%3D" + NewEmail;
} // end of function

function GotoMyfp()
{
	var sURL;
	//alert(document.myfp.age_id[document.myfp.age_id.selectedIndex].value);
	TrackInterstitial('homepage', 'Section', document.myfp.age_id.selectedIndex-1);
	sURL = 	'myfp/age.asp?age=' + document.myfp.age_id[document.myfp.age_id.selectedIndex].value;

	window.location.href = sURL;
}

function writeHTMLTable()
{
	
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="249">');
	document.write('<tr>');
	document.write('<td><img src="/img/s.gif" width="1" height="40" border="0" alt=""></td>');
	document.write('<form id="myfp" name="myfp"><td align="center" valign="middle">');
	document.write('<select name="age_id" id="age_id" onchange="javascript:GotoMyfp();">');
	document.write('<option value="">Select an age</option>');
	document.write('<option value="botw">Baby on the Way</option>');
	document.write('<option value="1month">1 month</option>');
	document.write('<option value="2month">2 months</option>');
	document.write('<option value="3month">3 months</option>');
	document.write('<option value="4month">4 months</option>');
	document.write('<option value="5month">5 months</option>');
	document.write('<option value="6month">6 months</option>');
	document.write('<option value="7month">7 months</option>');
	document.write('<option value="8month">8 months</option>');
	document.write('<option value="9month">9 months</option>');
	document.write('<option value="10month">10 months</option>');
	document.write('<option value="11month">11 months</option>');
	document.write('<option value="12month">12 months</option>');
	document.write('<option value="12to18month">12 to 18 months</option>');
	document.write('<option value="18to24month">18 to 24 months</option>');
	document.write('<option value="2to25year">2 to 2 1/2 years</option>');
	document.write('<option value="25to3year">2 1/2 to 3 years</option>');
	document.write('<option value="3to4year">3 years</option>');
	document.write('<option value="4to5year">4 years</option>');
	document.write('<option value="5to13year">5+ years</option>');
	document.write('</select></td></form>');
	document.write('<td><img src="/img/s.gif" width="1" height="40"></td>');
	document.write('</tr>');
	document.write('</table>');
}

function check_NFY_cookie() {
	var allcookies = document.cookie;
	var pos = allcookies.indexOf(sCookieName+"=");

	if (pos == -1)
		NFYPopUp(); // pop up family club Items
}

function ProdRecallPopUp() {
	var iCkPos;
	var sCookies;
	
	//sCookies = document.cookie;
	tWindow= window.open('prodRecall.asp','prodRecall', 'left=10,top=10,screenX=10,screenY=10,height=150,width=320,scrollbars=no,toolbar=no,menubar=no;');
	//iCkPos = sCookies.indexOf(sPupName+'Blkd');
	//if (iCkPos == -1)
		detectPupBlocker(tWindow, 'prodRecall.asp', 'prodRecall', windowoptions, 'default.asp');
}// end of NFY POPUP
