$(document).ready(function(){showWarningBrowser();var b="blind";var a={};var c=0;$("#takingXolairYes").attr("checked",false);$("#takingXolairNo").attr("checked",false);$("#takingXolairYes").change(function(){if(c==2){$("#step-2-qa1-2").toggle(b,a,500)}c=1});$("#takingXolairNo").change(function(){c=2;$("#step-2-qa1-2").toggle(b,a,500)});$("#subnav-trigger").mouseover(function(){$(this).attr({src:path+"images/subnav-trigger-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/subnav-trigger.jpg"})}).click(function(){$(this).attr({src:path+"images/subnav-trigger.jpg"})});$("#subnav-know-your-ige").mouseover(function(){$(this).attr({src:path+"images/subnav-know-your-ige-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/subnav-know-your-ige.jpg"})}).click(function(){$(this).attr({src:path+"images/subnav-know-your-ige.jpg"})});$("#subnav-talk-to-your-doctor").mouseover(function(){$(this).attr({src:path+"images/subnav-talk-to-your-doctor-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/subnav-talk-to-your-doctor.jpg"})}).click(function(){$(this).attr({src:path+"images/subnav-talk-to-your-doctor.jpg"})});$("#subnav-asthma-tracker").mouseover(function(){$(this).attr({src:path+"images/subnav-asthma-tracker-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/subnav-asthma-tracker.jpg"})}).click(function(){$(this).attr({src:path+"images/subnav-asthma-tracker.jpg"})});$("#subnav-real-people").mouseover(function(){$(this).attr({src:path+"images/subnav-real-people-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/subnav-real-people.jpg"})}).click(function(){$(this).attr({src:path+"images/subnav-real-people.jpg"})});$("#subnav-additional-tools").mouseover(function(){$(this).attr({src:path+"images/subnav-get-more-resources-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/subnav-get-more-resources.jpg"})}).click(function(){$(this).attr({src:path+"images/subnav-get-more-resources.jpg"})});if(page_id!="know-your-triggers"){$("#hor-subnav-know-your-trigger").mouseover(function(){$(this).attr({src:path+"images/hor-subnav-know-your-trigger-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/hor-subnav-know-your-trigger.jpg"})}).click(function(){$(this).attr({src:path+"images/hor-subnav-know-your-trigger-on.jpg"})})}if(page_id!="learn-about-ige"){$("#hor-subnav-learn-about-ige").mouseover(function(){$(this).attr({src:path+"images/hor-subnav-learn-about-ige-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/hor-subnav-learn-about-ige.jpg"})}).click(function(){$(this).attr({src:path+"images/hor-subnav-learn-about-ige-on.jpg"})})}if(page_id!="talk-to-your-doctor"){$("#hor-subnav-talk-to-your-doctor").mouseover(function(){$(this).attr({src:path+"images/hor-subnav-talk-to-your-doctor-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/hor-subnav-talk-to-your-doctor.jpg"})}).click(function(){$(this).attr({src:path+"images/hor-subnav-talk-to-your-doctor-on.jpg"})})}if(page_id!="preview-my-allergic-ashtma-tracker"){$("#hor-subnav-preview-my-allergic").mouseover(function(){$(this).attr({src:path+"images/hor-subnav-preview-my-allergic-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/hor-subnav-preview-my-allergic.jpg"})}).click(function(){$(this).attr({src:path+"images/hor-subnav-preview-my-allergic-on.jpg"})})}if(page_id!="meet-real-patients"){$("#hor-subnav-meet-real-patient").mouseover(function(){$(this).attr({src:path+"images/hor-subnav-meet-real-patient-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/hor-subnav-meet-real-patient.jpg"})}).click(function(){$(this).attr({src:path+"images/hor-subnav-meet-real-patient-on.jpg"})})}if(page_id!="get-more-resources"){$("#hor-subnav-get-more-resources").mouseover(function(){$(this).attr({src:path+"images/hor-subnav-get-more-resources-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/hor-subnav-get-more-resources.jpg"})}).click(function(){$(this).attr({src:path+"images/hor-subnav-get-more-resources-on.jpg"})})}$("#callout-sign-up").mouseover(function(){$(this).attr({src:path+"images/callout-sign-up-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/callout-sign-up.jpg"})}).click(function(){$(this).attr({src:path+"images/callout-sign-up-over.jpg"})});$("#callout-got-option").mouseover(function(){$(this).attr({src:path+"images/callout-got-option-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/callout-got-option.jpg"})}).click(function(){$(this).attr({src:path+"images/callout-got-option-over.jpg"})});$("#nav-allergic-ashma").mouseover(function(){$(this).attr({src:path+"images/nav-allergic-ashma-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/nav-allergic-ashma.jpg"})}).click(function(){$(this).attr({src:path+"images/nav-allergic-ashma-on.jpg"})});$("#nav-sign-up").mouseover(function(){$(this).attr({src:path+"images/nav-sign-up-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/nav-sign-up.jpg"})}).click(function(){$(this).attr({src:path+"images/nav-sign-up-on.jpg"})});$("#nav-is-your-allergic-asthma-controlled").mouseover(function(){$(this).attr({src:path+"images/nav-is-your-allergic-asthma-controlled-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/nav-is-your-allergic-asthma-controlled.jpg"})}).click(function(){$(this).attr({src:path+"images/nav-is-your-allergic-asthma-controlled-on.jpg"})});$("#nav-asthma-tracker").mouseover(function(){$(this).attr({src:path+"images/nav-asthma-tracker-on.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/nav-asthma-tracker.jpg"})}).click(function(){$(this).attr({src:path+"images/nav-asthma-tracker-on.jpg"})});$("#isi-help-more-btn").mouseover(function(){$(this).attr({src:path+"images/isi-help-more-btn-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/isi-help-more-btn.jpg"})}).click(function(){$(this).attr({src:path+"images/isi-help-more-btn-over.jpg"})});$("#isi-help-more-btn-home").mouseover(function(){$(this).attr({src:path+"images/isi-help-more-btn-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/isi-help-more-btn.jpg"})}).click(function(){$(this).attr({src:path+"images/isi-help-more-btn-over.jpg"})});$("#nav-find-specialist").mouseover(function(){$(this).attr({src:path+"images/nav-find-specialist-over.jpg"})}).mouseout(function(){$(this).attr({src:path+"images/nav-find-specialist.jpg"})}).click(function(){$(this).attr({src:path+"images/nav-find-specialist-over.jpg"})});if(page_id=="sign-up"){showBubble(1);showBubble(2);showBubble(3)}else{if(page_id=="learn-about-ige"){showBubble(4);showBubble(10);showBubble(11)}else{if(page_id=="about-your-allergic-asthma"){showBubble(5);showBubble(6);showBubble(7)}else{if(page_id=="allergic-asthma-defined"){showBubble(8);showBubble(9)}}}}$("#share").submit(function(){if(submitSendEmailForm()){var d=$(this).serializeObject();$.postJSON("share.html",d,function(f){$("#header-title").html("Sent!");var e='<br class="clearfloat" />';e+="<p>The page you shared has been sent to "+recipient_email+"</p>";e+='<p>To return to the previous page, please <a href="'+previousPage+'">click here</a>.</p>';e+="<p>Thank you!</p>";$("#content").html(e);trackEmailThisPage()})}return false});$("#sign-up").submit(function(){if(submitSignUp()){var d=$(this).serializeObject();$.postJSON("sign-up.html",d,function(e){if(e.ok){trackLinkOnPage("sign-up Step 1");trackFormSubmitedWithSuccess("sign-up");goForward("about-your-allergic-asthma.html")}})}return false});$("#opt-out-request").submit(function(){if(submitOptOutRequest()){trackFormSubmitedWithSuccess("opt-out-request");trackUnsubscribe("Xpansions.com_unsubscribe");var d=$(this).serializeObject();$.postJSON("opt-out-request.html",d,function(e){if(e.ok){goForward("opt-out-confirmed.html")}})}return false});$(function(){$("#dob").datepicker({date:["1960-07-31","2028-07-28"],yearRange:"1940:+0",changeMonth:true,changeYear:true})});$("#about-your-asthma-form").submit(function(){submitAboutYourAsthma()})});function displayYouAreNotDonePopUp(a){youAreDoneYetLink=a;var b=document.getElementById("you-are-done-yet");b.style.display="block";b.style.visibility="visible"}var youAreDoneYetLink="index.html";function showYouAreDoneYet(k){if(page_id=="sign-up"&&k!="http://www.xolairhcp.com"&&k!="http://www.gene.com/gene/products/information/pdf/xolair-prescribing.pdf"){var c=$("#emailAddress").val();var i=$("#confirmEmailAddress").val();var b=$("#firstName").val();var l=$("#lastName").val();var u=$("#address1").val();var t=$("#address2").val();var p=$("#city").val();var d=$("#state").val();var v=$("#zip").val();var a=$("#dob").val();if(c!=""||i!=""||b!=""||u!=""||t!=""||p!=""||d!=""||v!=""||a!=""){displayYouAreNotDonePopUp(k)}else{if(k.indexOf("xolair")>=0){goToNewPage(k)}else{goToPage(k)}}}else{if(page_id=="about-your-allergic-asthma"&&k!="http://www.xolairhcp.com"&&k!="http://www.gene.com/gene/products/information/pdf/xolair-prescribing.pdf"){var r=getCheckedValue(document.forms["about-your-asthma-form"].elements.attack);var g=getCheckedValue(document.forms["about-your-asthma-form"].elements.takingXolair);var q=getCheckedValue(document.forms["about-your-asthma-form"].elements["medication-1"]);var o=getCheckedValue(document.forms["about-your-asthma-form"].elements["medication-2"]);var n=getCheckedValue(document.forms["about-your-asthma-form"].elements["medication-3"]);var m=getCheckedValue(document.forms["about-your-asthma-form"].elements["medication-4"]);if(r==""||g==""||(q==""&&o==""&&n==""&&m=="")||(r!=""&&g!=""&&(q!=""||o!=""||n!=""||m==""))){displayYouAreNotDonePopUp(k)}else{if(k.indexOf("xolair")>=0){goToNewPage(k)}else{goToPage(k)}}}else{if(page_id=="sign-up-act"&&k!="http://www.xolairhcp.com"&&k!="http://www.gene.com/gene/products/information/pdf/xolair-prescribing.pdf"){var j=getCheckedValue(document.forms["asthma-control-test-form"].elements["how-much"]);var h=getCheckedValue(document.forms["asthma-control-test-form"].elements["how-often-shortness"]);var w=getCheckedValue(document.forms["asthma-control-test-form"].elements["how-often-symptoms"]);var f=getCheckedValue(document.forms["asthma-control-test-form"].elements["how-often-inhaler"]);var e=getCheckedValue(document.forms["asthma-control-test-form"].elements["rate-asthma"]);if((j==""||h==""||w==""||f==""||e=="")||(j!=""&&h!=""&&w!=""&&f!=""&&e!="")){displayYouAreNotDonePopUp(k)}else{if(k.indexOf("xolair")>=0){goToNewPage(k)}else{goToPage(k)}}}else{if(k=="http://www.xolairhcp.com"){hideYouAreDoneYet();showHCPDisclaimer(k)}else{if(k=="http://www.gene.com/gene/products/information/pdf/xolair-prescribing.pdf"){goToNewPage("http://www.gene.com/gene/products/information/pdf/xolair-prescribing.pdf")}else{if(k!="exit"){if(k.indexOf("xolair")>=0){goToNewPage(k)}else{goToPage(k)}}}}}}}}function hideYouAreDoneYet(){var a=document.getElementById("you-are-done-yet");a.style.display="none";a.style.visibility="hidden"}var IE6Cookie="";function showWarningBrowser(){IE6Cookie=getCookie("IE6Cookie");if(IE6Cookie!="true"&&isIE6){var a=document.getElementById("warning-browser");a.style.display="block";a.style.visibility="visible";setCookie("IE6Cookie","true")}}function hideWarningBrowser(){var a=document.getElementById("warning-browser");a.style.display="none";a.style.visibility="hidden"}var disclaimerURL="";function showDisclaimer(a){var b=document.getElementById("disclaimer");b.style.display="block";b.style.visibility="visible";disclaimerURL=a;if(a.indexOf("xolairhcp")>-1){}else{$("#disclaimer-content").html("")}}function showHCPDisclaimer(b){var a=document.getElementById("disclaimer-hcp");a.style.display="block";a.style.visibility="visible";disclaimerURL=b}function hideHCPDisclaimer(){var a=document.getElementById("disclaimer-hcp");a.style.display="none";a.style.visibility="hidden"}function goToDisclaimerNewPage(){goToNewPage(disclaimerURL)}function hideDisclaimer(){var a=document.getElementById("disclaimer");a.style.display="none";a.style.visibility="hidden"}function showHoldPhone(){var a=document.getElementById("hold-phone");a.style.display="block";a.style.visibility="visible"}function hideHoldPhone(){var a=document.getElementById("hold-phone");a.style.display="none";a.style.visibility="hidden"}function submitACT(g){if(g!=2){var d=getCheckedValue(document.forms["asthma-control-test-form"].elements["how-much"]);var b=getCheckedValue(document.forms["asthma-control-test-form"].elements["how-often-shortness"]);var f=getCheckedValue(document.forms["asthma-control-test-form"].elements["how-often-symptoms"]);var h=getCheckedValue(document.forms["asthma-control-test-form"].elements["how-often-inhaler"]);var e=getCheckedValue(document.forms["asthma-control-test-form"].elements["rate-asthma"]);if(d==""||b==""||f==""||h==""||e==""){$("#errorMessage").show();if(d==""){$("#act-text-q1").addClass("errorLabel")}else{$("#act-text-q1").removeClass("errorLabel")}if(b==""){$("#act-text-q2").addClass("errorLabel")}else{$("#act-text-q2").removeClass("errorLabel")}if(f==""){$("#act-text-q3").addClass("errorLabel")}else{$("#act-text-q3").removeClass("errorLabel")}if(h==""){$("#act-text-q4").addClass("errorLabel")}else{$("#act-text-q4").removeClass("errorLabel")}if(e==""){$("#act-text-q5").addClass("errorLabel")}else{$("#act-text-q5").removeClass("errorLabel")}goToByScroll("sign-up-step")}else{$("#errorMessage").hide();$("#act-text-q1").removeClass("errorLabel");$("#act-text-q2").removeClass("errorLabel");$("#act-text-q3").removeClass("errorLabel");$("#act-text-q4").removeClass("errorLabel");$("#act-text-q5").removeClass("errorLabel");var a="";var c="type=AsthmaControlTest&howMuch="+d+"&howOftenShortness="+b+"&howOftenSymptoms="+f+"&howOftenInhaler="+h+"&rateAsthma="+e+"&isSignUp="+g;a="ajax/processor/?"+c;$.ajax({type:"POST",url:a,data:"{}",contentType:"application/json; charset=utf-8",dataType:"json",success:handlerSubmitACT,error:errSubmitACT})}}else{trackTool("Sign-up Step 3");trackLinkOnPage("sign-up Step 3");goForward("sign-up-confirm.html")}}function handlerSubmitACT(a){if(a!="N/A"){if(a.act){trackLinkOnPage("sign-up Step 3");goForward("sign-up-confirm.html")}else{trackTool("The Asthma Control Test");goForward("act-result.html")}}}function errSubmitACT(a){}var medication="";function submitAboutYourAsthma(){var e,h,b,a,g,f;e=getCheckedValue(document.forms["about-your-asthma-form"].elements.takingXolair);if(e=="1"){h="1";b="1";a="1";g="1";f="1"}else{h=getCheckedValue(document.forms["about-your-asthma-form"].elements.attack);b=getCheckedValue(document.forms["about-your-asthma-form"].elements["medication-1"]);a=getCheckedValue(document.forms["about-your-asthma-form"].elements["medication-2"]);g=getCheckedValue(document.forms["about-your-asthma-form"].elements["medication-3"]);f=getCheckedValue(document.forms["about-your-asthma-form"].elements["medication-4"])}medication=b+a+g+f;if(h==""||e==""||medication==""){$("#errorMessage").show();if(h==""){$("#step2-q1").addClass("errorLabel");$("#step2-q1-asking").css("color","#808285")}else{$("#step2-q1").removeClass("errorLabel");$("#step2-q1-asking").css("color","#FF6F40")}if(e==""){$("#step2-q2").addClass("errorLabel");$("#step2-q2-asking").css("color","#808285")}else{$("#step2-q2").removeClass("errorLabel");$("#step2-q2-asking").css("color","#FF6F40")}if(medication==""){$("#step2-q3").addClass("errorLabel");$("#step2-q3-asking").css("color","#808285")}else{$("#step2-q3").removeClass("errorLabel");$("#step2-q3-asking").css("color","#FF6F40")}goToByScroll("sign-up-step")}else{$("#errorMessage").hide();$("#step2-q1").removeClass("errorLabel");$("#step2-q2").removeClass("errorLabel");$("#step2-q3").removeClass("errorLabel");$("#step2-q1-asking").css("color","#FF6F40");$("#step2-q2-asking").css("color","#FF6F40");$("#step2-q3-asking").css("color","#FF6F40");var d="type=AboutAsthma&attack="+h+"&xolair="+e+"&medication="+medication;var c;c="ajax/processor/?"+d;$.ajax({type:"POST",url:c,data:"{}",contentType:"application/json; charset=utf-8",dataType:"json",success:handlerSubmitAboutYourAsthma,error:errSubmitAboutYourAsthma})}}function handlerSubmitAboutYourAsthma(a){if(a!="N/A"){if(a.isOk==true){trackLinkOnPage("sign-up Step 2");goForward("sign-up-act.html")}}}function errSubmitAboutYourAsthma(a){}function setPhoneField(){var a=$("#phoneNumber").val();var b=a.substring(0,3);var e=a.substring(4,7);var d=a.substring(8,12);$("#area").val(b);$("#exch").val(e);$("#phoneNum").val(d);if((a!="")&&(checkPhone(a)=="")){if(submitSignUp()){var c=$("#sign-up").serializeObject();$.postJSON("sign-up.html",c,function(f){if(f.ok){trackLinkOnPage("sign-up Step 1");trackFormSubmitedWithSuccess("sign-up");goForward("about-your-allergic-asthma.html")}})}}else{$("#phoneLabel").addClass("errorLabel")}}function submitOptOutRequest(){optError=0;var i=true;var b=true;var n=true;var f=true;var h=true;var c=true;var p=true;var l=true;var j=true;var m=true;var d=$("#emailAddress").val();var g=$("#confirmEmailAddress").val();var a=$("#firstName").val();var k=$("#lastName").val();var r=$("#address1").val();var q=$("#address2").val();var o=$("#city").val();var e=$("#state").val();var t=$("#zip").val();if(checkEmail(d)!=""){$("#emailAddressLabel").addClass("errorLabel");b=false;optError++;errorMessage="emailAddress"}else{$("#emailAddressLabel").removeClass("errorLabel");b=true}if(checkEmail(g)!=""){$("#confirmEmailAddressLabel").addClass("errorLabel");n=false;optError++;errorMessage="confirmEmailAddress"}else{$("#confirmEmailAddressLabel").removeClass("errorLabel");n=true}if(d!=g){$("#emailAddressLabel").addClass("errorLabel");$("#confirmEmailAddressLabel").addClass("errorLabel");b=false;n=false;optError++;errorMessage="emailAddress is not equal to confirmEmailAddress"}if(checkName(a)!=""){$("#firstNameLabel").addClass("errorLabel");f=false;optError++;errorMessage="firstName"}else{$("#firstNameLabel").removeClass("errorLabel");f=true}if(checkName(k)!=""){$("#lastNameLabel").addClass("errorLabel");h=false;optError++;errorMessage="lastName"}else{$("#lastNameLabel").removeClass("errorLabel");h=true}if(checkAddress(r)!=""){$("#address1Label").addClass("errorLabel");c=false;optError++;errorMessage="address1"}else{$("#address1Label").removeClass("errorLabel");c=true}if(q!=null&&q!=""&&checkAddress(q)!=""){$("#address2Label").addClass("errorLabel");p=false;optError++;errorMessage="address2"}else{$("#address2Label").removeClass("errorLabel");p=true}if(checkCity(o)!=""){$("#cityLabel").addClass("errorLabel");l=false;optError++;errorMessage="city"}else{$("#cityLabel").removeClass("errorLabel");l=true}if(checkCity(e)!=""){$("#stateLabel").addClass("errorLabel");j=false;optError++;errorMessage="state"}else{$("#stateLabel").removeClass("errorLabel");j=true}if(checkZip(t)!=""){$("#zipLabel").addClass("errorLabel");m=false;optError++;errorMessage="zip"}else{$("#zipLabel").removeClass("errorLabel");m=true}if(b&&n&&f&&h&&c&&p&&l&&j&&m){i=true}else{i=false}if(i==true){$("#errorMessage").css("display","none");$("#outRequired").removeClass("errorLabel")}else{$("#errorMessage").css("display","block");$("#outRequired").addClass("errorLabel");if(optError>1){errorMessage="there_are_multiple_errors"}trackEnrollFormError(optError,errorMessage,"opt-out-request")}if(i==true){return true}else{return false}}function submitSignUp(f){optError=0;var o=true;var c=true;var u=true;var j=true;var n=true;var e=true;var x=true;var r=true;var p=true;var t=true;var D=true;var v=true;var g=$("#emailAddress").val();var m=$("#confirmEmailAddress").val();var b=$("#firstName").val();var q=$("#lastName").val();var z=$("#address1").val();var y=$("#address2").val();var w=$("#city").val();var h=$("#state").val();var B=$("#zip").val();var A=$("#area").val();var C=$("#exch").val();var l=$("#phoneNum").val();var i="";if(A!=""||C!=""||l!=""){i=A+"-"+C+"-"+l;$("#phone").val(i)}var k=i;var a=$("#dob").val();if(checkEmail(g)!=""){$("#emailAddressLabel").addClass("errorLabel");c=false;optError++;errorMessage="emailAddress"}else{$("#emailAddressLabel").removeClass("errorLabel");c=true}if(checkEmail(m)!=""){$("#confirmEmailAddressLabel").addClass("errorLabel");u=false;optError++;errorMessage="confirmEmailAddress"}else{$("#confirmEmailAddressLabel").removeClass("errorLabel");u=true}if(g!=m){$("#emailAddressLabel").addClass("errorLabel");$("#confirmEmailAddressLabel").addClass("errorLabel");c=false;u=false;optError++;errorMessage="emailAddress not equal to confirmEmailAddress"}if(checkName(b)!=""){$("#firstNameLabel").addClass("errorLabel");j=false;optError++;errorMessage="firstName"}else{$("#firstNameLabel").removeClass("errorLabel");j=true}if(checkName(q)!=""){$("#lastNameLabel").addClass("errorLabel");n=false;optError++;errorMessage="lastName"}else{$("#lastNameLabel").removeClass("errorLabel");n=true}if(checkAddress(z)!=""){$("#address1Label").addClass("errorLabel");e=false;optError++;errorMessage="address1"}else{$("#address1Label").removeClass("errorLabel");e=true}if(y!=null&&y!=""&&checkAddress(y)!=""){$("#address2Label").addClass("errorLabel");x=false;optError++;errorMessage="address2"}else{$("#address2Label").removeClass("errorLabel");x=true}if(checkCity(w)!=""){$("#cityLabel").addClass("errorLabel");r=false;optError++;errorMessage="city"}else{$("#cityLabel").removeClass("errorLabel");r=true}if(checkCity(h)!=""){$("#stateLabel").addClass("errorLabel");p=false;optError++;errorMessage="state"}else{$("#stateLabel").removeClass("errorLabel");p=true}if(checkZip(B)!=""){$("#zipLabel").addClass("errorLabel");t=false;optError++;errorMessage="zip"}else{$("#zipLabel").removeClass("errorLabel");t=true}if((k!="")&&(checkPhone(k)!="")){$("#phoneLabel").addClass("errorLabel");D=false;optError++;errorMessage="phone"}else{if(k!=""&&checkPhone(k)==""){$("#phoneLabel").removeClass("errorLabel");D=true}}if(checkDateOfBirth(a)!=""){$("#dobLabel").addClass("errorLabel");v=false;optError++;errorMessage="dob"}else{if(!checkAge()){$("#dobLabel").addClass("errorLabel");v=false;optError++;errorMessage="dob"}else{$("#dobLabel").removeClass("errorLabel");v=true}}if(c&&u&&j&&n&&e&&x&&r&&p&&t&&D&&v){o=true}else{o=false}if(o==true){$("#errorMessage").css("display","none");$("#outRequired").removeClass("errorLabel")}else{$("#errorMessage").css("display","block");$("#outRequired").addClass("errorLabel");if(optError>1){errorMessage="there_are_multiple_errors"}trackEnrollFormError(optError,errorMessage,"sign-up");goToByScroll("sign-up-step")}if(f!=1){if((A==""&&C==""&&l==""&&o==true)){showHoldPhone();return false}}if(o==true){if(f==1){var d=$("#sign-up").serializeObject();$.postJSON("sign-up.html",d,function(E){if(E.ok){trackLinkOnPage("sign-up Step 1");goForward("about-your-allergic-asthma.html")}})}return true}else{return false}}function exitSignUp(){hideYouAreDoneYet();if(youAreDoneYetLink=="http://www.xolairhcp.com"){hideYouAreDoneYet();showDisclaimer(youAreDoneYetLink)}else{if(youAreDoneYetLink.indexOf("xolair")>=0){goToNewPage(youAreDoneYetLink)}else{goToPage(youAreDoneYetLink)}}}function finishUp(){hideYouAreDoneYet()}function getSignUpStep(a){$.get("jsp/signUp/step"+a+".jsp",function(c){var b=$("#sign-up-step");b.html(c)})}var recipient_email;function submitSendEmailForm(){emailError=0;var b=true;recipient_email=$("#recipientEmail").val();var a=$("#recipientName").val();var e=$("#senderName").val();var c=$("#senderEmail").val();var d=$("#email-title");if(checkName(a)!=""){$("#recipient_name_label").css({color:"red"});b=false;emailError++;emailErrorMessage="recipient_name"}else{$("#recipient_name_label").css({color:"#808285"})}if(checkEmail(recipient_email)!=""){$("#recipient_email_label").css({color:"red"});b=false;emailError++;emailErrorMessage="recipient_email"}else{$("#recipient_email_label").css({color:"#808285"})}if(checkName(e)!=""){$("#your_name_label").css({color:"red"});b=false;emailError++;emailErrorMessage="your_name"}else{$("#your_name_label").css({color:"#808285"})}if(checkEmail(c)!=""){$("#your_email_label").css({color:"red"});b=false;emailError++;emailErrorMessage="your_email"}else{$("#your_email_label").css({color:"#808285"})}if(!b){$("#email_error_message").css({color:"red"});$("#email_error_message").css("display","block");if(emailError>1){emailErrorMessage="there_are_multiple_errors"}trackFormEmailSubmitedWithError("email_page",emailErrorMessage);return false}else{return true;$("#email_error_message").css({color:"#808285"})}}function goToXolairSpecialistLocator(){var a=$("#q").val();if(page_id=="sign-up"||page_id=="about-your-allergic-asthma"||page_id=="sign-up-act"){showYouAreDoneYet("http://www.xolair.com/specialist_locator_search.html?zip="+a)}else{if(a==""||a=="enter zip code"){goToNewPage("http://www.xolair.com/specialist_locator_search.html")}else{goToNewPage("http://www.xolair.com/specialist_locator_search.html?zip="+a)}}}function autoTab(f,a,h,g,d){var c=f.keyCode;var b="8,9,16,37,39";if(b.search(c)>=0){return false}if(document.getElementById(a).value.length==d){document.getElementById(h).focus()}else{return}if(document.getElementById(h).value.length==d){document.getElementById(g).focus()}}function ajustFairBalancePositionForISI(){$("#fair-balance-first-paragraphe").css("width","485px");$("#fair_balance_content").css("padding-left","0px");$("#footer-link").css("position","relative");$("#footer-link").css("left","-25px");$("#footer-link").css("padding-left","25px");$("#isi-first-paragraph").css("width","485px");if(isIE7){$("#fair-balance-ul1").css("margin-top","-20px");$("#fair-balance-ul2").css("margin-top","0px");$("#fair-balance-ul3").css("margin-top","0px");$("#fair-balance-ul4").css("margin-top","0px");$("#fair-balance-ul5").css("margin-top","0px");$("#fair-balance-ul6").css("margin-top","0px")}}function hideBubble(b){var a=$("#bubble");a.hide()}function showBubble(a){if(a==1){$("#why-are-we-askin-email").CreateBubblePopup();$("#why-are-we-askin-email").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"As a member of Xpansions, you'll receive<br /> e-mails with helpful tips and tools for<br /> dealing with your condition.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==2){$("#why-are-we-askin-phone").CreateBubblePopup();$("#why-are-we-askin-phone").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"Xpansions members have access to our live Nurse Educators,<br /> who may call to check in, track your symptoms, and answer<br /> your questions about XOLAIR, Xpansions, and allergic asthma.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==3){$("#why-are-we-askin-dob").CreateBubblePopup();$("#why-are-we-askin-dob").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"Your age helps us better understand who<br /> we're talking to.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==4){$("#constriction-of-the-airways").CreateBubblePopup();$("#constriction-of-the-airways").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"Tightening of the muscles that surround<br /> the airways of the lungs, making it hard<br /> to breathe.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==5){$("#step2-q1-asking").CreateBubblePopup();$("#step2-q1-asking").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"The Xpansions program provides<br /> information about asthma control.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==6){$("#step2-q2-asking").CreateBubblePopup();$("#step2-q2-asking").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"The Xpansions program provides<br /> appropriate information based on<br /> the type of medication you're taking.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==7){$("#step2-q3-asking").CreateBubblePopup();$("#step2-q3-asking").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"The Xpansions program provides<br /> appropriate information based on <br />the type of medication you're taking.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==8){$("#allergic-asthma-bubble").CreateBubblePopup();$("#allergic-asthma-bubble").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"A type of asthma in which an allergic<br /> trigger can lead to asthma symptoms,<br /> lack of control, and attacks. This type of<br /> asthma is confirmed by skin or blood test.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==9){$("#ige-bubble").CreateBubblePopup();$("#ige-bubble").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"Immunoglobulin E is a naturally occurring substance<br /> in the body that, in some people, can cause a series<br /> of chemical reactions that may lead to allergic asthma<br /> attacks and symptoms.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==10){$("#constriction-of-the-airways").CreateBubblePopup();$("#constriction-of-the-airways").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"Tightening of the muscles that surround<br /> the airways of the lungs, making<br /> it hard to breathe.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}else{if(a==11){$("#inflammation-of-the-airways").CreateBubblePopup();$("#inflammation-of-the-airways").SetBubblePopupOptions({position:"right",align:"center",tail:{align:"center"},innerHtml:"Swelling of the tissue in the airways<br /> of the lungs. This process narrows<br /> the airways, also making it hard to <br />breathe.",innerHtmlStyle:{color:"#808285","text-align":"left",font:"12px Arial,sans-serif"},themeName:"orange",themePath:path+"images/jquerybubblepopup-theme",alwaysVisible:false,closingDelay:200})}}}}}}}}}}}}function openLightBoxVideo(){if(isIE7){showDimBg();$("#xpansion_player_intro").css("zIndex",99999);$("#patient-video").css("zIndex",1000);$("#right-callout").html("");$("#patient-video").html("");$("#content-meet-real-patient").html("");$("#content-475").html("");$("#content-patient-video").css("background","none");$("#content-meet-real-patient").css("background","none");$("#matte").css("zIndex",10);$("#content-patient-video").css("zIndex",1000)}else{$("#xpansion_player_intro").css("zIndex",1000);$("#patient-video").css("zIndex",1000);showDimBg()}var a=$("#lightBoxVideo");a.show()}function showDimBg(){var b=document.getElementById("matte");b.style.display="block";b.style.visibility="visible";if(isIE6){var a=document.getElementById("mainBody");if(a){a.style.overflowY="hidden";a.style.overflowX="hidden"}}}function hideDimBg(){var b=document.getElementById("matte");b.style.display="none";b.style.visibility="hidden";if(isIE6){var a=document.getElementById("mainBody");if(a){a.style.overflowY="auto";a.style.overflowX="hidden"}}}function closeLightBoxVideo(){if(isIE7){goToPage("meet-real-patients.html")}else{hideDimBg();var b=$("#lightBoxVideo");b.hide();var a=$("#matte");a.hide();$("#xpansion_player_intro").css("zIndex",9999);$("#patient-video").css("zIndex",9999)}}var xpansionScroll=$("#xpansionScroll");function openISI(){$("#xpansion_player_intro").css("zIndex",1000);$("#patient-video").css("zIndex",1000);$("#xpansionScroll").css("zIndex",9999);if(page_id!="meet-real-patients"){$("#asthma-tracker-resource-content").css("zIndex",1000);$("#content-get-more-resource").css("zIndex",1000);$("#learn-about-content").css("zIndex",1000);$("#content-know-your-triggers").css("zIndex",1000);$("#know-your-triggers-content").css("zIndex",1000);$("#content-are-you-controlled").css("zIndex",1000);$("#additional-support-content").css("zIndex",1000);$("#asthma-control-test-form").css("zIndex",1000);$("#content").css("zIndex",1000);if(isIE7){$("#know-your-triggers-image-map").css("zIndex",-1);$("#content").css("zIndex",-1);$("#know-your-triggers-image-map").html("");$("#content").html('<br class="clearfloat"><img src="'+path+'images/pix.gif" width="636" height="401" border="0" />');$("#asthma-tracker-resource-content").html('<br class="clearfloat"><p><img src="'+path+'images/pix.gif" width="636" height="401" border="0" /></p>');$("#content-get-more-resource").html('<br class="clearfloat">');$("#learn-about-content").html('<br class="clearfloat">');$("#additional-support-content").html('<br class="clearfloat">');$("#content-sign-up").html('<br class="clearfloat">');$("#content-allergic-asthma-defined").html('<br class="clearfloat">');$("#content-learn-about-ige").html('<br class="clearfloat">');$("#content-are-you-controlled").html('<br class="clearfloat">');$("#content-talk-to-your-doctor").html('<br class="clearfloat">');$("#know-your-triggers-content").html('<br class="clearfloat">');$("#isi-help-more-btn").hide();$("#submit-act-btn").hide();$("#act-right").hide();$("#know-your-triggers-content").css("background","none");$("#content-talk-to-your-doctor").css("background","none");$("#content-are-you-controlled").css("background","none");$("#content-learn-about-ige").css("background","none");$("#content-allergic-asthma-defined").css("background","none");$("#content-sign-up").css("background","none");$("#additional-support-content").css("background","none");$("#content").css("background","none");$("#learn-about-content").css("background","none");$("#asthma-tracker-resource-content").css("background","none");$("#content-get-more-resource").css("background","none");if(page_id=="learn-about-treament-option"||page_id=="additional-support"||page_id=="act-result"||page_id=="allergic-asthma-tracker"||page_id=="opt-out-request"||page_id=="get-more-resources"||page_id=="preview-my-allergic-ashtma-tracker"||page_id=="is-your-allergic-asthma-controlled"||page_id=="allergic-asthma-defined"||page_id=="know-your-triggers"||page_id=="learn-about-ige"||page_id=="sign-up"||page_id=="about-your-allergic-asthma"||page_id=="allergic-asthma-defined"||page_id=="learn-about-ige"||page_id=="is-your-allergic-asthma-controlled"||page_id=="talk-to-your-doctor"||page_id=="asthma-tracker-resources"||page_id=="contact-us"||page_id=="terms-conditions"||page_id=="privacy-policy"||page_id=="share"||page_id=="key-terms"||page_id=="sitemap"||page_id=="asthma-control-test"){$("#xpansionScroll").css("left","-654px")}else{if(page_id=="sign-up-confirm"){$("#xpansionScroll").css("left","-572px")}else{if(page_id=="asthma-control-test"){$("#xpansionScroll").css("margin-left","-654px");$("#xpansionScroll").css("left","-654px");$("#xpansionScroll").css("float","left")}else{$("#xpansionScroll").css("left","-617px")}}}}}else{if(isIE7){$("#xpansionScroll").css("left","-654px")}}}function handleEnter(b,c){var a;if(c&&c.which){a=c.which}else{if(window.event){c=window.event;a=c.keyCode}}if(a==13){trackTool("searchDoctorLocation");goToXolairSpecialistLocator()}}function closeISI(){$("#xpansion_player_intro").css("zIndex",9999);$("#asthma-control-test-form").css("zIndex",9999);$("#patient-video").css("zIndex",9999);$("#content-are-you-controlled").css("zIndex",9999);$("#additional-support-content").css("zIndex",9999);$("#learn-about-content").css("zIndex",9999);$("#content-know-your-triggers").css("zIndex",9999);$("#know-your-triggers-content").css("zIndex",9999);$("#xpansionScroll").css("zIndex",1000);if(isIE7){goToPage(page_id+".html")}if(page_id!="meet-real-patients"){$("#content").css("zIndex",9999);$("#content-get-more-resource").css("zIndex",9999);$("#asthma-tracker-resource-content").css("zIndex",9999)}}function removeSpaces(a){return a.split(" ").join("")}function trackLinkOnPage(a){s.tl(this,"o",s.pageName+":"+a)}function trackFormSubmitedWithSuccess(a){s.linkTrackVars="events,prop11,eVar11";s.linkTrackEvents="event12";s.prop11=s.eVar11=s.channel+":"+a;s.events=s.events+",event12";s.tl(this,"o",s.pageName+"|"+a)}var emailError=0;var emailErrorMessage="";function trackFormEmailSubmitedWithError(a,b){if(emailError>0){s.linkTrackVars="events,prop11,eVar11,prop19,eVar19";s.linkTrackEvents="event14";s.prop11=s.eVar11=s.channel+":"+a;if(emailError==1){s.prop19=s.eVar19=b}else{if(emailError>1){s.prop19=s.eVar19="there_are_multiple_errors"}}s.events=s.events+",event14";s.tl(this,"o",s.pageName+"|"+a)}}var loginError=0;var loginErrorMessage="";function trackFormLoginSubmitedWithError(a,b){if(loginError>0){s.linkTrackVars="events,prop11,eVar11,prop19,eVar19";s.linkTrackEvents="event14";s.prop11=s.eVar11=s.channel+":"+a;if(loginError==1){s.prop19=s.eVar19=b}else{if(loginError>1){s.prop19=s.eVar19="there_are_multiple_errors"}}s.events=s.events+",event14";s.tl(this,"o",s.pageName+"|"+a)}}function trackTool(c){var b=s.linkTrackVars;var a=s.linkTrackEvents;s.linkTrackVars="events,prop16,eVar16";s.linkTrackEvents="event8";s.events="event8";s.prop16=s.eVar16=s.channel+":"+c;s.tl(this,"o",s.pageName+"|toolName");s.linkTrackVars=b;s.linkTrackEvents=a;clearOmniVar()}function trackFileDownload(a){var c=s.linkTrackVars;var b=s.linkTrackEvents;s.linkTrackVars="events,prop15,eVar15";s.linkTrackEvents="event7";s.channel=s.siteName+":"+s.indication+":"+s.siteAudience;s.prop15=s.eVar15=s.channel+":"+a;s.events="event7";s.tl(this,"d",s.pageName+"|"+a);s.linkTrackVars=c;s.linkTrackEvents=b;clearOmniVar()}function trackPrintPage(){var b=s.linkTrackVars;var a=s.linkTrackEvents;s.linkTrackVars="events";s.linkTrackEvents="event10";s.events="event10";s.tl(this,"o",s.pageName+"|printpage");s.linkTrackVars=b;s.linkTrackEvents=a;clearOmniVar()}function trackEmailThisPage(){var b=s.linkTrackVars;var a=s.linkTrackEvents;s.linkTrackVars="events";s.linkTrackEvents="event11";s.events="event11";s.tl(this,"o",s.pageName+"|emailpage");s.linkTrackVars=b;s.linkTrackEvents=a;clearOmniVar()}function trackFontSizeChange(c){var b=s.linkTrackVars;var a=s.linkTrackEvents;s.linkTrackVars="events,eVar21";s.linkTrackEvents="event13";s.eVar21=c;s.events="event13";s.tl(this,"o",s.pageName+"|changefontsize");s.linkTrackVars=b;s.linkTrackEvents=a;clearOmniVar()}function trackEnroll(b,j,h,g,f,e,d,c){var a=s.linkTrackVars;var i=s.linkTrackEvents;s.linkTrackVars="events,prop11,eVar11,prop13,eVar13,prop22,eVar22,prop23,eVar23,prop24,eVar24,prop25,eVar25,prop26,eVar26,prop27,eVar27";s.linkTrackEvents="event2,event3,event12";s.channel=s.siteName+":"+s.indication+":"+s.siteAudience;s.prop11=s.eVar11=s.channel+":enroll_"+b;s.prop22=s.eVar22=h.toLowerCase();s.prop23=s.eVar23=g.toLowerCase();s.prop24=s.eVar24=f.toLowerCase();s.prop25=s.eVar25=e.toLowerCase();s.prop26=s.eVar26=d.toLowerCase();s.prop27=s.eVar27=c.toLowerCase();s.events="event2,event12";if(j!=""){s.prop13=s.eVar13=s.channel+":"+j;s.events=s.events+",event3"}s.tl(this,"o",s.pageName+"|enroll_"+b);s.linkTrackVars=a;s.linkTrackEvents=i;clearOmniVar()}function trackUpdateProfile(b,j,h,g,f,e,d,c){var a=s.linkTrackVars;var i=s.linkTrackEvents;s.linkTrackVars="events,prop11,eVar11,prop13,eVar13,prop22,eVar22,prop23,eVar23,prop24,eVar24,prop25,eVar25,prop26,eVar26,prop27,eVar27";s.linkTrackEvents="event3,event5,event12";s.channel=s.siteName+":"+s.indication+":"+s.siteAudience;s.prop11=s.eVar11=s.channel+":update_"+b;s.prop12=s.eVar12="updateprofile";s.prop22=s.eVar22=h.toLowerCase();s.prop23=s.eVar23=g.toLowerCase();s.prop24=s.eVar24=f.toLowerCase();s.prop25=s.eVar25=e.toLowerCase();s.prop26=s.eVar26=d.toLowerCase();s.prop27=s.eVar27=c.toLowerCase();s.events="event5,event12";if(j!=""){s.prop13=s.eVar13=s.channel+":"+j;s.events=s.events+",event3"}s.tl(this,"o",s.pageName+"|update_"+b);s.linkTrackVars=a;s.linkTrackEvents=i;clearOmniVar()}var optError=0;var errorMessage="";function trackEnrollFormError(d,e,c){if(optError>0){var b=s.linkTrackVars;var a=s.linkTrackEvents;s.linkTrackVars="events,prop19,eVar19,prop11,eVar11";s.linkTrackEvents="event14";if(optError==1){s.prop19=s.eVar19=e}else{if(optError>1){s.prop19=s.eVar19="there_are_multiple_errors"}}s.channel=s.siteName+":"+s.indication+":"+s.siteAudience;s.prop11=s.eVar11=s.channel+":"+c;s.events="event14";s.tl(this,"o",s.pageName+"|error_"+c);s.linkTrackVars=b;s.linkTrackEvents=a;clearOmniVar()}}function trackEnrollEvent(d,a){var c=s.linkTrackVars;var b=s.linkTrackEvents;s.linkTrackVars="events,prop11,eVar11,prop13,eVar13";s.linkTrackEvents="event2,event3,event12";s.channel=s.siteName+":"+s.indication+":"+s.siteAudience;s.prop11=s.eVar11=s.channel+":"+d;s.events="event2,event12";if(a!=""){s.prop13=s.eVar13=s.channel+":"+a;s.events=s.events+",event3"}s.tl(this,"o",s.pageName+"|enroll_"+d);s.linkTrackVars=c;s.linkTrackEvents=b;clearOmniVar()}function trackUnsubscribe(a){var c=s.linkTrackVars;var b=s.linkTrackEvents;s.linkTrackVars="events,prop14,eVar14";s.linkTrackEvents="event6";s.channel=s.siteName+":"+s.indication+":"+s.siteAudience;s.prop14=s.eVar14=s.channel+":"+a;s.events="event6";s.tl(this,"o",s.pageName+"|unsubscribe"+a);s.linkTrackVars=c;s.linkTrackEvents=b;clearOmniVar()}function trackSearchResult2(d,c){var b=s.linkTrackVars;var a=s.linkTrackEvents;s.linkTrackVars="events,prop4,eVar4,prop5,eVar5";s.linkTrackEvents="event1";if(c==0){c="None"}s.prop4=s.eVar4=d.toLowerCase();s.prop5=s.eVar5=c;s.tl(this,"o",s.pageName+"|search");s.linkTrackVars=b;s.linkTrackEvents=a;clearOmniVar()}function trackSearchResult(c,b){if(b==0){b="None"}trackingSearchResultCount=b;s.prop5=s.eVar5=trackingSearchResultCount.toString();var a=s.t();if(a){document.write(a)}}function omniVideoStart(a){s.linkTrackVars="events,eVar17,prop17";s.linkTrackEvents="event18";s.prop17=s.eVar17=s.channel+":"+a;s.events="event18";s.tl(this,"o",s.pageName+"|"+a+"| video_start");s.events="";s.linkTrackVars="prop35,prop36,prop37,prop38,eVar35,eVar36,eVar37,eVar38";s.linkTrackEvents="None"}function omniVideoComplete(a){s.linkTrackVars="events,eVar17,prop17";s.linkTrackEvents="event19";s.prop17=s.eVar17=s.channel+":"+a;s.events="event19";s.tl(this,"o",s.pageName+"|"+a+"| video_complete");s.events="";s.linkTrackVars="prop35,prop36,prop37,prop38,eVar35,eVar36,eVar37,eVar38";s.linkTrackEvents="None"}function omniVideo25(a){s.linkTrackVars="events,eVar17,prop17";s.linkTrackEvents="event20";s.prop17=s.eVar17=s.channel+":"+a;s.events="event20";s.tl(this,"o",s.pageName+"|"+a+"| video_25");s.events="";s.linkTrackVars="prop35,prop36,prop37,prop38,eVar35,eVar36,eVar37,eVar38";s.linkTrackEvents="None"}function omniVideo50(a){s.linkTrackVars="events,eVar17,prop17";s.linkTrackEvents="event21";s.prop17=s.eVar17=s.channel+":"+a;s.events="event21";s.tl(this,"o",s.pageName+"|"+a+"| video_50");s.events="";s.linkTrackVars="prop35,prop36,prop37,prop38,eVar35,eVar36,eVar37,eVar38";s.linkTrackEvents="None"}function omniVideo75(a){s.linkTrackVars="events,eVar17,prop17";s.linkTrackEvents="event22";s.prop17=s.eVar17=s.channel+":"+a;s.events="event22";s.tl(this,"o",s.pageName+"|"+a+"| video_75");s.events="";s.linkTrackVars="prop35,prop36,prop37,prop38,eVar35,eVar36,eVar37,eVar38";s.linkTrackEvents="None"}function trackCustomLink(a){externalWindowLink="false";s.prop35=s.eVar35=s.pageName;s.prop36=s.eVar36=a;s.prop37=s.eVar37=s.pageName+" | "+a;s.tl(this,"o",s.pageName+"|"+a)}function checkAge(){var m=$("#dob").val();var e=m.substring(0,2);var n=m.substring(3,5);var h=m.substring(6,10);var j=new Date();var i=h+"-"+e+"-"+n;if(!/\d{4}\-\d{2}\-\d{2}/.test(i)){showMessage();return false}i=i.split("-");var c=parseInt(i[0]);var o=j.getFullYear();if(c>=o||c<1900){showMessage();return false}var b=parseInt(i[1],10)-1;if(b<0||b>11){showMessage();return false}var a=parseInt(i[2],10);var f=daysInMonth(b+1,c);if(a<1||a>f){showMessage();return false}var l=o-c;var g=j.getMonth();var k=j.getDate();if(b>g){l=l-1}else{if(b==g&&k<a){l=l-1}}if(l<12){return false}else{return true}}function showMessage(){}function daysInMonth(c,b){var a=new Date(b,c,0);return a.getDate()}function setPath(){var i="";var c;var h;var d;var f;var c;var e;var g;var b;var a;h=window.location.hostname;if(h.search(/dev/)>=0){d="dev"}if(h.search(/qa/)>=0){d="qa"}if(h.search(/ua/)>=0){d="ua"}if(h.search(/cdm/)>=0){d="cdm"}if(h.search(/cdmijboss/)>=0){d="cdmijboss"}if(remoteHost=="10.1.19.27"){d="remotecdmi"}if(h.search(/local/)>=0){d="local"}switch(d){case"dev":break;case"qa":i="http://xpansions-qa.gene.com/media/";break;case"ua":i="http://xpansions-ua.gene.com/media/";break;case"cdm":break;case"cdmijboss":i="http://cdmiwlwin10:8000/xpansions/";break;case"remotecdmi":i="http://cdmijboss.thecdmgroup.com/xpansions/";break;case"local":i="http://localhost:8080/xpansions/";i="http://cdmiwlwin10:8000/xpansions/";break;default:i="http://xpansions.com/media/";break}}setPath();function redirectNonFlash(){if(!hasFlash||!FlashDetect.installed){goToPage("non-flash.html")}var b=new SWFObject("flash/flashTest.swf","flashTest","1","1","9","none");b.write("flash-test");var a=($("#flash-test").html().length>0&&!isIphone&&!isIpad);if(!a){location.href="non-flash.html"}};
