﻿// JScript File

function physicianDirectory() {
    window.open('http://www.horizon-bcbsnj.com/pd','physdir');
}

function launchHRAdemo() {
    window.open('http://www.horizon-bcbsnj.com/HRA_HSA_demo/index.html', 'HRA_HSA_Demo', 'left=0,top=0,toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,width=880px,height=660px');
}

function popMembersTutorial() {
    window.open('http://www.horizon-bcbsnj.com/redir/093002_tutorial.asp','membersTutorial','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=798,height=553');
}

function enrollNow() {
    var WT = _tag.WT;
    WT.svl = "ProspectSite";
    WT.ac = "IndividualsFamiliesEnrollTopNav";
    _tag.dcsCollect();
    WT.svl="";
    WT.ac="";
    window.open('https://horizon.healthconnectsystems.com/IFP/Default.aspx?UserCode=121301','EnrollOnline')
}

function medicareEnrollNow() {
    window.open('http://www.horizon-bcbsnj.com/medicare/advantage_09/enroll.aspx','MedicareEnrollOnline')
}

function groupEnrollNow() {
    window.open('https://www.horizon-bcbsnj.com/group_contact_us.asp','GroupEnrollOnline')
}

function recentGradsEnrollNow() {
    window.open('https://www.horizon-bcbsnj.com/nationalaccounts/grad_program_frame.asp','GradsEnrollOnline')
}

function advertising() {
    window.open('http://www.horizon-bcbsnj.com/mhw/index.asp','MHW');
}

function contactUs() {
    window.open('https://www.horizon-bcbsnj.com/members_contact_us.asp','contact');
}

function contactUsGrads() {
    window.open('https://www.horizon-bcbsnj.info/home/WelcomePage.aspx?source=gaw','contact');
}
function promoBucketEnrollNow() {
    window.open('https://www.horizon-bcbsnj.com/group_contact_us.asp?WT.svl=ProspectSiteHomePage&WT.ac=HorizonAdvantageBucket','GroupEnrollOnline')
}

//**** Functions for Individuals/Families Flash File
function FamilyPlan1() {
    window.location = 'plan_epo.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesFlash';
}
function FamilyPlan2() {
    window.location = 'plan_a_50.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesFlash';
}
function FamilyPlan3() {
    window.location = 'plan_c_8070.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesFlash';
}
function FamilyPlan4() {
    window.location = 'plan_c_10070.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesFlash';
}
function FamilyPlan5() {
    window.location = 'plan_hmo.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesFlash';
}
function FamilyPlan6() {
    window.location = 'dental_centurion.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesFlash';
}
function FamilyPlan7() {
    window.location = 'dental_individual.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesFlash';
}
function FamilyPlan8() {
    window.location = 'plan_medicaid.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesFlash';
}
function enrollNowFlash() {
    var WT = _tag.WT;
    WT.svl = "ProspectSiteHomePage";
    WT.ac = "IndividualsFamiliesEnrollFlash";
    _tag.dcsCollect();
    WT.svl="";
    WT.ac="";
    window.open('https://horizon.healthconnectsystems.com/IFP/Default.aspx?UserCode=121301','EnrollOnline')
}
function enrollNowHomepageBucket() {
    var WT = _tag.WT;
    WT.svl = "ProspectSiteHomePage";
    WT.ac = "IndividualsFamiliesEnrollBucket";
    _tag.dcsCollect();
    WT.svl="";
    WT.ac="";
    window.open('https://horizon.healthconnectsystems.com/IFP/Default.aspx?UserCode=121301','EnrollOnline')
}
//**** End Functions for Individuals/Families Flash File

//**** Functions for Medicare Flash File
function Medicare1() {
    window.location = 'medicare_advantage.aspx?WT.svl=ProspectSite&WT.ac=MedicareEligibleFlash';
}
function Medicare2() {
    window.location = 'medigap.aspx?WT.svl=ProspectSite&WT.ac=MedicareEligibleFlash';
}
function Medicare3() {
    window.location = 'dental_centurion.aspx?WT.svl=ProspectSite&WT.ac=MedicareEligibleFlash';
}
function Medicare4() {
    window.location = 'dental_individual.aspx?WT.svl=ProspectSite&WT.ac=MedicareEligibleFlash';
}
function Medicare5() {
    window.location = 'medicare_pdp.aspx?WT.svl=ProspectSite&WT.ac=MedicareEligibleFlash';
}
function Medicare6() {
    window.location = 'medicare_advantage_snp.aspx?WT.svl=ProspectSite&WT.ac=MedicareEligibleFlash';
}
function medicareEnrollNowFlash() {
    window.open('http://www.horizon-bcbsnj.com/medicare/advantage_09/enroll.aspx?WT.svl=ProspectSite&WT.ac=MedicareEligibleFlash','MedicareEnrollOnline')
}
function medicareEnrollNowHomepageBucket() {
    window.open('http://www.horizon-bcbsnj.com/medicare/advantage_09/enroll.aspx?WT.svl=ProspectSiteHomePage&WT.ac=MedicareBucket','MedicareEnrollOnline')
}
//**** End Functions for Medicare Flash File

//**** Functions for Small Group Flash File
function smallgroup1() {
    window.location = 'plan_advantage_direct_access.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupFlash';
}
function smallgroup2() {
    window.location = 'plan_advantage_direct_access.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupFlash';
}
function smallgroup3() {
    window.location = 'plan_advantage_direct_access.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupFlash';
}
function smallgroup4() {
    window.location = 'plan_advantage_direct_access.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupFlash';
}
function smallgroup5() {
    window.location = 'plan_advantage_ppo.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupFlash';
}
function smallgroup6() {
    window.location = 'plan_hmo_access_HSA.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupFlash';
}
function smallgroup7() {
    window.location = 'plan_prescription.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupFlash';
}
function smallgroup8() {
    window.location = 'plan_prescription.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupFlash';
}
function smallgroup9() {
    window.location = 'plans.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupFlash';
}
function smallgroupenrollnowflash() {
    window.open('https://www.horizon-bcbsnj.com/group_contact_us.asp?WT.svl=ProspectSite&WT.ac=SmallGroupFlash','GroupEnrollOnline')
}
function groupenrollnowHomepageBucket() {
    window.open('https://www.horizon-bcbsnj.com/group_contact_us.asp?WT.svl=ProspectSiteHomePage&WT.ac=SmallGroupBucket','GroupEnrollOnline')
}
//**** End Functions for Small Group Flash File

//**** Functions for Large Group Flash File
function largegroup1() {
    window.location = 'plan_hmo.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupFlash';
}
function largegroup2() {
    window.location = 'plan_direct_access.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupFlash';
}
function largegroup3() {
    window.location = 'plan_myway_hsa.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupFlash';
}
function largegroup4() {
    window.location = 'plan_pos.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupFlash';
}
function largegroup5() {
    window.location = 'plan_traditional.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupFlash';
}
function largegroup6() {
    window.location = 'plan_dental_ppo.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupFlash';
}
function largegroup7() {
    window.location = 'plan_dental_option.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupFlash';
}
function largegroup8() {
    window.location = 'plans.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupFlash';
}
function largegroupEnrollNowFlash() {
    window.open('https://www.horizon-bcbsnj.com/group_contact_us.asp?WT.svl=ProspectSite&WT.ac=LargeGroupFlash','GroupEnrollOnline')
}
function largerGroupEnrollNowHomepageBucket() {
    window.open('https://www.horizon-bcbsnj.com/group_contact_us.asp?WT.svl=ProspectSiteHomePage&WT.ac=LargeGroupBucket','GroupEnrollOnline')
}
//**** End Functions for Large Group Flash File

//**** Functions for Recent Grads Flash File
function grads1() {
    window.location = 'plan_epo.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsFlash';
}
function grads2() {
    window.location = 'plan_a_50.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsFlash';
}
function grads3() {
    window.location = 'plan_c_8070.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsFlash';
}
function grads4() {
    window.location = 'plan_c_10070.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsFlash';
}
function grads5() {
    window.location = 'plan_hmo.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsFlash';
}
function grads6() {
    window.location = 'dental_centurion.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsFlash';
}
function grads7() {
    window.location = 'dental_individual.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsFlash';
}
function recentGradsEnrollNowFlash() {
    window.open('https://www.horizon-bcbsnj.com/nationalaccounts/grad_program_frame.asp?WT.svl=ProspectSite&WT.ac=RecentGradsFlash','GradsEnrollOnline')
}
//**** End Functions for Recent Grads Flash File

//**** Functions for Orphan Pages Left Nav
var strURL = location.pathname;
var strLocation = strURL.toLowerCase();
function orphanLeftNavMHM() {
    if (strLocation.indexOf("individuals_families") != -1) {
        window.location='o_myhealthmanager.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesLeftNav';
    }
        else if (strLocation.indexOf("medicare") != -1) {
            window.location='o_myhealthmanager.aspx?WT.svl=ProspectSite&WT.ac=MedicareLeftNav';
        }
            else if (strLocation.indexOf("small_group") != -1) {
                window.location='o_myhealthmanager.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupLeftNav';
            }
                else if (strLocation.indexOf("large_group") != -1) {
                    window.location='o_myhealthmanager.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupLeftNav';
                }
                    else if (strLocation.indexOf("recent_grads") != -1) {
                        window.location='o_myhealthmanager.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsLeftNav';
                    }
                        else {
                            window.location='o_myhealthmanager.aspx';
                        }
    
}
function orphanLeftNavPhysDir() {
    if (strLocation.indexOf("individuals_families") != -1) {
        window.location='o_providerdirectory.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesLeftNav';
    }
        else if (strLocation.indexOf("medicare") != -1) {
            window.location='o_providerdirectory.aspx?WT.svl=ProspectSite&WT.ac=MedicareLeftNav';
        }
            else if (strLocation.indexOf("small_group") != -1) {
                window.location='o_providerdirectory.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupLeftNav';
            }
                else if (strLocation.indexOf("large_group") != -1) {
                    window.location='o_providerdirectory.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupLeftNav';
                }
                    else if (strLocation.indexOf("recent_grads") != -1) {
                        window.location='o_providerdirectory.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsLeftNav';
                    }
                        else {
                            window.location='o_providerdirectory.aspx';
                        }
    
}
function orphanLeftOS() {
    if (strLocation.indexOf("individuals_families") != -1) {
        window.location='o_onlineservices.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesLeftNav';
    }
        else if (strLocation.indexOf("medicare") != -1) {
            window.location='o_onlineservices.aspx?WT.svl=ProspectSite&WT.ac=MedicareLeftNav';
        }
            else if (strLocation.indexOf("small_group") != -1) {
                window.location='o_onlineservices.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupLeftNav';
            }
                else if (strLocation.indexOf("large_group") != -1) {
                    window.location='o_onlineservices.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupLeftNav';
                }
                    else if (strLocation.indexOf("recent_grads") != -1) {
                        window.location='o_onlineservices.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsLeftNav';
                    }
                        else {
                            window.location='o_onlineservices.aspx';
                        }
    
}
function orphanLeftPharmacy() {
    if (strLocation.indexOf("individuals_families") != -1) {
        window.location='o_pharmacyservices.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesLeftNav';
    }
        else if (strLocation.indexOf("medicare") != -1) {
            window.location='o_pharmacyservices.aspx?WT.svl=ProspectSite&WT.ac=MedicareLeftNav';
        }
            else if (strLocation.indexOf("small_group") != -1) {
                window.location='o_pharmacyservices.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupLeftNav';
            }
                else if (strLocation.indexOf("large_group") != -1) {
                    window.location='o_pharmacyservices.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupLeftNav';
                }
                    else if (strLocation.indexOf("recent_grads") != -1) {
                        window.location='o_pharmacyservices.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsLeftNav';
                    }
                        else {
                            window.location='o_pharmacyservices.aspx';
                        }
    
}
function orphanLeftMHH() {
    if (strLocation.indexOf("individuals_families") != -1) {
        window.location='o_myhealthyhorizon.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesLeftNav';
    }
        else if (strLocation.indexOf("medicare") != -1) {
            window.location='o_myhealthyhorizon.aspx?WT.svl=ProspectSite&WT.ac=MedicareLeftNav';
        }
            else if (strLocation.indexOf("small_group") != -1) {
                window.location='o_myhealthyhorizon.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupLeftNav';
            }
                else if (strLocation.indexOf("large_group") != -1) {
                    window.location='o_myhealthyhorizon.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupLeftNav';
                }
                    else if (strLocation.indexOf("recent_grads") != -1) {
                        window.location='o_myhealthyhorizon.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsLeftNav';
                    }
                        else {
                            window.location='o_myhealthyhorizon.aspx';
                        }
    
}
function orphanLeftPreciousAdditions() {
    if (strLocation.indexOf("individuals_families") != -1) {
        window.location='o_preciousadditions.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesLeftNav';
    }
        else if (strLocation.indexOf("medicare") != -1) {
            window.location='o_preciousadditions.aspx?WT.svl=ProspectSite&WT.ac=MedicareLeftNav';
        }
            else if (strLocation.indexOf("small_group") != -1) {
                window.location='o_preciousadditions.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupLeftNav';
            }
                else if (strLocation.indexOf("large_group") != -1) {
                    window.location='o_preciousadditions.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupLeftNav';
                }
                    else if (strLocation.indexOf("recent_grads") != -1) {
                        window.location='o_preciousadditions.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsLeftNav';
                    }
                        else {
                            window.location='o_preciousadditions.aspx';
                        }
    
}
function orphanLeftDiscountPrograms() {
    if (strLocation.indexOf("individuals_families") != -1) {
        window.location='o_discountprograms.aspx?WT.svl=ProspectSite&WT.ac=IndividualsFamiliesLeftNav';
    }
        else if (strLocation.indexOf("medicare") != -1) {
            window.location='o_discountprograms.aspx?WT.svl=ProspectSite&WT.ac=MedicareLeftNav';
        }
            else if (strLocation.indexOf("small_group") != -1) {
                window.location='o_discountprograms.aspx?WT.svl=ProspectSite&WT.ac=SmallGroupLeftNav';
            }
                else if (strLocation.indexOf("large_group") != -1) {
                    window.location='o_discountprograms.aspx?WT.svl=ProspectSite&WT.ac=LargeGroupLeftNav';
                }
                    else if (strLocation.indexOf("recent_grads") != -1) {
                        window.location='o_discountprograms.aspx?WT.svl=ProspectSite&WT.ac=RecentGradsLeftNav';
                    }
                        else {
                            window.location='o_discountprograms.aspx';
                        }
    
}
//**** End Functions for Orphan Pages Left Nav