function spnParentProfile_onclick() 
{
    replaceStripeMain("../Pages/page_ParentProfile.aspx");
}

function spnAffiliates_onclick()
{
    top.document.location.replace(myVars.BaseUrl +  "Default.aspx?Mode=Affiliates");   
}

function spnPrivacy_onclick() 
{
    myWindow = window.open('../Legal/Privacy_' + myVars.CurrentLanguage + '.htm','mywindow','toolbar=no, location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=no,height=400,width=500,left=' + (screen.width-500)/2 + ',top=' + (screen.height-400)/2);
}

function spnFAQ_onclick() 
{
    window.open('../FAQ/studyB4FAQ_' + myVars.CurrentLanguage + '.htm','mywindow','toolbar=no, location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no, resizable=yes,height=580,width=780,left=' + (screen.width-780)/2 + ',top=' + (screen.height-580)/2 );
}

function spnAbout_onclick() 
{
    replaceStripeMain("../Pages/page_About.aspx");
}

function spnContactUs_onclick() 
{
    replaceStripeMain("../Pages/page_ContactUs.aspx");
}
         
function replaceStripeMain(strLocation)
{
    if (window.studyB4_SetTopMenu)
        window.studyB4_SetTopMenu(null,null);

    var stripeMain = top.document.getElementById("studyB4Master_stripeMain");
    
    if (stripeMain && stripeMain.contentWindow)
    {
        var stripeMainContentWindow = stripeMain.contentWindow;

        if (stripeMainContentWindow.studyB4_SetBackgroundFilter)
            try
            {
                //main stripe main not be fully loaded - all we miss is the spinning icon
                stripeMainContentWindow.studyB4_SetBackgroundFilter(true);
                stripeMainContentWindow.location.replace(strLocation);
            }
            catch(e)
            {
            }
    }
}