Infectious Disease .

Infectious disease

3 Views

        

'; intColNum = 2; } else { strHtml = strHtml + ''; intColNum = 1; } } intCount += 1; } else { if (intGCount '; intGColNum = 2; } else { strGroupHtml = strGroupHtml + ''; } else { if (intColNum == 2) strHtml = strHtml + '' + strHtml $('tblTopMyBoards').fade('hide'); $('tblTopMyBoards').set('html', strHtml); $('tblTopMyBoards').fade(1); if (intGCount > 10) { strGroupHtml = strGroupHtml + ''; } else { if (intColNum == 2) strGroupHtml = strGroupHtml + '' + strGroupHtml $('tblTopMyGroups').fade('hide'); $('tblTopMyGroups').set('html', strGroupHtml); $('tblTopMyGroups').fade(1); $('divLoadingDDMyBoards').addClass('off'); break; case 'myIVBarGetMyLinks': $('divInnerMyLinks').fade('hide'); $('divInnerMyLinks').set('html', responseTree); $('divInnerMyLinks').fade(1); $('divLoadingDDMyBoards').addClass('off'); break; case 'myIVBarGetFavPosts': var strHtml = ''; var strMore = ''; if (responseTree != 'none') { var myFavPosts = JSON.decode(responseTree); var intCount = 0; myFavPosts.Fields.each(function(item) { if (intCount > 6) { if (strMore == '') strMore = ''; } else { strHtml = strHtml + ''; } intCount = intCount + 1; }); } else { strHtml = '' } strHtml = '' + strHtml + strMore; $('tblFavPostsInner').fade('hide'); $('tblFavPostsInner').set('html', strHtml); $('tblFavPostsInner').fade(1); $('divLoadingDDMyLinks').addClass('off'); break; case 'myIVBarGetFavMembers': var strHtml = ''; var strMore = ''; if (responseTree != 'none') { var myFavMembers = JSON.decode(responseTree); var intCount = 0; myFavMembers.Fields.each(function(item) { if (intCount > 6) { if (strMore == '') strMore = ''; } else { strHtml = strHtml + ''; } intCount = intCount + 1; }); } else { strHtml = '' } strHtml = '' + strHtml + strMore; $('tblFavMembersInner').fade('hide'); $('tblFavMembersInner').set('html', strHtml); $('tblFavMembersInner').fade(1); $('divLoadingDDFavMembers').addClass('off'); break; case 'myIVBarGetPMGroups': var myPMGroups = JSON.decode(responseTree); var intCount = 0; var strHtml = ''; var strMore = ''; myPMGroups.Fields.each(function(item) { if (intCount > 6) { if (strMore == '') strMore = ''; } else { strHtml = strHtml + ''; } intCount = intCount + 1; }); strHtml = '' + strHtml + strMore; $('tblPMGroupsInner').fade('hide'); $('tblPMGroupsInner').set('html', strHtml); $('tblPMGroupsInner').fade(1); $('divLoadingDDPMGroups').addClass('off'); break; case 'myIVBarGetInbox': var myInbox = JSON.decode(responseTree); var intCount = 0; var strHtml = ''; var strMore = ''; myInbox.Fields.each(function(item) { if (intCount == 5) { if (strMore == '') strMore = ''; } else { strHtml = strHtml + ''; } intCount = intCount + 1; }); strHtml = '' + strHtml + strMore; $('tblTopInbox').fade('hide'); $('tblTopInbox').set('html', strHtml); $('tblTopInbox').fade(1); if ($chk($('divLoadingDDInbox'))) $('divLoadingDDInbox').set('class', 'off'); break; } } } function writeMyLinksTable(intNumColumns, arrBoardLinks) { var colNum = 1; var strHtml = '
   
    '; intGColNum = 1; } } intGCount += 1; } }); if (intCount > 10) { strHtml = strHtml + '
More  
'; } strHtml = '
Boards
More  
'; } strGroupHtml = '
Groups
More
(' + item.Name + ') ' + shortenString(item.Subject, 35) + '   ' + new Date(item.DatePosted).format('%x') + '
You have not favorited any posts yet.
Favorite Posts
More
' + item.Alias + '   Recent PostsProfileSend PM
You have no favorite members yet.
Favorite Members
More
' + item.Alias + '   Recent PostsProfileSend PM
PM Groups
More
' + item.Alias + ':    ' + shortenString(item.Subject, 35) + '   ' + item.DateCreated + '
InboxSend PM
'; arrBoardLinks.each(function(item) { if (colNum == 1 && intNumColumns == 1) { strHtml = strHtml + ''; } else if (colNum == 1) { strHtml = strHtml + ''; colNum = 2; } else if (colNum == intNumColumns) { strHtml = strHtml + ''; colNum = 1; } else { strHtml = strHtml + ''; colNum += 1; } }); strHtml = strHtml + '
' + item + '
' + item + '  ' + item + '
' + item + '  
'; return strHtml; } window.addEvent('domready', function() { if (typeof pageLoad == 'function') pageLoad(); if (0 == 1 && 0 == 1) { var arrFreeBookButtons = new Array(); arrFreeBookButtons[0] = new Element('br'); arrFreeBookButtons[1] = new Element('div', {'class': 'fl pL50 fs12 buttons'}).adopt(new Element('a', { 'href': '/RequestFreeBook.asp?redirURL=' + escape(document.URL) }).set('text', 'Free? Of course!')); arrFreeBookButtons[2] = new Element('div', {'class': 'fl pL50 fs10 buttons'}).adopt(new Element('a', { 'href': 'javascript:void(1);' }).set('text', 'No Thanks').addEvent('click', function() { declineFreeBook(); })); arrFreeBookButtons[3] = new Element('br', {'class': 'cb'}); modalMsgBox('To claim your free copy of Chris Camillo\'s Book, "Laughing At Wall Street", click here and fill out the accompanying order form so the publisher can ship your copy to you when the book is released later this year.', 'alert', '', null, arrFreeBookButtons); } if ($chk($('aMainNavHome'))) { if ($('aMainNavHome').get('class') != 'navbarSelected') { $('aMainNavHome').addEvent('mouseenter', function() { pinSubNav('Home'); }); $('aMainNavHome').addEvent('mouseleave', function() { unpinSubNav('Home'); }); } } if ($chk($('aMainNavPosts'))) { if ($('aMainNavPosts').get('class') != 'navbarSelected') { $('aMainNavPosts').addEvent('mouseenter', function() { pinSubNav('Posts'); }); $('aMainNavPosts').addEvent('mouseleave', function() { unpinSubNav('Posts'); }); } } if ($chk($('aMainNavBoards'))) { if ($('aMainNavBoards').get('class') != 'navbarSelected') { $('aMainNavBoards').addEvent('mouseenter', function() { pinSubNav('Boards'); }); $('aMainNavBoards').addEvent('mouseleave', function() { unpinSubNav('Boards'); }); } } if ($chk($('aMainNavGroups'))) { if ($('aMainNavGroups').get('class') != 'navbarSelected') { $('aMainNavGroups').addEvent('mouseenter', function() { pinSubNav('Groups'); }); $('aMainNavGroups').addEvent('mouseleave', function() { unpinSubNav('Groups'); }); } } if ($chk($('aMainNavPeople'))) { if ($('aMainNavPeople').get('class') != 'navbarSelected') { $('aMainNavPeople').addEvent('mouseenter', function() { pinSubNav('People'); }); $('aMainNavPeople').addEvent('mouseleave', function() { unpinSubNav('People'); }); } } if ($chk($('aMainNavMembers'))) { if ($('aMainNavMembers').get('class') != 'navbarSelected') { $('aMainNavMembers').addEvent('mouseenter', function() { pinSubNav('Members'); }); $('aMainNavMembers').addEvent('mouseleave', function() { unpinSubNav('Members'); }); } } if ($chk($('aMainNavMail'))) { if ($('aMainNavMail').get('class') != 'navbarSelected') { $('aMainNavMail').addEvent('mouseenter', function() { pinSubNav('Mail'); }); $('aMainNavMail').addEvent('mouseleave', function() { unpinSubNav('Mail'); }); } } if ($chk($('aMainNavMyAccount'))) { if ($('aMainNavMyAccount').get('class') != 'navbarSelected') { $('aMainNavMyAccount').addEvent('mouseenter', function() { pinSubNav('MyAccount'); }); $('aMainNavMyAccount').addEvent('mouseleave', function() { unpinSubNav('MyAccount'); }); } } if ($chk($('aMainNavAdmin'))) { if ($('aMainNavAdmin').get('class') != 'navbarSelected') { $('aMainNavAdmin').addEvent('mouseenter', function() { pinSubNav('Admin'); }); $('aMainNavAdmin').addEvent('mouseleave', function() { unpinSubNav('Admin'); }); } } if ($chk($('aMainNavCurrBoard'))) { if ($('aMainNavCurrBoard').get('class') != 'navbarSelected') { $('aMainNavCurrBoard').addEvent('mouseenter', function() { pinSubNav('CurrBoard'); }); $('aMainNavCurrBoard').addEvent('mouseleave', function() { unpinSubNav('CurrBoard'); }); } } if ($chk($('aCloseLogo'))) { $('divLogo').addEvent('mouseenter', function() { $('aCloseLogo').set('class', 'normalTip'); }); $('divLogo').addEvent('mouseleave', function() { $('aCloseLogo').set('class', 'off normalTip'); }); $('aCloseLogo').addEvent('click', function() { $('divLogo').set('class', 'off'); }); $('aCloseLogo').store('tip:title', 'Minimize Logo'); Cookie.write('BigLogoOpen', '0'); } attachTips(); if ($chk($('txtTopMenuSearch'))) { $('txtTopMenuSearch').addEvent('focus', function() { topSearchHasFocus = true; if ($('txtTopMenuSearch').get('value') == 'Enter Symbol') { $('txtTopMenuSearch').set('value', '').set('style', 'color: #000000;'); } }); $('txtTopMenuSearch').addEvent('blur', function() { topSearchHasFocus = false; if ($('txtTopMenuSearch').get('value') == '') { $('txtTopMenuSearch').set('class', 'fwb').set('value', 'Enter Symbol').set('style', 'color: #949494;'); } }); } if ($chk($('imgSearchIcon'))) $('imgSearchIcon').addEvents({ 'mouseenter': function() { hoverSearchIcon(); }, 'mouseleave': function() { unhoverSearchIcon(); }, 'click': function() { document.goboard.submit(); }}); if ($chk($('aTopSearch'))) $('aTopSearch').addEvent('click', function() { document.goboard.submit(); }); if ($chk($('aDDLogin'))) { $('txtUserName').addEvent('focus', function() { loginFocus = 1; pinDD('Login'); }); $('txtUserName').addEvent('blur', function() { loginFocus = 0; if (loginFocus == 0 && loginHover == 0) unpinDD('Login'); }); $('txtPassword').addEvent('focus', function() { loginFocus = 1; pinDD('Login'); }); $('txtPassword').addEvent('blur', function() { loginFocus = 0; if (loginFocus == 0 && loginHover == 0) unpinDD('Login'); }); $('chkSavePwd').addEvent('focus', function() { loginFocus = 1; pinDD('Login'); }); $('chkSavePwd').addEvent('blur', function() { loginFocus = 0; if (loginFocus == 0 && loginHover == 0) unpinDD('Login'); }); $('aDDLogin').addEvent('mouseenter', function() { loginHover = 1; pinDD('Login'); }); $('aDDLogin').addEvent('mouseleave', function() { loginHover = 0; if (loginFocus == 0 && loginHover == 0) unpinDD('Login'); }); $('divDDLogin').addEvent('mouseenter', function() { loginHover = 1; pinDD('Login'); }); $('divDDLogin').addEvent('mouseleave', function() { loginHover = 0; if (loginFocus == 0 && loginHover == 0) unpinDD('Login'); }); } if ($chk($('aDDMyBoards'))) { $('aDDMyBoards').addEvent('mouseenter', function() { pinDD('MyBoards'); }); $('aDDMyBoards').addEvent('mouseleave', function() { unpinDD('MyBoards'); }); $('divDDMyBoards').addEvent('mouseenter', function() { pinDD('MyBoards'); }); $('divDDMyBoards').addEvent('mouseleave', function() { unpinDD('MyBoards'); }); } if ($chk($('aDDMyLinks'))) { $('aDDMyLinks').addEvent('mouseenter', function() { pinDD('MyLinks'); }); $('aDDMyLinks').addEvent('mouseleave', function() { unpinDD('MyLinks'); }); $('divDDMyLinks').addEvent('mouseenter', function() { pinDD('MyLinks'); }); $('divDDMyLinks').addEvent('mouseleave', function() { unpinDD('MyLinks'); }); } if ($chk($('aDDFavMembers'))) { $('aDDFavMembers').addEvent('mouseenter', function() { pinDD('FavMembers'); }); $('aDDFavMembers').addEvent('mouseleave', function() { unpinDD('FavMembers'); }); $('divDDFavMembers').addEvent('mouseenter', function() { pinDD('FavMembers'); }); $('divDDFavMembers').addEvent('mouseleave', function() { unpinDD('FavMembers'); }); } if ($chk($('aDDInbox'))) { $('aDDInbox').addEvent('mouseenter', function() { pinDD('Inbox'); }); $('aDDInbox').addEvent('mouseleave', function() { unpinDD('Inbox'); }); $('divDDInbox').addEvent('mouseenter', function() { pinDD('Inbox'); }); $('divDDInbox').addEvent('mouseleave', function() { unpinDD('Inbox'); }); } $('aTopMenuFilter').addEvents({'mouseenter': function() { pinMenuFilter(); }, 'mouseleave': function() { $('imgTopMenuFilter').set('src', '/Images/global_search-green-off.png'); }}); $('divTopMenuFilter').getElements('div.dropdownEntry').each(function(item) { item.addEvents({'mouseenter': function() { item.set('class', 'dropdownEntrySelected cp'); }, 'mouseleave': function() { item.set('class', 'dropdownEntry cp'); }, 'click': function() { topMenuFilterChanged(item.get('text').toUpperCase()); }}); }); $('div' + $('tdTopMenuFilter').get('text').trim() + 'Filter').removeEvents(); $('div' + $('tdTopMenuFilter').get('text').trim() + 'Filter').set('class', 'dropdownEntrySelected cp'); $('div' + $('tdTopMenuFilter').get('text').trim() + 'Filter').addEvent('click', function() { $('divTopMenuFilter').set('class', 'off'); }); curDomain = 'www.investorvillage.com'; topMenuAutoComplete = new Autocompleter.Ajax.Xhtml($('txtTopMenuSearch'), '/ajaxManagers/BoardAjaxManager.asp?action=autoSearchBoards', { selectMod: 'type-ahead', delay: 300, width: '300px', sideAlign: 'right', filterSubset: true, minLength: 2, autoSubmit: true }); }); function pinDD(strType) { eval(strType + 'DoPin += 1;'); setTimeout('doPinDD(\'' + strType + '\')', 500); } function doPinDD(strType) { doPin = eval(strType + 'DoPin'); if (doPin == 1) { hasPinned = eval(strType + 'HasPinned'); if (hasPinned != 1) { switch (strType) { case 'MyBoards': ajaxRequest('/ajaxManagers/BoardAjaxManager.asp', 'action=getMyBoards&sortBy=LastPost&sortDir=DESC', 'myIVBarGetMyBoards', 'false', 'true'); break; case 'MyLinks': ajaxRequest('/ajaxManagers/MemberAjaxManager.asp', 'action=getMyLinks', 'myIVBarGetMyLinks', 'false', 'true'); ajaxRequest('/ajaxManagers/MemberAjaxManager.asp', 'action=getFavPosts', 'myIVBarGetFavPosts', 'false', 'true'); break; case 'FavMembers': ajaxRequest('/ajaxManagers/MemberAjaxManager.asp', 'action=getFavMembers', 'myIVBarGetFavMembers', 'false', 'true'); ajaxRequest('/ajaxManagers/MemberAjaxManager.asp', 'action=getPMGroupMembers', 'myIVBarGetPMGroups', 'false', 'true'); break; case 'Inbox': ajaxRequest('/ajaxManagers/MemberAjaxManager.asp', 'action=getNewPrivateMessages&count=5', 'myIVBarGetInbox', 'false', 'true'); break; } eval(strType + 'HasPinned = 1;'); } $('divDD' + strType).set('class', 'on dd' + strType); if ($chk($('aDD' + strType))) $('aDD' + strType).set('class', 'buttonPressed'); } } function unpinDD(strType) { eval(strType + 'DoPin -= 1;'); eval('if (' + strType + 'DoPin == 1) ' + strType + 'DoPin -=1;'); setTimeout('doUnpinDD(\'' + strType + '\')', 500); } function doUnpinDD(strType) { doPin = eval(strType + 'DoPin'); if (doPin == 0) { $('divDD' + strType).set('class','off'); if ($chk($('aDD' + strType))) $('aDD' + strType).set('class', 'arrow'); } } function pinSubNav(strType) { eval(strType + 'DoSNPin = 1;'); setTimeout('doPinSubNav(\'' + strType + '\')', 300); } function doPinSubNav(strType) { doPin = eval(strType + 'DoSNPin'); if (doPin == 1) { hasPinned = eval(strType + 'HasSNPinned'); if (hasPinned != 1) { var newSubNav = new Element('div').set('class', 'off').set('id', 'div' + strType + 'SubNav'); newSubNav.addEvent('mouseenter', function() { pinSubNav(strType); }); newSubNav.addEvent('mouseleave', function() { unpinSubNav(strType); }); newSubNav.set('style', 'width:' + $('divSubNav').getSize().x + 'px;').set('html', getSubNav(strType)).fade('hide'); newSubNav.set('class', 'on pa'); newSubNav.inject($('divSubNav'), 'before').position({ relativeTo:$('divSubNav'), position:'upperLeft', edge:'upperLeft'});; newSubNav.fade(1); eval(strType + 'HasSNPinned = 1;'); } else { if ($chk($('div' + strType + 'SubNav'))) { if ($('div' + strType + 'SubNav').get('class') == 'off') { $('div' + strType + 'SubNav').fade('hide'); $('div' + strType + 'SubNav').set('class', 'on pa'); $('div' + strType + 'SubNav').fade(1); } } } } } function unpinSubNav(strType) { eval(strType + 'DoSNPin = 0;'); setTimeout('doUnpinSubNav(\'' + strType + '\')', 500); } function doUnpinSubNav(strType) { doPin = eval(strType + 'DoSNPin'); if (doPin == 0) { if ($chk($('div' + strType + 'SubNav'))) { setTimeout('$(\'div' + strType + 'SubNav\').fade(\'out\');', 600); setTimeout('$(\'div' + strType + 'SubNav\').set(\'class\', \'off\');', 1200); } } } function getSubNav(strType) { switch (strType) { case 'Posts': return ''; break; case 'Boards': return ''; break; case 'Members': return ''; break; case 'Mail': return ''; break; case 'MyAccount': return ''; break; case 'Admin': return ''; break; case 'CurrBoard': return ''; break; } } function declineFreeBook() { ar('/ajaxManagers/MemberAjaxManager.asp', 'declineFreeBook', 'memberId=0'); } function ac(strAction, strResponseTree) { if ($chk(strResponseTree) && strResponseTree != 'False') { switch (strAction) { case 'declineFreeBook': fadeMsgBox(); break; } } }