var islogin = document.URL if ( document.forms['login'] ) { var login_p_ = document.forms['login'].elements['category']; if( login_p_.value == "login-register" && (islogin).indexOf("login=T") == -1 ) { $(".greytitle:contains('Returning Customers')").parent().parent().parent().addClass("table_alr_custom"); $(".greytitle:contains('New Customers')").parent().parent().parent().parent().parent().parent().parent().addClass("table_all_"); $(".table_all_ tr:first").next().hide().next().hide(); $(".greytitle:contains('New Customers')").parent().parent().parent().parent().parent().hide(); $(".greytitle:contains('you prefer')").parent().parent().hide(); $(".smalltext:contains('New customer')").addClass("link_new"); $("#submitter").attr({ value: ""}); $(".table_alr_custom").before('

NEW & GUEST CUSTOMERS

or
'); $(".table_alr_custom tr:first").before('

RETURNING CUSTOMERS

'); $(".table_alr_custom tr:eq(1)").after('Please enter the email address and password used on your original order and you will be taken directly to the payment page to finalize your order.'); $("#content_new_txt").append("

Once you click continue you will be given the option to checkout as a guest or you may also create an account (optional). While creating an account is optional, having one does provide you with the following benefits:

"); $("input#register").appendTo("#content_new_form"); $(".table_alr_custom #submitter").parent().parent().parent().parent().addClass("table_S_In").parent().css("text-align","center"); $(".table_S_In #submitter, #content_new_form #register").after('

100% Secure Ordering

'); $(".table_alr_custom span.smallgraytext:contains('*')").html("* Required"); $("#content_new_form #register").val(""); $(".table_alr_custom, #conten_new_table").css("height", "300px"); $("#breamcrum_sc").remove(); $("#maincontents").css("padding-top", "0px"); $("#maincontents").css("margin-top", "0px"); $(".greytitle:contains('Or Use')").parent().parent().parent().hide(); } } if ( document.forms['login'] ) { if((islogin).indexOf("login=T") != -1 && (islogin).indexOf("newcust=T")== -1 ) { $(".greytitle:contains('Returning Customers')").parent().parent().parent().addClass("table_alr_custom"); $(".smalltext:contains('New customer')").addClass("link_new"); $("#submitter").attr({ value: ""}); $(".table_alr_custom").before('

NEW & GUEST CUSTOMERS

or
'); $(".link_new a").appendTo("#content_new_form"); $(".table_alr_custom tr:first").before('

RETURNING CUSTOMERS

'); $(".table_alr_custom tr:eq(1)").after('Please enter the email address and password used on your original order and you will be taken directly to the payment page to finalize your order.'); $("#content_new_txt").append("

Once you click continue you will be given the option to checkout as a guest or you may also create an account (optional). While creating an account is optional, having one does provide you with the following benefits:

"); $(".table_alr_custom #submitter").parent().parent().parent().parent().addClass("table_S_In").parent().css("text-align","center"); $(".table_S_In #submitter, #content_new_form #register").after('

100% Secure Ordering

'); $(".greytitle:contains('Or Use')").parent().parent().hide(); $(".table_alr_custom span.smallgraytext:contains('*')").html("* Required"); $(".table_alr_custom, #conten_new_table").css("height", "300px"); $(".table_alr_custom table").css("float","none"); $(".table_alr_custom table.continue_check_td").parent().css("text-align","center"); $("#breamcrum_sc").remove(); $("#maincontents").css("padding-top", "0px") $("#maincontents").css("margin-top", "0px"); $(".greytitle:contains('Or Use')").parent().parent().parent().hide(); } } var islogin_regis = document.URL; if ( document.forms['newcust'] ) { var login_p_register = document.forms['newcust'].elements['category']; if( login_p_register.value == "login-register" && (islogin_regis).indexOf("newcust=T") != -1 ) { $("input#submitter").attr({ value: ""}).addClass("continue_check"); $("input.continue_check").parent().parent().parent().parent().addClass("continue_check_td"); $(".continue_check").after('

100% Secure Ordering

'); $("#secure_id_").hide(); $("#defaultbilling_fs_lbl, #emailsubscribe_fs_lbl").parent().css("white-space","normal"); $("#breamcrum_sc").remove(); $("#maincontents").css("padding-top", "0px") $("#maincontents").css("margin-top", "0px"); $("#handle_loginMainPortlet td:first table:first td:first li").hide(); $("span#email_fs").next().after('

Used to send you order updates

') } }