var genetechTwitterFeedsList; var coordPageX=0; var coordPageY=0; var getRand=true; var memberName=""; var extraTagInfo=""; // Appended to tracking tag var currentYear="2010"; jQuery(document).ready(function() { jQuery('#retina-carousel').jcarousel({ auto: 3, wrap: 'last', itemLoadCallback: retinaCarousel_itemLoadCallback }); jQuery('#board-member-carousel').jcarousel({ scroll: 5, itemLoadCallback: boardMemberCarousel_itemLoadCallback }); jQuery('#editorial-board-member-carousel').jcarousel({ vertical: true, scroll: 5, itemLoadCallback: editorialBoardMemberCarousel_itemLoadCallback }); jQuery('#editorial-board-carousel').jcarousel({ scroll: 3, itemLoadCallback: editorialBoardCarousel_itemLoadCallback }); if (getRand==true) { var rand_no = Math.ceil(6*Math.random()); showCurrentMember(rand_no,9,1); } $('#tabs div').hide(); $('#tabs div:first').show(); $('#tabs ul li:first').addClass('active'); $('#tabs ul li a').click(function(){ $('#tabs ul li').removeClass('active'); $(this).parent().addClass('active'); var currentTab = $(this).attr('href'); var headline=''; if(currentTab=="#tab-1"){ headline='ALL TYPES'; }else if(currentTab=="#tab-2"){ headline='AMD'; }else if(currentTab=="#tab-3"){ headline='DME'; }else if(currentTab=="#tab-4"){ headline='RVO'; }else if(currentTab=="#tab-5"){ headline='Others'; } displayCurrentCaseStudyTabContent(currentTab,headline); $('#tabs div').hide(); $(currentTab).show(); return false; }); $("#tabs").tabs().find(".ui-tabs-nav").sortable({axis:'x'}); displayCurrentCaseStudyTabContent($('#tab-1'),'ALL TYPES'); displayRetinaRssFeeds(3); /* displayGenetechTweets(3); */ // setTimeout('removeHomeIntro()', 10000); $("#home-intro-close").click(function() { removeHomeIntro(); return false; }); //alert("<%=page_id%>"); if(page_id=='article'){ highLighMemberBoardProfileImage(memberId); } }); function displayGenetechTweets(cpt){ if(cpt&&cpt==3){ getAllGenentechTweets(cpt); }else{ getAllGenentechTweets(); } } function getAllGenentechTweets(cpt){ var parameters = 'type=ListAllGeneTweets'; //alert(parameters); var url; url=basePath+'ajax/processor/?'+parameters; $.ajax({ type: "POST", url: url, data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg){ var delay = function() { handlergetAllGenentechTweets(msg,cpt); }; setTimeout(delay, 10); }, error: errgetAllGenentechTweets }); } var twitterPageNumber=0; var twitterCurrentPage=0; function handlergetAllGenentechTweets(t,cpt){ var content=''; var genentechTweetsTable=$('#genentech-tweets-table'); if(t){ var tweetsCount=t.cpt; tweetsCountMax=tweetsCount; var tweets=t.tweets; genetechTwitterFeedsList=tweets; content+='
| '; content+=' | '; content+=' | '; content+=' | ';
content+=' '+feeds[i].publishedDate+' ';
content+=''+feeds[i].title+'';
content+=''+feeds[i].description+''; content+=' READ MORE'; // content+=' '+feeds[i].title+''; content+=' | ';
content+=''; content+=' |
';
content+='
| ';
content+='|||||||||||||||






');
//$("#editorial-board-counter-label").html(memberId+"/10");
var content='';
switch(memberId){
case 1:
content='Lawrence A. Yannuzzi, MD, is professor of clinical ophthalmology at Columbia University Medical School and at Columbia University Medical Center in New York, New York. He is also vice chairman of the Department of Ophthalmology, chief of Medical Retinal Services, director of the Laser Research Laboratory, surgeon director in ophthalmology, and director of Retinal Research at the Manhattan Eye, Ear, and Throat Hospital in New York. Dr Yannuzzi earned his medical degree from Boston University Medical School in Boston, Massachusetts, and completed an internship at University Hospital in Boston and a residency in ophthalmology at the Manhattan Eye, Ear, and Throat Hospital.';
content+='
');
$("#editorial-corner-link").attr('href','editorial-board-member.html?memberId='+cpt);
switch(cpt){
case 1:
$("#editorial-doctor-name").html('Lawrence A. Yannuzzi, MD');
$("#editorial-doctor-title").html('');
$("#editorial-home-text").attr('style', 'height:115px');
$("#editorial-home-text").html('Lawrence A. Yannuzzi, MD, is professor of clinical ophthalmology at Columbia University Medical School and at Columbia University Medical Center in New York, New York. He is also vice chairman of the Department of Ophthalmology, chief of ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE');
break;
case 2:
$("#editorial-doctor-name").html('Kang Zhang, MD, PhD');
$("#editorial-doctor-title").html('');
$("#editorial-home-text").attr('style', 'height:115px');
$("#editorial-home-text").html('Kang Zhang, MD, PhD, obtained his M.D. with Magna Cum Laude honors from Harvard Medical School, and his PhD in genetics from Harvard University. He completed his residency in ophthalmology at Wilmer Eye Institute at Johns Hopkins University ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE');
break;
case 3:
$("#editorial-doctor-name").html('Carl C. Awh, MD');
$("#editorial-doctor-title").html('');
$("#editorial-home-text").attr('style', 'height:115px');
$("#editorial-home-text").html('Carl C. Awh, M.D., is President of Tennessee Retina, a group retina practice in Nashville, Tennessee. Dr Awh (pronounced Oh) received his undergraduate degree in mechanical engineering from the Massachusetts Institute of Technology. ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE');
break;
case 4:
$("#editorial-doctor-name").html('Elias Reichel, MD');
$("#editorial-doctor-title").html('');
$("#editorial-home-text").attr('style', 'height:115px');
$("#editorial-home-text").html('Elias Reichel, MD, is associate professor of ophthalmology, director of the Vitreoretinal Service, and vice chairman of the Department of Ophthalmology at Tufts University School of Medicine in Boston, Massachusetts, and vice chairman and ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE');
break;
case 5:
$("#editorial-doctor-name").html('SriniVas R. Sadda, MD');
$("#editorial-doctor-title").html('');
$("#editorial-home-text").attr('style', 'height:115px');
$("#editorial-home-text").html('Dr Sadda is Associate Professor of Ophthalmology at the Keck School of Medicine of the University of Southern California, Doheny Eye Institute. He is Director of the Medical Retina Unit, Ophthalmic Imaging Unit, Retinal Cell Replacement ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE');
break;
case 6:
$("#editorial-doctor-name").html('Gaurav K. Shah, MD');
$("#editorial-doctor-title").html('');
$("#editorial-home-text").attr('style', 'height:115px');
$("#editorial-home-text").html('Gaurav K. Shah, MD, is a clinical associate professor of ophthalmology and visual sciences and co-director of the Vitreoretinal Fellowship Program at Washington University School of Medicine in St. Louis, Missouri. In addition, he is in ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE');
break;
/*
case :
$("#editorial-doctor-name").html('David F. Williams');
$("#editorial-doctor-title").html('MD');
$("#editorial-home-text").attr('style', 'height:115px');
$("#editorial-home-text").html('A summa cum laude college graduate, Dr Williams received his Doctor of Medicine degree from the University of Toledo College of Medicine and completed an internship in Internal Medicine at the Dartmouth Medical School. A residency in ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE');
break;
*/
case 7:
$("#editorial-doctor-name").html('Timothy J. Bennett, CRA, FOPS, OCT-C');
$("#editorial-doctor-title").html('');
$("#editorial-home-text").attr('style', 'height:112px');
$("#editorial-home-text").html('Timothy J. Bennett is a nationally recognized author, lecturer, and educator in the field of ophthalmic photography with more than 30 years experience working in university-based academic medical centers. He is currently ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE | VIEW ARTICLE');
break;
case 8:
$("#editorial-doctor-name").html('Darrin A. Landry, CRA, OCT-C');
$("#editorial-doctor-title").html('');
$("#editorial-home-text").attr('style', 'height:115px');
$("#editorial-home-text").html('Darrin Landry has worked in medicine for 25 years, starting as a certified surgical technician in the military. He became an ophthalmic photographer and technician in the military. He became an ophthalmic photographer and technician in ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE');
break;
case 9:
$("#editorial-doctor-name").html('Jeff Todd, JD, MS');
$("#editorial-doctor-title").html('');
$("#editorial-home-text").attr('style', 'height:115px');
$("#editorial-home-text").html('Jeff Todd joined Prevent Blindness America in early 2003, bringing with him a background in social service–related community development, with a primary focus on issues affecting the nation\'s young people. As the former senior vice president ...');
$("#editorial-corner-link").html('VIEW FULL PROFILE | VIEW ARTICLE');
break;
}
$("#member"+cpt+"-small-img").attr({ src : 'images/bio/profile-img-small-'+cpt+'-over.jpg'});
//$('#counterLabel').html(cpt+'/'+membersCount);
//$("member"+memberId+"-small-img").attr("src","member"+memberId+"-small-img.gif");
//$("#member"+memberId+"-small-img").attr({ src : 'images/member'+memberId+'-small-img-over.gif'});
}
function toggleStates(){
var obj = document.getElementById('clinical-trial-states');
var btnObj = document.getElementById('states-arrow');
if(obj.style.display == 'block') {
obj.style.display = 'none';
btnObj.src="images/arrow-up.gif";
} else {
obj.style.display = 'block';
btnObj.src="images/arrow-down.gif";
}
}
function showClinicalTrialsResults(){
$("#results-details").hide();
$("#clinical-trial-states").hide();
$("#clinical-trial-results-footer").show();
$("#clinical-trial-results").show();
setTimeout('location.replace("#results")', 50);
}
function hideClinicalTrialsResults(){
$("#results-details").show();
$("#clinical-trial-states").hide();
$("#clinical-trial-results-footer").hide();
$("#clinical-trial-results").hide();
}
//Display Disclaimer message
function showDisclaimer(url, pos) {
//IE6 check
var isIE6 = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("MSIE 6") !=-1);
var top="0";
var disclaimerDiv = document.getElementById('disclaimer');
disclaimerDiv.style.display="block";
disclaimerDiv.style.visibility="visible";
var urlDiv = document.getElementById('newUrl');
urlDiv.title=url; // save url for redirect
if (isIE6) {
if (page_id=='news') {
top="-800";
} else if (page_id=='conferences') {
// $('#day-event-popup').css("left",coordPageX+"px");
// $('#day-event-popup').css("top",coordPageY+"px");
disclaimerDiv.style.position='absolute';
top=coordPageY;
disclaimerDiv.style.top=coordPageY+"px";
disclaimerDiv.style.left="422px";
//top="0";
} else {
top="-1150";
}
if (page_id!='conferences')disclaimerDiv.style.top=((parseInt(pos)*80)+parseInt(top))+"px";
}
// Send tracking tag to Omniture
scLink(this, 'RETA: 2009 Phase 1 - Disclaimer - Main');
}
//redirect user
function redirect() {
var urlDiv = document.getElementById('newUrl');
var targetUrl = urlDiv.title;
window.open(targetUrl);
}
function submitPoll(){
var vc=$('#videoContent').is(':checked');
var pc=$('#podcasts').is(':checked');
var cs=$('#conditionSimulator').is(':checked');
var sm=$('#socialMedia').is(':checked');
var gm=$('#games').is(':checked');
var src=$('#src').val();
//alert('src='+src+',vc='+vc+',pc='+pc+',cs='+cs+',sm='+sm+',gm='+gm);
if(vc==false&pc==false&cs==false&sm==false&gm==false){
return;
}
var parameters = 'type=PollQuestionAnswer&src='+src+'&vc='+vc+'&pc='+pc+'&cs='+cs+'&sm='+sm+'&gm='+gm;
//alert(parameters);
var url;
url=basePath+'ajax/processor/?'+parameters;
// alert(url);
$.ajax({
type: "POST",
url: url,
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(p){
var delay = function() {
handlerSubmitPoll(p,src);
};
setTimeout(delay, 10);
},
error: errSubmitPoll
});
}
function showPollResultPage(){
var content='';
content+='| Video content | '; content+=''; content+=' | '; content+=' | '; content+=' | 0% | '; content+=''; content+=' |
| '; content+=' | |||||
| Podcasts | '; content+=''; content+=' | '; content+=' | '; content+=' | 0% | '; content+=''; content+=' |
| '; content+=' | |||||
| A retinal condition simulator for patients | '; content+=''; content+=' | '; content+=' | '; content+=' | 0% | '; content+=''; content+=' |
| '; content+=' | |||||
| Social media/community features | '; content+=''; content+=' | '; content+=' | '; content+=' | 0% | '; content+=''; content+=' |
| '; content+=' | |||||
| Games | '; content+=''; content+=' | '; content+=' | '; content+=' | 0% | '; content+=''; content+=' |
| '; content+=' | |||||
| '+events[i][5]+' | '; content+='';
content+=''+events[i][8]+'';
content+=' LEARN MORE'; content+=' | ';
content+=''+events[i][9]+' | '; content+='
| '; content+=' | '; content+=' | '; content+=' | ';
content+='There are no events this month';
content+=' '; content+=' '; content+=' | ';
content+=''; content+=' | '; content+=' |
| '; content+=' | '+events[i][5]+' | '; content+=''; content+=' | ';
content+=''+events[i][8]+'';
content+=' '; content+=' LEARN MORE'; content+=' | ';
content+=''; content+=' | '+events[i][9]+' | '; content+='