//Temporarily lets delete the fbs_ cookie because FB.init isn't running properly
//--yuri 2011-08-22
if(typeof(wapoEnv) !== 'undefined')
{
    wapoUtilities.Delete_Cookie('fbs_'+wapoEnv.fb_app_id, wapoEnv.site_path, wapoEnv.site_base_domain);
}
else
{
    $wpjQ(document).bind('wapo_env_init', function(){
            wapoUtilities.Delete_Cookie('fbs_'+wapoEnv.fb_app_id, wapoEnv.site_path, wapoEnv.site_base_domain);
    });
}

//END Temporary code
//--yuri 2011-08-22


//This file will be loaded on the loginOptions view of id.trove.com

$wpjQ(document).ready(function(){
    /////////////////////////////////////////////////////////////////
    //change the header based on 'header' request param configuration
    /////////////////////////////////////////////////////////////////
    //default
    $wpjQ("#html-wapolabs_wrapperLoginOptions h1.default").html("Trove delivers the latest on all your interests");

    //line2
    $wpjQ("#html-wapolabs_wrapperLoginOptions h1.opta").html("The lastest on Michelle Obama and all your interests");

    //line3
    $wpjQ("#html-wapolabs_wrapperLoginOptions h1.optb").html("Personalized news about Michelle Obama and all your interests");

    //line4
    $wpjQ("#html-wapolabs_wrapperLoginOptions h1.optc").html("Free, powerful personalized news");

    /////////////////////////////////////////////////////////////////
    //change the description based on 'description' request param
    /////////////////////////////////////////////////////////////////
    //default
    $wpjQ(".msg-intro ul.default .feature_1").html("Stay up to the minute on everything you care about");
    $wpjQ(".msg-intro ul.default .feature_2").html("See the latest from thousands of blogs and news sources");
    $wpjQ(".msg-intro ul.default .feature_3").html("Synced across the Web and mobile devices");

    //line2
    $wpjQ(".msg-intro ul.opta .feature_1").html("Stay up to the minute on everything you care about");
    $wpjQ(".msg-intro ul.opta .feature_2").html("See the latest from thousands of blogs and news sources");
    $wpjQ(".msg-intro ul.opta .feature_3").html("Synced across the Web and mobile devices");

    //line3
    $wpjQ(".msg-intro ul.optb .feature_1").html("See the latest from thousands of blogs and news sources");
    $wpjQ(".msg-intro ul.optb .feature_2").html("Stay up to the minute on everything you care about");
    $wpjQ(".msg-intro ul.optb .feature_3").html("Synced across the Web and mobile devices");

    //line4
    $wpjQ(".msg-intro ul.optc .feature_1").html("Synced across the Web and mobile devices");
    $wpjQ(".msg-intro ul.optc .feature_2").html("See the latest from thousands of blogs and news sources");
    $wpjQ(".msg-intro ul.optc .feature_3").html("Stay up to the minute on everything you care about");

    //line5
    $wpjQ(".msg-intro ul.optd .feature_1").html("Stay up to the minute on everything you care about");
    $wpjQ(".msg-intro ul.optd .feature_2").html("Synced across the Web and mobile devices");
    $wpjQ(".msg-intro ul.optd .feature_3").html("See the latest from thousands of blogs and news sources");

    //line6
    $wpjQ(".msg-intro ul.opte .feature_1").html("See the latest from thousands of blogs and news sources");
    $wpjQ(".msg-intro ul.opte .feature_2").html("Synced across the Web and mobile devices");
    $wpjQ(".msg-intro ul.opte .feature_3").html("Stay up to the minute on everything you care about");

    //line7
    $wpjQ(".msg-intro ul.optf .feature_1").html("Synced across the Web and mobile devices");
    $wpjQ(".msg-intro ul.optf .feature_2").html("Stay up to the minute on everything you care about");
    $wpjQ(".msg-intro ul.optf .feature_3").html("See the latest from thousands of blogs and news sources");

    /////////////////////////////////////////////////////////////////
    //change the fb image text based on button param
    /////////////////////////////////////////////////////////////////
    $wpjQ("#fb_login_options .msg-fblogin #fb_register .overlay-button .fb-button-content.default").html("Sign In To Trove With Facebook &raquo;");
    $wpjQ("#fb_login_options .msg-fblogin #fb_register .overlay-button .fb-button-content.opta").html("Sign In To Trove With Facebook &raquo;");
    $wpjQ("#fb_login_options .msg-fblogin #fb_register .overlay-button .fb-button-content.optb").html("Sign In With Facebook &raquo;");
    $wpjQ("#fb_login_options .msg-fblogin #fb_register .overlay-button .fb-button-content.optc").html("Log In With Facebook &raquo;");
});
