function popperOLD(url) {
	var popwin = window.open(url,'','scrollbars=yes,menubar=no,height=530,width=530,resizable=yes,toolbar=no,location=no,status=no');
}

// POP UP WINDOW
function popper(url) {
	// alert("Pop Recipe: " + url);
	
	var name = 'baby';
	var height = '590';
	var width = '870';
	var resize = 'yes';
	var scrolling = 'yes';
	
	features = "menubar=0, toolbar=0, location=0, directories=0, status=0, scrollbars=" + scrolling + ", resizable=" + resize + ", width=" + width + ", height=" + height + ",dependent=yes";
	
	if (window.thePopper && !window.thePopper.closed) {
		
		thePopper.resizeTo(width,height);
		thePopper.innerwidth=width;
		thePopper.height=height;
		thePopper.location.href = url;
		thePopper.focus();
		
	} else {

		var winl = Math.floor((screen.width - width) / 2);
		var wint = Math.floor((screen.height - height) / 4);
					
		thePopper = window.open(url,name,'top='+wint+',left='+winl+','+features);
		thePopper.innerwidth=width;
		thePopper.height=height;
	
	}
	 
}


function popSignup(theURL) {
        if (window.thePopWin) {
                if (window.thePopWin.closed){ 
                        thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=650,height=550');
                        doneIt = 1;
                } else {
                        if (navigator.appVersion.indexOf("AOL") == -1) {
                                window.thePopWin.focus();
                                if (window.thePopWin.location != theURL) window.thePopWin.location = theURL;
                        } else {
                                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=650,height=550');
                        }
                }
        } else {
                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=650,height=550');

        }
}

function popSummer(theURL) {
        if (window.thePopWin) {
                if (window.thePopWin.closed){ 
                        thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=600,height=370');
                        doneIt = 1;
                } else {
                        if (navigator.appVersion.indexOf("AOL") == -1) {
                                window.thePopWin.focus();
                                if (window.thePopWin.location != theURL) window.thePopWin.location = theURL;
                        } else {
                                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=600,height=370');
                        }
                }
        } else {
                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=600,height=370');

        }
}

function popBig(theURL) {
        if (window.thePopWin) {
                if (window.thePopWin.closed){ 
                        thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=750,height=550');
                        doneIt = 1;
                } else {
                        if (navigator.appVersion.indexOf("AOL") == -1) {
                                window.thePopWin.focus();
                                if (window.thePopWin.location != theURL) window.thePopWin.location = theURL;
                        } else {
                                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=750,height=550');
                        }
                }
        } else {
                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=750,height=550');

        }
}


function popBio(theURL) {
        if (window.thePopWin) {
                if (window.thePopWin.closed){ 
                        thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=650,height=550');
                        doneIt = 1;
                } else {
                        if (navigator.appVersion.indexOf("AOL") == -1) {
                                window.thePopWin.focus();
                                if (window.thePopWin.location != theURL) window.thePopWin.location = theURL;
                        } else {
                                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=650,height=550');
                        }
                }
        } else {
                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable,width=650,height=350');

        }
}
