|
', end) + 1;
var theScript = theCode.substring(start2,end);
var newScript = document.createElement('script');
newScript.text = theScript;
theHead.appendChild(newScript);
var part1 = theCode.substring(0,start);
var part2 = theCode.substring(end2, theCode.length);
theCode = part1.concat(part2);
start = end + 9;
}
}
document.getElementById("contentDiv").innerHTML = theCode;
window.location.hash = "!sub=" + theID;
theTitle = searchByID_1025(theID);
document.title = originalTitle + ' - ' + theTitle;
if(FB){
FB.init({appId: '156151101088787', status: true, cookie: true, xfbml: true, href:window.location.href });
}
if( theScript && theScript.indexOf('goFlash') > 0){
goFlash();
}
}
connectIt2();
function rollOverList_1025( theID ){
var listTitle = document.getElementById( "1025_" + theID + "_title");
var listDate = document.getElementById( "1025_" + theID + "_date");
listTitle.bgColor = "e5f2ff";
listDate.bgColor = "e5f2ff";
}
function rollOutList_1025( theID ){
var listTitle = document.getElementById( "1025_" + theID + "_title");
var listDate = document.getElementById( "1025_" + theID + "_date");
listTitle.bgColor = "F5F5F5";
listDate.bgColor = "F5F5F5";
}
listItems_1025 = new Array();
listItems_1025[1] = {title:"Multiple Sclerosis: Why Exercise?", id:96, date:"Sun, Apr 29, 2012"};
listItems_1025[2] = {title:"Exercise can help ease the symptoms of multiple sclerosis", id:95, date:"Sun, Apr 29, 2012"};
listItems_1025[3] = {title:"Exercising with MS - the new DVD from the MS Society", id:94, date:"Sun, Apr 29, 2012"};
listItems_1025[4] = {title:"Exercise and Multiple Sclerosis Katherine Louman-Gardiner", id:93, date:"Sun, Apr 29, 2012"};
function searchIt_1025( searchString ){
var matches = 0;
for(var j = 1; j < listItems_1025.length; j++){
var mySearch = new RegExp(searchString, "i");
isMatch = listItems_1025[j]['title'].search(mySearch);
var theItem = document.getElementById( "contentList1025_" + listItems_1025[j].id );
if(isMatch != -1){
matches += 1;
theItem.className = "show";
}else{
theItem.className = "hide";
}
}
var theError = document.getElementById( "noMatch" );
if(matches == 0){
theError.innerHTML = "There are no articles available that match the keyword '" + searchString + "'. Please try a different search.";
}else{
theError.innerHTML = "";
}
}
function startSearch_1025(){
var theInput = document.getElementById("searchInput_1025");
searchIt_1025(theInput.value);
}
function searchByID_1025(theID){
for(var j = 1; j < listItems_1025.length; j++){
if(listItems_1025[j].id == theID){
return listItems_1025[j].title;
}
}
}
window.onload = function() {
initialiseStateFromURL();
}
function initialiseStateFromURL() {
var theHash = window.location.hash;
if(theHash.indexOf('=')){
var theNumber = theHash.substring(theHash.indexOf('=')+1, theHash.length);
selectList(theNumber);
}
}
//-->
|
Select a topic from the list above.
|
|
|
|
|
|