var fontId='14px';
var fontParam='';
var cid=''; //campaign id init
var disclaimerUrl='';
function loadTextSizeWindow(){
if(fontIdCookie==null){
showTextSizeWindow(1);
}
return false;
}
function showEmail(){
var window_gray_line=$("window_gray_line");
var email=$("email");
var email_window_body=$("email_window_body");
var email_content=$("email_content");
var email_error_message=$("email_error_message");
var recipient_email=$("recipient_email");
var recipient_name=$("recipient_name");
var your_email=$("your_email");
var email_link=$("email_link");
var email_window_right=$("email_window_right");
var recipient_email=$("recipient_email");
var recipient_email_label =$("recipient_email_label");
var recipient_name=$("recipient_name");
var recipient_name_label=$("recipient_name_label");
var recipient_name_input=$("recipient_name_input");
var your_email_label=$("your_email_label");
var your_email=$("your_email");
var your_name_label=$("your_name_label");
var your_name=$("your_name");
var recipient_email_input=$("recipient_email_input");
var your_email_input=$("your_email_input");
var your_name_input=$("your_name_input");
var email_submit_link=$("email_submit_link");
var email_message =$("email_message");
var r_email_input=$("r_email_input");
var r_name_input=$("r_name_input");
var y_email_input=$("y_email_input");
var y_name_input=$("y_name_input");
showDimBackgroun();
Effect.BlindDown('email', { duration: 0.3 });
setFontSize(fontId);
$('sendEmailForm').r_email_input.value="";
$('recipient_email_label').style.color='#000000';
$('recipient_email_input_img').src='images/email_input.png';
// var recipient_email_input=$('recipient_email_input');
//recipient_email_input.innerHTML='
';
// recipient_email_input.innerHTML+='';
$('r_email_input').style.background='#FFFFFF';
$('sendEmailForm').r_name_input.value="";
$('recipient_name_label').style.color='#000000';
$('recipient_name_input_img').src='images/email_input.png';
$('r_name_input').style.background='#FFFFFF';
$('sendEmailForm').y_email_input.value="";
$('your_email_label').style.color='#000000';
$('your_email_input_img').src='images/email_input.png';
$('y_email_input').style.background='#FFFFFF';
$('sendEmailForm').y_name_input.value="";
$('your_name_label').style.color='#000000';
$('your_name_input_img').src='images/email_input.png';
$('y_name_input').style.background='#FFFFFF';
$('email_error_message').innerHTML='*Fields marked with an asterisk are required.';
if(fontId=="14px"){
if(email_content){
$("email").style.fontSize="14px";
if(isIE6){
recipient_email.style.paddingTop="5px";
recipient_email.style.paddingBottom="5px";
recipient_name.style.paddingTop="5px";
recipient_name.style.paddingBottom="5px";
your_email.style.paddingTop="5px";
your_email.style.paddingBottom="5px";
your_name.style.paddingTop="5px";
your_name.style.paddingBottom="5px";
email_error_message.style.top="10px";
email_error_message.style.paddingTop="10px";
//email_error_message.style.paddingBottom="10px";
email_error_message.style.marginBottom="30px";
email_submit_link.style.left="-170px";
email_link.style.marginTop="5px";
email_link.style.left="195px";
email_message.style.marginTop="-30px";
}else if(isIE7){
email_error_message.style.top="10px";
email_error_message.style.paddingBottom="10px";
email_error_message.style.marginBottom="30px";
email_submit_link.style.left="-170px";
email_link.style.marginTop="5px";
email_link.style.left="195px";
email_message.style.marginTop="-30px";
}else{
if(isMac){
if(isFirefox2){
email_content.style.top="10px";
email_link.style.marginTop="30px";
email_message.style.marginTop="-15px";
r_email_input.style.left="-25px";
r_email_input.style.width="250px";
r_name_input.style.left="-25px";
r_name_input.style.width="250px";
y_email_input.style.left="-25px";
y_email_input.style.width="250px";
y_name_input.style.left="-25px";
y_name_input.style.width="250px";
}else if(isFirefox3){
email_content.style.top="10px";
email_link.style.marginTop="30px";
email_message.style.marginTop="-15px";
}else{
email_content.style.top="10px";
email_link.style.marginTop="30px";
email_message.style.marginTop="-10px";
}
}else{
email_content.style.top="10px";
email_link.style.marginTop="30px";
email_message.style.marginTop="-10px";
}
}
}
}else if(fontId=="18px"){
if(email_content){
$("email").style.fontSize="18px";
if(isIE6){
recipient_email.style.paddingTop="5px";
recipient_email.style.paddingBottom="5px";
recipient_name.style.paddingTop="5px";
recipient_name.style.paddingBottom="5px";
your_email.style.paddingTop="5px";
your_email.style.paddingBottom="5px";
your_name.style.paddingTop="5px";
your_name.style.paddingBottom="5px";
email_error_message.style.top="10px";
email_error_message.style.paddingTop="10px";
//email_error_message.style.paddingBottom="10px";
email_error_message.style.marginBottom="10px";
email_submit_link.style.left="-170px";
email_link.style.marginTop="3px";
email_link.style.left="195px";
email_message.style.marginTop="-30px";
}else if(isIE7){
recipient_email.style.paddingTop="5px";
recipient_email.style.paddingBottom="5px";
recipient_name.style.paddingTop="5px";
recipient_name.style.paddingBottom="5px";
your_email.style.paddingTop="5px";
your_email.style.paddingBottom="5px";
your_name.style.paddingTop="5px";
your_name.style.paddingBottom="5px";
email_error_message.style.top="10px";
email_error_message.style.paddingBottom="10px";
email_error_message.style.marginBottom="10px";
email_submit_link.style.left="-170px";
email_link.style.marginTop="3px";
email_link.style.left="195px";
email_message.style.marginTop="-30px";
}else{
if(isMac){
if(isFirefox2){
email_content.style.top="0px";
email_link.style.marginTop="5px";
email_message.style.marginTop="-20px";
r_email_input.style.left="-25px";
r_email_input.style.width="250px";
r_name_input.style.left="-25px";
r_name_input.style.width="250px";
y_email_input.style.left="-25px";
y_email_input.style.width="250px";
y_name_input.style.left="-25px";
y_name_input.style.width="250px";
}else if(isFirefox3){
email_content.style.top="0px";
email_link.style.marginTop="5px";
email_message.style.marginTop="-20px";
}else{
email_content.style.top="0px";
email_link.style.marginTop="5px";
email_message.style.marginTop="-20px";
}
}else{
email_content.style.top="0px";
email_link.style.marginTop="5px";
email_message.style.marginTop="-20px";
}
}
}
}else if(fontId=="22px"){
if(email_content){
$("email").style.fontSize="18px";
if(isIE6){
recipient_email.style.paddingTop="5px";
recipient_email.style.paddingBottom="5px";
recipient_name.style.paddingTop="5px";
recipient_name.style.paddingBottom="5px";
your_email.style.paddingTop="5px";
your_email.style.paddingBottom="5px";
your_name.style.paddingTop="5px";
your_name.style.paddingBottom="5px";
email_error_message.style.top="10px";
email_error_message.style.paddingTop="10px";
//email_error_message.style.paddingBottom="10px";
email_error_message.style.marginBottom="10px";
email_submit_link.style.left="-170px";
email_link.style.marginTop="3px";
email_link.style.left="195px";
email_message.style.marginTop="-30px";
}else if(isIE7){
recipient_email.style.paddingTop="5px";
recipient_email.style.paddingBottom="5px";
recipient_name.style.paddingTop="5px";
recipient_name.style.paddingBottom="5px";
your_email.style.paddingTop="5px";
your_email.style.paddingBottom="5px";
your_name.style.paddingTop="5px";
your_name.style.paddingBottom="5px";
email_error_message.style.top="10px";
email_error_message.style.paddingBottom="10px";
email_error_message.style.marginBottom="10px";
email_submit_link.style.left="-170px";
email_link.style.marginTop="3px";
email_link.style.left="195px";
email_message.style.marginTop="-30px";
}else{
if(isMac){
if(isFirefox2){
email_content.style.top="0px";
email_link.style.marginTop="5px";
email_message.style.marginTop="-20px";
r_email_input.style.left="-25px";
r_email_input.style.width="250px";
r_name_input.style.left="-25px";
r_name_input.style.width="250px";
y_email_input.style.left="-25px";
y_email_input.style.width="250px";
y_name_input.style.left="-25px";
y_name_input.style.width="250px";
}else if(isFirefox3){
email_content.style.top="0px";
email_link.style.marginTop="5px";
email_message.style.marginTop="-27px";
}else{
email_content.style.top="0px";
email_link.style.marginTop="5px";
email_message.style.marginTop="-20px";
}
}else{
email_content.style.top="0px";
email_link.style.marginTop="5px";
email_message.style.marginTop="-20px";
}
}
}
}
scLink(this, '', '2008 DTP Redesign E-mail Page Main');
}
function setNav(section, page,nav) {
var navImg = $("nav"+nav);
//alert("nav"+nav);
var pageNavImg = $("pageNav"+nav);
var navSec;
//alert(navImg);
if (navImg != null) {
// alert(navImg);
navImg.src = "images/nav/nav"+nav+"_on.jpg" ;
//alert(navImg.src);
}
//alert("pageNav"+nav);
if (pageNavImg != null) {
// alert(navImg);
pageNavImg.src = "images/nav/pageNav"+nav+"_on.jpg" ;
//alert(navImg.src);
}
}
function showTextSizeWindow(id){
Effect.BlindDown('text_size_window', { duration: 0.1 });
var text_size_title=$("text_size_title");
var text_size_title1=$("text_size_title1");
var text_size_title2=$("text_size_title2");
//alert("text_size_title1="+text_size_title1+",text_size_title2="+text_size_title2);
if(text_size_title1 && id==0){
if(isIE6){
//text_size_title1.style.display="none";
text_size_title.innerHTML='.
';
}else{
text_size_title1.style.display="none";
}
}else{
text_size_title1.style.display="block";
}
showDimBackgroun();
/*if(currentLink=="index.html"){
var KEYNMainDiv =$("KEYNMainDiv");
if(KEYNMainDiv)KEYNMainDiv.style.display="none";
}*/
return false;
}
function showDimBackgroun(){
$("matte").style.display="block";
$("matte").style.visibility="visible";
var callout_hear_page=$("callout_hear_page");
if(isIE6){
var pageDiv=$("pageDiv");
if(pageDiv){
pageDiv.style.overflowY="hidden";
pageDiv.style.overflowX="hidden";
}
}
if(isMac && currentLink!="index.html"){
if(callout_hear_page)callout_hear_page.style.zIndex="-1";
}
}
function hideDimBackgroun(){
$("matte").style.display="none";
$("matte").style.visibility="hidden";
var callout_hear_page=$("callout_hear_page");
if(isIE6){
var pageDiv=$("pageDiv");
if(pageDiv){
pageDiv.style.overflowY="auto";
pageDiv.style.overflowX="hidden";
}
}
if(isMac && currentLink!="index.html"){
if(callout_hear_page)callout_hear_page.style.zIndex="1";
}
/* if(currentLink=="index.html"){
var KEYNMainDiv =$("KEYNMainDiv");
if(KEYNMainDiv)KEYNMainDiv.style.display="block";
}*/
}
function printPage(){
window.print();
}
function setH4_FontSize(scale){
for(var i=0;i<10;i++){
var h4=$("h4_"+i);
if(h4){
h4.style.fontSize=scale;
}
}
}
function setAM_PMFontSize(scale){
for(var i=0;i<5;i++){
var am=$("am"+i);
var pm=$("pm"+i);
if(am){
if(scale=="14px"){
am.size="-2";
}else{
am.size="-1";
}
}
if(pm){
if(scale=="14px"){
pm.size="-2";
}else{
pm.size="-1";
}
}
}
}
function setRiskFactorTableSize(scale){
var li_age=$("li_age");
var li_familly=$("li_familly");
var li_gender=$("li_gender");
var li_low_level=$("li_low_level");
var li_cardiovascular=$("li_cardiovascular");
var li_race=$("li_race");
/**
if(scale=="14px"){
li_age.innerHTML="Age: being 60 years of age or older";
li_familly.innerHTML='Family history/genetics: if AMD runs in your family or you have a certain abnormal gene';
li_gender.innerHTML='Gender: women are more likely to get AMD';
li_low_level.innerHTML='Low levels of zinc and vitamins A, C, and E';
li_cardiovascular.innerHTML='Cardiovascular disease: if you have high blood pressure, stroke, heart attack, and heart disease
with chest pain';
li_race.innerHTML='Race: AMD is more common among white people';
}else if(fontId=="18px"){
li_age.innerHTML="Age: being 60 years of age or older";
li_familly.innerHTML='Family history/genetics: if AMD runs in your family or you have a certain abnormal gene';
li_gender.innerHTML='Gender: women are more likely to get AMD';
li_low_level.innerHTML='Low levels of zinc and vitamins A, C, and E';
li_cardiovascular.innerHTML='Cardiovascular disease: if you have high blood pressure, stroke, heart
attack, and heart disease with chest pain';
li_race.innerHTML='Race: AMD is more common among white people';
}else{
li_age.innerHTML='Age: being 60 years of age or older';
li_familly.innerHTML='Family history/genetics: if AMD runs in your family or you have a certain abnormal gene';
li_gender.innerHTML='Gender: women are more likely to get AMD';
li_low_level.innerHTML='Low levels of zinc and vitamins A, C, and E';
li_cardiovascular.innerHTML='Cardiovascular disease: if you have high blood pressure, stroke, heart attack, and heart disease with chest pain';
li_race.innerHTML='Race: AMD is more common among white people';
}
**/
}
function setNavFontSize(scale){
var nav1=$("nav1");
var nav2=$("nav2");
var nav3=$("nav3");
var nav4=$("nav4");
var nav5=$("nav5");
var pageNav1=$("pageNav1");
var pageNav1_1=$("pageNav1_1");
var pageNav2=$("pageNav2");
var pageNav2_1=$("pageNav2_1");
var pageNav2_2=$("pageNav2_2");
var pageNav2_3=$("pageNav2_3");
var pageNav5=$("pageNav5");
var pageNav5_1=$("pageNav5_1");
var pageNav5_2=$("pageNav5_2");
if(scale=="14px"){
if(isMac){
if(isFirefox2){
if(nav1)nav1.style.marginTop="-3px";
if(nav2)nav2.style.marginTop="-3px";
if(nav3)nav3.style.marginTop="-3px";
if(nav4)nav4.style.marginTop="-3px";
if(nav5)nav5.style.marginTop="-3px";
if(pageNav1)pageNav1.style.marginTop="-3px";
if(pageNav1_1)pageNav1_1.style.marginTop="-3px";
if(pageNav2)pageNav2.style.marginTop="-3px";
if(pageNav2_1)pageNav2_1.style.marginTop="-3px";
if(pageNav2_2)pageNav2_2.style.marginTop="-3px";
if(pageNav2_3)pageNav2_3.style.marginTop="-3px";
if(pageNav5)pageNav5.style.marginTop="-3px";
if(pageNav5_1)pageNav5_1.style.marginTop="-3px";
if(pageNav5_2)pageNav5_2.style.marginTop="-3px";
}else if(isFirefox3){
if(nav1)nav1.style.marginTop="-3px";
if(nav2)nav2.style.marginTop="-3px";
if(nav3)nav3.style.marginTop="0px";
if(nav4)nav4.style.marginTop="0px";
if(nav5)nav5.style.marginTop="0px";
if(pageNav1)pageNav1.style.marginTop="-3px";
if(pageNav1_1)pageNav1_1.style.marginTop="-3px";
if(pageNav2)pageNav2.style.marginTop="-3px";
if(pageNav2_1)pageNav2_1.style.marginTop="0px";
if(pageNav2_2)pageNav2_2.style.marginTop="0px";
if(pageNav2_3)pageNav2_3.style.marginTop="0px";
if(pageNav5)pageNav5.style.marginTop="-3px";
if(pageNav5_1)pageNav5_1.style.marginTop="0px";
if(pageNav5_2)pageNav5_2.style.marginTop="-3px";
}else{
if(nav1)nav1.style.marginTop="-3px";
if(nav2)nav2.style.marginTop="-3px";
if(nav3)nav3.style.marginTop="-3px";
if(nav4)nav4.style.marginTop="-3px";
if(nav5)nav5.style.marginTop="-3px";
if(pageNav1)pageNav1.style.marginTop="-3px";
if(pageNav1_1)pageNav1_1.style.marginTop="-3px";
if(pageNav2)pageNav2.style.marginTop="-3px";
if(pageNav2_1)pageNav2_1.style.marginTop="-3px";
if(pageNav2_2)pageNav2_2.style.marginTop="-3px";
if(pageNav2_3)pageNav2_3.style.marginTop="-3px";
if(pageNav5)pageNav5.style.marginTop="-3px";
if(pageNav5_1)pageNav5_1.style.marginTop="-3px";
if(pageNav5_2)pageNav5_2.style.marginTop="-3px";
}
}
}else if(scale=="18px"){
if(isMac){
if(isFirefox2){
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}else if(isFirefox3){
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="0px";
if(nav4)nav4.style.marginTop="0px";
if(nav5)nav5.style.marginTop="0px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="0px";
if(pageNav2_2)pageNav2_2.style.marginTop="0px";
if(pageNav2_3)pageNav2_3.style.marginTop="0px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="0px";
if(pageNav5_2)pageNav5_2.style.marginTop="0px";
}else{
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}
}else if(isIE){
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}else if(isFirefox2){
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}else if(isFirefox3){
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}else{
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}
}else if(scale=="22px"){
if(isMac){
if(isFirefox2){
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-5px";
if(pageNav1_1)pageNav1_1.style.marginTop="-5px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-5px";
if(pageNav2_2)pageNav2_2.style.marginTop="-5px";
if(pageNav2_3)pageNav2_3.style.marginTop="-5px";
if(pageNav5)pageNav5.style.marginTop="-5px";
if(pageNav5_1)pageNav5_1.style.marginTop="-5px";
if(pageNav5_2)pageNav5_2.style.marginTop="-5px";
}else if(isFirefox3){
if(nav1)nav1.style.marginTop="-5px";
if(nav2)nav2.style.marginTop="-5px";
if(nav3)nav3.style.marginTop="0px";
if(nav4)nav4.style.marginTop="0px";
if(nav5)nav5.style.marginTop="0px";
if(pageNav1)pageNav1.style.marginTop="-5px";
if(pageNav1_1)pageNav1_1.style.marginTop="-5px";
if(pageNav2)pageNav2.style.marginTop="-5px";
if(pageNav2_1)pageNav2_1.style.marginTop="0px";
if(pageNav2_2)pageNav2_2.style.marginTop="0px";
if(pageNav2_3)pageNav2_3.style.marginTop="0px";
if(pageNav5)pageNav5.style.marginTop="-5px";
if(pageNav5_1)pageNav5_1.style.marginTop="0px";
if(pageNav5_2)pageNav5_2.style.marginTop="0px";
}else{
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-5px";
if(pageNav1_1)pageNav1_1.style.marginTop="-5px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-5px";
if(pageNav2_2)pageNav2_2.style.marginTop="-5px";
if(pageNav2_3)pageNav2_3.style.marginTop="-5px";
if(pageNav5)pageNav5.style.marginTop="-5px";
if(pageNav5_1)pageNav5_1.style.marginTop="-5px";
if(pageNav5_2)pageNav5_2.style.marginTop="-5px";
}
}else if(isIE){
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}else if(isFirefox2){
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}else if(isFirefox3){
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}else{
if(nav1)nav1.style.marginTop="-4px";
if(nav2)nav2.style.marginTop="-4px";
if(nav3)nav3.style.marginTop="-4px";
if(nav4)nav4.style.marginTop="-4px";
if(nav5)nav5.style.marginTop="-4px";
if(pageNav1)pageNav1.style.marginTop="-4px";
if(pageNav1_1)pageNav1_1.style.marginTop="-4px";
if(pageNav2)pageNav2.style.marginTop="-4px";
if(pageNav2_1)pageNav2_1.style.marginTop="-4px";
if(pageNav2_2)pageNav2_2.style.marginTop="-4px";
if(pageNav2_3)pageNav2_3.style.marginTop="-4px";
if(pageNav5)pageNav5.style.marginTop="-4px";
if(pageNav5_1)pageNav5_1.style.marginTop="-4px";
if(pageNav5_2)pageNav5_2.style.marginTop="-4px";
}
}
}
/* Validate font size passed */
function validFontSize(param){
if (param=='14' || param=='18' || param=='22') {
return true;
} else {
return false;
}
}
function setFontSize(scale,reload){
fontId=scale;
var mainBody=$("mainBody");
var container=$("container");
var search=$("search");
var header_middle=$("header_middle");
var header_middle_link=$("header_middle_link");
var leftMenu=$("leftMenu");
var link_sep1=$("link_sep1");
var link_sep2=$("link_sep2");
var text_size_window=$("text_size_window");
var callout_free_kit_content=$("callout_free_kit_content");
var callout_patient_stories_content=$("callout_patient_stories_content");
var h2_id=$("h2_id");
var text_size_window_right=$("text_size_window_right");
var about_amd_table_top_content=$("about_amd_table_top_content");
var full_presc_link=$("full_presc_link");
var sectionbody=$("sectionbody");
var discussion_guide_table_top=$("discussion_guide_table_top");
var dr_discussion_guide_print_link=$("dr_discussion_guide_print_link");
var am=$("am");
var pm=$("pm");
var contact_us_gene=$("contact_us_gene");
var joan_text=$("joan_text");
var caregivers_stories_joan=$("caregivers_stories_joan");
var caregivers_stories_jan=$("caregivers_stories_jan");
var caregivers_stories_ed =$("caregivers_stories_ed");
var joan_text=$("joan_text");
var caregivers_jan_text=$("caregivers_jan_text");
var care_jan_text=$("care_jan_text");
mainBody.style.fontSize=scale;
setH4_FontSize(scale);
setAM_PMFontSize(scale);
setNavFontSize(scale);
if(isIE && currentLink=="about_amd.html"){
setRiskFactorTableSize(scale);
}
if(scale=="14px"){
if(currentLink=="caregivers_stories_jan.html"){
if(care_jan_text){
care_jan_text.innerHTML='He\'d received a firm diagnosis of wet age-related macular degeneration (AMD) from the retina specialist. What was my response? We still went on our vacation, and I tried to put it out of my mind. I think that\'s called denial. But now we both have a better understanding of the disease and how LUCENTIS® (ranibizumab injection) is able to help him maintain his vision.';
}
}else if(currentLink=="caregivers_stories.html"){
if(joan_text){
//joan_text.innerHTML='He\'d received a firm diagnosis of wet age-related macular degeneration (AMD) from the retina specialist. What was my response? We still went on our vacation, and I tried to put it out of my mind. I think that\'s called denial. But now we both have a better understanding of the disease and how LUCENTIS® (ranibizumab injection) is able to help him maintain his vision.';
joan_text.style.left="0px";
joan_text.innerHTML="thought was that he needed new glasses.”";
}
}else if(currentLink=="caregivers_stories_joan.html"){
if(caregivers_stories_joan){
caregivers_stories_joan.innerHTML='Thankfully, John has seen improvement since beginning treatment with LUCENTIS® (ranibizumab injection). I\'m extremely proud of him. He has handled his diagnosis and is living well with wet AMD.';
}
}else if(currentLink=="caregivers_stories_ed.html"){
if(caregivers_stories_ed){
caregivers_stories_ed.innerHTML='In the summer of 2006, we learned about LUCENTIS® (ranibizumab injection), and after doing some research, my wife received her first treatment in July. It took some time, but after several injections—eight injections in her left eye, and four in her right—my wife noticed improvement. My wife\'s left eye has improved. What I noticed was the fact that she saw faces on the TV again. She began to talk about the smile of a grandchild, the leaves on a tree, the beauty of snow clinging to the bushes, and she could even say with certainty if a traffic light was red or green. And all of these things meant the world to me.';
}
}else if(currentLink=="contact_us.html"){
if(contact_us_gene){
contact_us_gene.innerHTML='To reach our corporate headquarters, call 1-650-225-1000 or visit www.gene.com';
}
if(isIE6){
sectionbody.style.marginTop="0px";
}else if(isIE7){
sectionbody.style.marginTop="0px";
}
}else if(currentLink=="dr_discussion_guide.html"){
if(discussion_guide_table_top){
discussion_guide_table_top.style.fontSize="14px";
$("treatment").style.fontSize="14px";
$("treatment_number").style.fontSize="14px";
$("stopped_because").style.fontSize="14px";
}
if(dr_discussion_guide_print_link){
if(!isIE){
dr_discussion_guide_print_link.style.top="-40px";
dr_discussion_guide_print_link.style.left="120px";
}
}
}else if(currentLink=="about_lucentis_insurance.html"){
if(isIE6 && sectionbody){
// if(currentLink=="about_lucentis_insurance.html"){
sectionbody.style.marginTop="-650px";
/*}else{
sectionbody.style.marginTop="0px";
}*/
}else if(isIE7 && sectionbody){
// if(currentLink=="about_lucentis_insurance.html"){
sectionbody.style.marginTop="0px";
/*}else{
sectionbody.style.marginTop="0px";
}*/
}
}else if(currentLink=="important_safety_information.html"){
if(full_presc_link){
full_presc_link.style.fontSize="14px";
}
if(isIE6){
sectionbody.style.marginTop="0px";
}else if(isIE7){
sectionbody.style.marginTop="0px";
}
}else if (currentLink=="patient_stories.html"){
if(isIE7 && sectionbody){
//if(currentLink=="patient_stories.html"){
sectionbody.style.marginTop="0px";
/*}else{
sectionbody.style.marginTop="0px";
}*/
}
}
if(callout_free_kit_content){
callout_free_kit_content.style.fontSize="14px";
callout_free_kit_content.innerHTML="Learn about wet AMD and LUCENTIS® (ranibizumab injection)";
if(isMac){
if(isFirefox3){
callout_free_kit_content.style.marginTop="-3px";
}
}
}
if(callout_patient_stories_content){
if(isMac){
if(isFirefox3){
callout_patient_stories_content.style.marginTop="-3px";
}
}
}
if(isIE && about_amd_table_top_content){
about_amd_table_top_content.style.marginTop="-5px";
}
if(!isIE){
if(header_middle_link){
if(isMac){
if(isFirefox2){
header_middle_link.style.marginTop="3px";
}else if(isFirefox3){
header_middle_link.style.marginTop="2px";
}else{
header_middle_link.style.marginTop="3px";
}
}else{
header_middle_link.style.marginTop="3px";
}
header_middle_link.style.fontSize="11px";
}
if(search){
search.style.top="10px";
}
if(leftMenu)leftMenu.style.marginTop="0px";
}else if(isIE6){
if(header_middle)header_middle.style.marginTop="-3px";
if(header_middle_link){
header_middle_link.style.marginTop="2px";
header_middle_link.style.fontSize="11px";
}
if(search){
search.style.top="40px";
search.style.marginTop="-30px";
}
if(leftMenu)leftMenu.style.marginTop="0px";
}else if(isIE7){
if(header_middle)header_middle.style.marginTop="-3px";
if(header_middle_link){
header_middle_link.style.marginTop="2px";
header_middle_link.style.fontSize="11px";
}
if(search){
search.style.top="40px";
search.style.marginTop="-30px";
}
if(leftMenu)leftMenu.style.marginTop="0px";
}
}
if(scale=="18px"){
if(currentLink=="caregivers_stories_jan.html"){
if(care_jan_text){
care_jan_text.innerHTML='He\'d received a firm diagnosis of wet age-related macular degeneration (AMD) from the retina specialist. What was my response? We still went on our vacation, and I tried to put it out of my mind. I think that\'s called denial. But now we both have a better understanding of the disease and how LUCENTIS® (ranibizumab injection) is able to help him maintain his vision.';
}
}else if(currentLink=="caregivers_stories_ed.html"){
if(caregivers_stories_ed){
caregivers_stories_ed.innerHTML='In the summer of 2006, we learned about LUCENTIS® (ranibizumab injection), and after doing some research, my wife received her first treatment in July. It took some time, but after several injections—eight injections in her left eye, and four in her right—my wife noticed improvement. My wife\'s left eye has improved. What I noticed was the fact that she saw faces on the TV again. She began to talk about the smile of a grandchild, the leaves on a tree, the beauty of snow clinging to the bushes, and she could even say with certainty if a traffic light was red or green. And all of these things meant the world to me.';
}
} else if(currentLink=="caregivers_stories.html"){
if(joan_text){
//joan_text.innerHTML='He\'d received a firm diagnosis of wet age-related macular degeneration (AMD) from the retina specialist. What was my response? We still went on our vacation, and I tried to put it out of my mind. I think that\'s called denial. But now we both have a better understanding of the disease and how LUCENTIS® (ranibizumab injection) is able to help him maintain his vision.';
joan_text.style.left="0px";
joan_text.innerHTML="thought was that he needed new glasses.”";
}
}else if(currentLink=="caregivers_stories_joan.html"){
if(caregivers_stories_joan){
caregivers_stories_joan.innerHTML='Thankfully, John has seen improvement since beginning treatment with LUCENTIS® (ranibizumab injection). I\'m extremely proud of him. He has handled his diagnosis and is living well with wet AMD.';
}
}else if(currentLink=="contact_us.html"){
if(contact_us_gene){
contact_us_gene.innerHTML='To reach our corporate headquarters, call 1-650-225-1000 or visit
www.gene.com';
}
if(isIE7){
sectionbody.style.marginTop="0px";
}else if(isIE6){
sectionbody.style.marginTop="0px";
}
}else if(currentLink=="dr_discussion_guide.html"){
if(dr_discussion_guide_print_link){
if(!isIE){
dr_discussion_guide_print_link.style.top="-45px";
dr_discussion_guide_print_link.style.left="100px";
}
}
}else if (currentLink=="about_lucentis_insurance.html"){
if(isIE6){
if(sectionbody){
sectionbody.style.marginTop="-650px";
}
}else if(isIE7 && sectionbody){
sectionbody.style.marginTop="0px";
}
/* }else if(sectionbody){
sectionbody.style.marginTop="0px";
} */
}else if (currentLink=="important_safety_information.html"){
if(full_presc_link){
full_presc_link.style.fontSize="18px";
}
if(isIE6){
sectionbody.style.marginTop="-120px";
}else if(isIE7){
sectionbody.style.marginTop="0px";
}
}else if (currentLink=="about_amd.html"){
if(isIE6){
about_amd_table_top_content.style.marginTop="-10px";
}else if(isIE6){
about_amd_table_top_content.style.marginTop="0px";
}
} else if (currentLink=="patient_stories.html"){
if(isIE7 && sectionbody){
//if(currentLink=="patient_stories.html"){
sectionbody.style.marginTop="0px";
/*}else{
sectionbody.style.marginTop="0px";
}*/
}
}
if(callout_free_kit_content){
callout_free_kit_content.style.fontSize="18px";
callout_free_kit_content.innerHTML="Learn about wet AMD and LUCEN-
TIS® (ranibiz-
umab injection)";
if(isMac){
if(isFirefox3){
callout_free_kit_content.style.marginTop="-4px";
}
}
}
if(callout_patient_stories_content){
if(isMac){
if(isFirefox3){
callout_patient_stories_content.style.marginTop="-4px";
}
}
}
if(!isIE){
if(header_middle_link){
if(isMac){
if(isFirefox2){
header_middle_link.style.marginTop="1px";
}else if(isFirefox3){
header_middle_link.style.marginTop="1px";
}else{
header_middle_link.style.marginTop="-1px";
}
}else{
header_middle_link.style.marginTop="2px";
}
header_middle_link.style.fontSize="12px";
}
if(search)search.style.top="5px";
if(leftMenu)leftMenu.style.marginTop="-3px";
}else if(isIE6){
if(header_middle)header_middle.style.marginTop="-4px";
if(header_middle_link){
header_middle_link.style.marginTop="1px";
header_middle_link.style.fontSize="12px";
}
if(search){
search.style.top="40px";
search.style.marginTop="-30px";
}
if(leftMenu)leftMenu.style.marginTop="-3px";
}else if(isIE7){
if(header_middle)header_middle.style.marginTop="-4px";
if(header_middle_link){
header_middle_link.style.marginTop="1px";
header_middle_link.style.fontSize="12px";
}
if(search){
search.style.top="40px";
search.style.marginTop="-30px";
}
if(leftMenu)leftMenu.style.marginTop="0px";
}
}
if(scale=="22px"){
if (currentLink=="caregivers_stories_jan.html"){
if(care_jan_text){
care_jan_text.innerHTML='He\'d received a firm diagnosis of wet age-related macular degeneration (AMD) from the retina specialist. What was my response? We still went on our vacation, and I tried to put it out of my mind. I think that\'s called denial. But now we both have a better understanding of the disease and how LUCENTIS® (ranibizumab injection) is able to help him maintain his vision.';
}
}else if (currentLink=="caregivers_stories.html"){
if(joan_text){
joan_text.style.left="133px";
joan_text.innerHTML="thought was that
he needed new glasses.”";
}
}else if (currentLink=="caregivers_stories_joan.html"){
if(caregivers_stories_joan){
caregivers_stories_joan.innerHTML='Thankfully, John has seen improvement since beginning treatment with LUCENTIS® (ranibizumab injection). I\'m extremely proud of him. He has handled his diagnosis and is living well with wet AMD.';
}
}else if(currentLink=="caregivers_stories_ed.html"){
if(caregivers_stories_ed){
caregivers_stories_ed.innerHTML='In the summer of 2006, we learned about LUCENTIS® (ranibizumab injection), and after doing some research, my wife received her first treatment in July. It took some time, but after several injections—eight injections in her left eye, and four in her right—my wife noticed improvement. My wife\'s left eye has improved. What I noticed was the fact that she saw faces on the TV again. She began to talk about the smile of a grandchild, the leaves on a tree, the beauty of snow clinging to the bushes, and she could even say with certainty if a traffic light was red or green. And all of these things meant the world to me.';
}
} else if (currentLink=="contact_us.html"){
if(contact_us_gene){
contact_us_gene.innerHTML='To reach our corporate headquarters, call 1-650-225-1000
or visit www.gene.com';
}
if(isIE6){
sectionbody.style.marginTop="-140px";
}else if(isIE7){
sectionbody.style.marginTop="0px";
}
}else if (currentLink=="dr_discussion_guide.html"){
if(discussion_guide_table_top){
discussion_guide_table_top.style.fontSize="18px";
$("treatment").style.fontSize="18px";
$("treatment_number").style.fontSize="18px";
$("stopped_because").style.fontSize="18px";
}
if(!isIE && dr_discussion_guide_print_link){
dr_discussion_guide_print_link.style.top="-50px";
dr_discussion_guide_print_link.style.left="70px";
}
}else if (currentLink=="about_lucentis_insurance.html"){
if(isIE6){
if(sectionbody){
sectionbody.style.marginTop="-650px";
}else{
//sectionbody.style.marginTop="0px";
}
}else if(sectionbody){
sectionbody.style.marginTop="0px";
}
}else if (currentLink=="important_safety_information.html"){
if(full_presc_link){
full_presc_link.style.fontSize="18px";
}
if(isIE6){
sectionbody.style.marginTop="-120px";
}else if(isIE7){
sectionbody.style.marginTop="0px";
}
}else if (currentLink=="about_amd.html"){
if(isIE6 && about_amd_table_top_content){
about_amd_table_top_content.style.marginTop="-15px";
}else if(isIE7 && about_amd_table_top_content){
about_amd_table_top_content.style.marginTop="0px";
}
}else if (currentLink=="patient_stories.html"){
if(isIE7 && sectionbody){
//if(currentLink=="patient_stories.html"){
sectionbody.style.marginTop="0px";
/*}else{
sectionbody.style.marginTop="0px";
}*/
}
}
if(h2_id){
h2_id.style.fontSize="20px";
h2_id.style.paddingTop="10px";
h2_id.style.paddingBottom="10px";
}
if(callout_free_kit_content){
callout_free_kit_content.style.fontSize="21px";
callout_free_kit_content.innerHTML="Learn about wet AMD and LUCEN-
TIS® (ranibiz-
umab injection)";
if(isMac){
if(isFirefox3){
callout_free_kit_content.style.marginTop="-5px";
}
}
}
if(callout_patient_stories_content){
if(isMac){
if(isFirefox3){
callout_patient_stories_content.style.marginTop="-5px";
}
}
}
if(!isIE){
if(header_middle_link){
if(isMac){
if(isFirefox2){
header_middle_link.style.marginTop="0px";
}else if(isFirefox3){
header_middle_link.style.marginTop="0px";
}else{
header_middle_link.style.marginTop="-10px";
}
}else{
header_middle_link.style.marginTop="1px";
}
header_middle_link.style.fontSize="13px";
}
if(search)search.style.top="3px";
if(leftMenu)leftMenu.style.marginTop="-3px";
}else if(isIE6){
if(header_middle)header_middle.style.marginTop="-4px";
if(header_middle_link){
header_middle_link.style.marginTop="0px";
header_middle_link.style.fontSize="13px";
}
if(search){
search.style.top="33px";
search.style.marginTop="-30px";
}
if(leftMenu)leftMenu.style.marginTop="-3px";
}else if(isIE7){
if(header_middle)header_middle.style.marginTop="-4px";
if(header_middle_link){
header_middle_link.style.marginTop="0px";
header_middle_link.style.fontSize="13px";
}
if(search){
search.style.top="33px";
search.style.marginTop="-30px";
}
if(leftMenu)leftMenu.style.marginTop="0px";
}
}
if(text_size_window && reload==0){
new Effect.Fold('text_size_window', { duration: 0.1 });
hideDimBackgroun();
}
// alert("fontId="+fontId+",scale="+scale+",reload="+reload);
set_cookie ( "fontId", scale );
fontParam=scale.substr(0,2)
return false;
}
function showDisclaimer(url, posX,posY){
disclaimerUrl=url;
var disclaimer=$("disclaimer");
disclaimer.style.display="block";
var disclaimer_content=$("disclaimer_content");
var window_gray_line=$("window_gray_line");
var disclaimer_link=$("disclaimer_link");
var disclaimer_window_body=$("disclaimer_window_body");
var disclaimer_title=$("disclaimer_title");
var do_not_agree_btn=$("do_not_agree_btn");
var disclaimer_window_right=$("disclaimer_window_right");
var do_no_agree_link=$("do_no_agree_link");
var agree_link=$("agree_link");
showDimBackgroun();
if(isIE6 && posY!=null && !posY==''){
disclaimer.style.top=posY;
}
if(url=="hcp_index.html"){
disclaimer_content.innerHTML='The information contained in this section of the site is intended for U.S. healthcare professionals only. Click "OK" if you are a healthcare professional.';
}else{
disclaimer_content.innerHTML="By selecting this link, you will be leaving www.LUCENTIS.com and going to a site that is not controlled by or affiliated with Genentech USA, Inc. Genentech is neither affiliated with nor endorses any of the aforementioned organizations. The information provided by Genentech or these organizations is meant for informational purposes only and is not meant to replace your doctor's medical advice.";
}
if(isIE6){
if(document.body.parentElement.scrollTop==0){
disclaimer.style.top="100px";
}else if(document.body.parentElement.scrollTop>100){
var emailWindowPosY=100+(document.body.parentElement.scrollTop-100);
disclaimer.style.top=emailWindowPosY+"px";
}
}
if(fontId=="14px"){
if(disclaimer_window_right){
if(isIE6){
disclaimer_window_right.style.left="0px";
disclaimer_window_right.style.marginTop="-443px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-43px";
do_no_agree_link.style.left="-135px";
agree_link.style.left="-99px";
window_gray_line.style.marginTop="70px";
window_gray_line.style.top="0px";
disclaimer_title.style.top="5px";
disclaimer_close_btn.style.top="5px";
disclaimer_content.style.top="0px";
disclaimer_window_body.style.marginTop="0px";
if(url!="hcp_index.html"){
disclaimer_link.style.top="0px";
}
}else if(isIE7){
disclaimer_window_right.style.left="-3px";
disclaimer_window_right.style.marginTop="-443px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-42px";
do_no_agree_link.style.left="-133px";
agree_link.style.left="-99px";
window_gray_line.style.marginTop="70px";
disclaimer_link.style.marginTop="30px";
window_gray_line.style.top="0px";
disclaimer_title.style.top="5px";
disclaimer_close_btn.style.top="5px";
disclaimer_content.style.top="0px";
disclaimer_window_body.style.marginTop="0px";
}else{
if(isMac){
if(isFirefox2){
disclaimer_window_right.style.left="0px";
disclaimer_window_right.style.top="0px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-42px";
do_no_agree_link.style.left="-110px";
agree_link.style.left="-97px";
window_gray_line.style.marginTop="130px";
}else if(isFirefox3){
disclaimer_window_right.style.left="0px";
disclaimer_window_right.style.top="0px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-42px";
do_no_agree_link.style.left="-110px";
agree_link.style.left="-97px";
window_gray_line.style.marginTop="130px";
}else{
disclaimer_window_right.style.left="0px";
disclaimer_window_right.style.marginTop="-443px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-42px";
do_no_agree_link.style.left="-110px";
agree_link.style.left="-97px";
window_gray_line.style.marginTop="130px";
}
}else{
disclaimer_window_right.style.left="0px";
disclaimer_window_right.style.top="0px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-42px";
do_no_agree_link.style.left="-110px";
agree_link.style.left="-97px";
window_gray_line.style.marginTop="130px";
}
}
}
}else if(fontId=="18px"){
if(disclaimer_window_right){
if(isIE6){
disclaimer_window_right.style.left="0px";
disclaimer_window_right.style.marginTop="-443px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-47px";
do_no_agree_link.style.left="-120px";
agree_link.style.left="-97px";
window_gray_line.style.marginTop="10px";
window_gray_line.style.top="0px";
disclaimer_title.style.top="5px";
disclaimer_close_btn.style.top="5px";
disclaimer_content.style.top="0px";
disclaimer_window_body.style.marginTop="0px";
if(url!="hcp_index.html"){
disclaimer_link.style.top="0px";
}
}else if(isIE7){
disclaimer_window_right.style.left="-3px";
disclaimer_window_right.style.marginTop="-443px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-45px";
do_no_agree_link.style.left="-115px";
agree_link.style.left="-100px";
window_gray_line.style.marginTop="10px";
disclaimer_link.style.marginTop="30px";
window_gray_line.style.top="0px";
disclaimer_title.style.top="5px";
disclaimer_close_btn.style.top="5px";
disclaimer_content.style.top="0px";
disclaimer_window_body.style.marginTop="0px";
}else{
if(isMac){
if(isSafari){
disclaimer_window_right.style.left="0px";
disclaimer_window_right.style.marginTop="-443px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-47px";
do_no_agree_link.style.left="-90px";
agree_link.style.left="-97px";
window_gray_line.style.marginTop="130px";
}else if(isFirefox2){
if(url!="hcp_index.html"){
disclaimer_window_right.style.left="0px";
disclaimer_window_right.style.top="0px";
}
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-47px";
do_no_agree_link.style.left="-87px";
agree_link.style.left="-97px";
window_gray_line.style.marginTop="130px";
}else{
if(url!="hcp_index.html"){
disclaimer_window_right.style.left="138px";
disclaimer_window_right.style.top="0px";
}else{
disclaimer_window_right.style.left="0px";
}
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-47px";
do_no_agree_link.style.left="-87px";
agree_link.style.left="-97px";
window_gray_line.style.marginTop="130px";
disclaimer_link.style.marginTop="10px";
}
}else{
if(url!="hcp_index.html"){
disclaimer_window_right.style.left="0px";
disclaimer_window_right.style.top="0px";
}
do_not_agree_btn.style.left="-15px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-47px";
do_no_agree_link.style.left="-105px";
agree_link.style.left="-101px";
window_gray_line.style.marginTop="130px";
}
}
}
}else if(fontId=="22px"){
if(disclaimer_window_right){
if(isIE6){
disclaimer_window_right.style.left="0px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-50px";
do_no_agree_link.style.left="-85px";
agree_link.style.left="-110px";
window_gray_line.style.marginTop="10px";
window_gray_line.style.top="20px";
disclaimer_content.style.top="15px";
if(url!="hcp_index.html"){
disclaimer_window_right.style.marginTop="-481px";
disclaimer_window_body.style.marginTop="-38px";
disclaimer_title.style.top="45px";
disclaimer_close_btn.style.top="45px";
disclaimer_content.style.top="-10px";
window_gray_line.style.top="0px";
disclaimer_link.style.top="-20px";
}
}else if(isIE7){
disclaimer_window_right.style.left="-3px";
disclaimer_window_right.style.marginTop="-443px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-49px";
do_no_agree_link.style.left="-85px";
agree_link.style.left="-105px";
window_gray_line.style.marginTop="10px";
window_gray_line.style.top="-50px";
disclaimer_window_body.style.marginTop="0px";
disclaimer_content.style.top="-50px";
disclaimer_link.style.marginTop="-40px";
disclaimer_title.style.top="10px";
disclaimer_close_btn.style.top="10px";
}else{
if(isMac){
if(isSafari){
if(url!="hcp_index.html"){
disclaimer_window_right.style.left="160px";
}else{
disclaimer_window_right.style.left="0px";
}
disclaimer_window_right.style.marginTop="-443px";
disclaimer_content.style.top="40px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-50px";
do_no_agree_link.style.left="-60px";
agree_link.style.left="-105px";
window_gray_line.style.marginTop="50px";
}else if(isFirefox2){
if(url!="hcp_index.html"){
disclaimer_window_right.style.left="158px";
disclaimer_window_right.style.top="0px";
}else{
disclaimer_window_right.style.left="0px";
}
disclaimer_content.style.top="40px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-51px";
do_no_agree_link.style.left="-47px";
agree_link.style.left="-105px";
window_gray_line.style.marginTop="50px";
} else{
if(url!="hcp_index.html"){
disclaimer_window_right.style.left="158px";
disclaimer_window_right.style.top="0px";
}else{
disclaimer_window_right.style.left="0px";
}
disclaimer_content.style.top="30px";
agree_link.style.left="-103px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-51px";
if(url=="hcp_index.html"){
do_no_agree_link.style.left="-63px";
}else{
do_no_agree_link.style.left="-83px";
}
window_gray_line.style.marginTop="40px";
}
}else{
if(url!="hcp_index.html"){
disclaimer_window_right.style.left="160px";
disclaimer_window_right.style.top="0px";
}else{
disclaimer_window_right.style.left="0px";
}
disclaimer_content.style.top="40px";
do_not_agree_btn.style.left="0px";
do_not_agree_btn.style.top="0px";
do_no_agree_link.style.top="-51px";
do_no_agree_link.style.left="-60px";
agree_link.style.left="-105px";
window_gray_line.style.marginTop="50px";
}
}
}
}
scLink(this,'', '2008 DTP Redesign Disclaimer Main');
}
function resizeNav(scale){
var nav1=$("nav1");
var nav2=$("nav2");
var nav3=$("nav3");
var nav4=$("nav4");
var nav5=$("nav5");
var pageNav1 =$("pageNav1");
var pageNav1_1=$("pageNav1_1");
var pageNav2 =$("pageNav2");
var pageNav2_1=$("pageNav2_1");
var pageNav2_2=$("pageNav2_2");
var pageNav2_3=$("pageNav2_3");
var pageNav5 =$("pageNav5");
var pageNav5_1=$("pageNav5_1");
var pageNav5_2=$("pageNav5_2");
if(scale=="14px"){
if(isMac){
if(isFirefox2){
}else if(isFirefox3){
}else{
}
}else{
if(isFirefox2){
}else if(isFirefox3){
}else if(isIE7){
}else{
}
}
}else if(scale=="18px"){
if(isMac){
if(isFirefox2){
}else if(isFirefox3){
}else{
}
}else{
if(isFirefox2){
}else if(isFirefox3){
}else if(isIE7){
}else{
}
}
}else if(scale=="22px"){
if(isMac){
if(isFirefox2){
}else if(isFirefox3){
}else{
}
}else{
if(isFirefox2){
}else if(isFirefox3){
}else if(isIE7){
}else{
}
}
}
}
function redirectDisclaimerToPage(){
hideDimBackgroun();
new Effect.Fold('disclaimer', { duration: 0.3 });
if(disclaimerUrl.match("www.")=="www."){
window.open("http://"+disclaimerUrl,"_blank");
}else{
window.open(basePath+"hcp/"+disclaimerUrl,"_blank");
}
return false;
}
function changeDownloadLink(state,linkId){
if(state=="over"){
$(linkId).style.color="#FFFFFF";
}
if(state=="out"){
$(linkId).style.color="#000000";
}
}
function submitSendEmailForm(){
//alert("gfhgazhgZAS="+$('recipient_name_input_img').src);
var isOK=true;
var recipient_email=$('sendEmailForm').r_email_input.value;
var recipient_name=$('sendEmailForm').r_name_input.value;
//var subject=$('sendEmailForm').subject.value;
//var comments=$('sendEmailForm').comments.value;
var your_name=$('sendEmailForm').y_name_input.value;
var your_email=$('sendEmailForm').y_email_input.value;
if(checkName(recipient_name)!=""){
$('recipient_name_label').style.color='#F6842D';
$('recipient_name_input_img').src='images/email_input_error.png';
$('r_name_input').style.background='#fde1cc';
isOK=false;
}else{
//$('recipient_name').style.background='#FFFFFF';
//$('recipient_name').style.border='0px solid #F6842D';
$('r_name_input').style.background='#FFFFFF';
$('recipient_name_label').style.color='#000000';
$('recipient_name_input_img').src='images/email_input.png';
}
if(checkEmail(recipient_email)!=""){
//alert($('recipient_email_input_img').src);
$('recipient_email_label').style.color='#F6842D';
$('r_email_input').style.background='#fde1cc';
$('recipient_email_input_img').src='images/email_input_error.png';
//$('recipient_email').style.background='#ffcccc';
//$('recipient_email').style.border='1px solid #F6842D';
isOK=false;
}else{
//$('recipient_email').style.background='#FFFFFF';
//$('recipient_email').style.border='0px solid #F6842D';
$('r_email_input').style.background='#FFFFFF';
$('recipient_email_label').style.color='#000000';
$('recipient_email_input_img').src='images/email_input.png';
}
/*if(subject!="" && checkIlllegalCharacter(subject)!=""){
$('subject_label').style.color='#F6842D';
isOK=false;
}else{
$('subject_label').style.color='#000000';
}
if(comments!="" && checkIlllegalCharacter(comments)!=""){
$('comment_label').style.color='#F6842D';
isOK=false;
}else{
$('comment_label').style.color='#000000';
}
*/
if(checkName(your_name)!=""){
$('your_name_label').style.color='#F6842D';
$('your_name_input_img').src='images/email_input_error.png';
$('y_name_input').style.background='#fde1cc';
//$('your_name').style.background='#ffcccc';
//$('your_name').style.border='1px solid #F6842D';
isOK=false;
}else{
//$('your_name').style.background='#FFFFFF';
// $('your_name').style.border='0px solid #F6842D';
$('y_name_input').style.background='#FFFFFF';
$('your_name_label').style.color='#000000';
$('your_name_input_img').src='images/email_input.png';
}
if(checkEmail(your_email)!=""){
$('your_email_label').style.color='#F6842D';
$('your_email_input_img').src='images/email_input_error.png';
$('y_email_input').style.background='#fde1cc';
//$('your_email').style.background='#ffcccc';
//$('your_email').style.border='1px solid #F6842D';
isOK=false;
}else{
//$('your_email').style.background='#FFFFFF';
// $('your_email').style.border='0px solid #F6842D';
$('y_email_input').style.background='#FFFFFF';
$('your_email_label').style.color='#000000';
$('your_email_input_img').src='images/email_input.png';
}
if(!isOK){
$('email_error_message').innerHTML='The highlighted fields are incomplete or invalid. Please confirm your information and resubmit.';
scLink(this, '', '2008 DTP Redesign E-mail Page Error');
return;
}else{
$('email_error_message').style.innerHTML='*Fields marked with an asterisk are required.';
//var parameters = 'type=SendEmail&emailType=lucentisHCP&r_email='+ recipient_email+"&r_name="+encodeURIComponent(recipient_name)+"&y_email="+your_email+"&y_name="+encodeURIComponent(your_name)+"¤tPage="+currentPage+"&subject="+encodeURIComponent(subject)+"&comments="+encodeURIComponent(comments);
var parameters = 'type=SendEmail&emailType=lucentis&r_email='+ recipient_email+"&r_name="+encodeURIComponent(recipient_name)+"&y_email="+your_email+"&y_name="+encodeURIComponent(your_name)+"¤tPage="+currentPage;
var url=basePath+'ajax/processor/';
//alert(parameters);
//alert(url);
new Ajax.Request(url, {
method: 'post',
postBody: parameters,
onSuccess:handlerSendEmail,
onFailure:errSendEmail
});
}
}
function closeEmailWindow(){
//goToPage(currentPage);
var email_friend=$("email");
if(email_friend)email_friend.style.display="none";
var email_confirmation=$("email_confirmation");
if(email_confirmation)email_confirmation.style.display="none";
var matte=$("matte");
//if(!isIE6){
matte.style.display="none";
matte.style.visibility="hidden";
//}
if(isIE6){
var pageDiv=$("pageDiv");
if(pageDiv){
pageDiv.style.overflowY="auto";
pageDiv.style.overflowX="hidden";
}
}
}
function handlerSendEmail(res){
var isOK=true;
var isSent=false;
if(res.responseText!='N/A' && res.responseText!=''){
var emailObject = eval("(" + res.responseText + ")");
isSent=emailObject.isSent;
if(emailObject.r_name_status!='ok'){
// alert('r_name_status==ok');
$('recipient_name_label').style.color='#F6842D';
isOK=false;
}
if(emailObject.r_email_status!='ok'){
// alert('r_email_status==ok');
$('recipient_email_label').style.color='#F6842D';
isOK=false;
}
/*if(emailObject.subject_status!='ok'){
// alert('y_name_status==ok');
$('subject_label').style.color='#F6842D';
isOK=false;
}
if(emailObject.comments_status!='ok'){
// alert('y_name_status==ok');
$('comment_label').style.color='#F6842D';
isOK=false;
}*/
if(emailObject.y_name_status!='ok'){
// alert('y_name_status==ok');
$('your_name_label').style.color='#F6842D';
isOK=false;
}
if(emailObject.y_email_status!='ok'){
// alert('y_email_status==ok');
$('your_email_label').style.color='#F6842D';
isOK=false;
}
if(!isOK){
$('email_error_message').innerHTML='The following message is incomplete or invalid. Please confirm your information and resubmit.';
//$('email_error_message').style.color="#F6842D";
return;
}else if(!isSent){
$('email_error_message').innerHTML='We are unable to process your data at this time.';
return;
}else if(isOK && isSent){
//window.location="/thank.html";
//closeEmailWindow();
var email_friend=$("email");
var email_confirmation=$("email_confirmation");
email_friend.style.display="none";
email_confirmation.style.display="block";
if(currentLink=="index.html"){
//alert(currentLink);
if(isIE){
//emailWindow.style.marginTop="-25%";
}else{
/*if(isSafari){
email_confirmation.style.top="100px";
}else if(OSName=="MacOS" && isFirefox2){
email_confirmation.style.top="92px";
}else if(OSName=="MacOS" && isFirefox3){
email_confirmation.style.top="95px";
}else{
email_confirmation.style.top="94px";
}
*/
}
}else{
if(isIE){
//emailWindow.style.marginTop="-25%";
}else{
/*if(isSafari){
email_confirmation.style.top="100px";
}else if(OSName=="MacOS" && isFirefox2){
email_confirmation.style.top="91px";
}else if(OSName=="MacOS" && isFirefox3){
email_confirmation.style.top="92px";
}else{
email_confirmation.style.top="90px";
} */
}
}
var email_confirmation_intro=$("email_confirmation_intro");
email_confirmation_intro.innerHTML="The page you requested has been sent to "+emailObject.r_email+"";
email_confirmation_intro.innerHTML+="
Thank you.";
doLinkEvent('LUCENTIS DTP Confirm E-Mail','','javascript:void(0)');
//window.scroll(0,170);
}
}
}
function errSendEmail(res){
var isOK=true;
var emailObject = eval("(" + res.responseText + ")");
if(emailObject.r_email_status!='ok'){
// alert('r_email_status==ok');
$('recipient_email_label').style.color='#F6842D';
var isOK=false;
}
if(emailObject.r_name_status!='ok'){
// alert('r_name_status==ok');
$('recipient_name_label').style.color='#F6842D';
var isOK=false;
}
if(emailObject.y_email_status!='ok'){
// alert('y_email_status==ok');
$('your_email_label').style.color='#F6842D';
var isOK=false;
}
if(emailObject.y_name_status!='ok'){
// alert('y_name_status==ok');
$('your_name_label').style.color='#F6842D';
var isOK=false;
}
if(emailObject.subject_status!='ok'){
// alert('y_name_status==ok');
$('subject_label').style.color='#F6842D';
var isOK=false;
}
if(emailObject.comments_status!='ok'){
// alert('y_name_status==ok');
$('comments_label').style.color='#F6842D';
var isOK=false;
}
if(!isOK){
$('email_error_message').innerHTML='
Please enter valid values where you see a red asterisk (*)';
$('email_error_message').innerHTML+='
* = Required field';
}
}
function submitSearchForm(){
var q=$('q');
s_query=q.value;
//var searchForm=$('searchForm');
if(s_query==null || s_query==""){
var searchLabel=$('searchLabel');
// alert(searchLabel);
//searchLabel.innerHTML='Enter search query';
}else{
// document.searchForm.action="search.html";
document.searchForm.submit();
//alert('bug');
}
}
function submitSearchFormRequest(searchQuery){
//alert("searchQuery="+searchQuery);
var parameters = 'type=GoogleSearch&site=lucentis&searchType=form¤tPage='+currentPage+'&q='+ searchQuery;
var url=basePath+'ajax/processor/';
new Ajax.Request(url, {
method: 'post',
postBody: parameters,
onSuccess:handlerSearch,
onFailure:errSearch
});
}
function handlerSearch(res){
var contentBody=$('content');
var rightMenu=$("rightMenu");
if(!isIE && contentBody){
contentBody.className="link_rollnover3";
}
if(rightMenu)rightMenu.style.display="none";
if(res.responseText!='N/A'){
contentBody.innerHTML='
'+res.responseText+'
'; }else{ contentBody.innerHTML+='No result was found.
'; } } function errSearch(res){ var contentBody=$('content'); contentBody.innerHTML+='Google error.
'; } function submitGoogleSearchLink(xslUrl,searchType){ var contentBody=$('content'); var parameters = 'type=GoogleSearch&site=lucentis&searchType='+searchType+'¤tPage='+currentPage; parameters +='&'+xslUrl; var url=basePath+'ajax/processor/'; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSearch, onFailure:errSearch }); }