//Function for A-Z categories
function multipleLinkforCategory(method,category)
{
document.healthActionForm.variable.value=category;
document.healthActionForm.process.value=method;
document.healthActionForm.type.value="Health Fitness";
document.healthActionForm.subType.value="16";
document.healthActionForm.subLevel.value="Category";
document.healthActionForm.action="/Health.do";
document.healthActionForm.submit();
}
//Function for library articles, top articles, results
function articleLinkAction(method,contentid)
{
document.healthActionForm.contentID.value=contentid;
document.healthActionForm.process.value=method;
document.healthActionForm.type.value="Health Fitness";
document.healthActionForm.subType.value="16";
document.healthActionForm.subLevel.value="Read Article";
document.healthActionForm.action="/Health.do";
document.healthActionForm.submit();
}
function healthCategorylinkAction(method,contentid,category)
{
document.healthActionForm.contentID.value=contentid;
document.healthActionForm.variable.value=category;
document.healthActionForm.process.value=method;
document.healthActionForm.type.value="Health Fitness";
document.healthActionForm.subType.value="16";
document.healthActionForm.subLevel.value="Read Article";
document.healthActionForm.action="/Health.do";
document.healthActionForm.submit();
}
function staticCategorylinkAction(method,contentid,category)
{
document.healthActionForm.contentID.value=contentid;
document.healthActionForm.variable.value=category;
document.healthActionForm.process.value=method;
document.healthActionForm.type.value="Health Fitness";
document.healthActionForm.subType.value="16";
document.healthActionForm.subLevel.value="Category";
document.healthActionForm.action="/Health.do";
document.healthActionForm.submit();
}
function relatedCategorylinkAction(method,focusArea)
{
document.healthActionForm.variable.value=focusArea;
document.healthActionForm.process.value=method;
document.healthActionForm.type.value="Health Fitness";
document.healthActionForm.subType.value="16";
document.healthActionForm.subLevel.value="Category";
document.healthActionForm.action="/Health.do";
document.healthActionForm.submit();
}
function staticlinksforHealth(action,method, type, subtype, sublevel)
{
document.healthActionForm.process.value=method;
document.healthActionForm.type.value=type;
document.healthActionForm.subType.value=subtype;
document.healthActionForm.subLevel.value=sublevel;
document.healthActionForm.action=action;
document.healthActionForm.submit();
}
function healthSearch( )
{
document.healthForm.action= "/Health.do?process=searchResults&type=Health Fitness&subType=16&subLevel=Results";
document.healthForm.submit();
return true;
}
//Right panel search
function healthCommonSearch( )
{
document.healthSearchForm.action= "/Health.do?process=searchResults&type=Health Fitness&subType=16&subLevel=Results";
document.healthSearchForm.submit();
return true;
}
/*
* This function is to Switch between the Category Alphabets Section Tabs On index Page
* Based on click of specific tab
*/
function healthCommonTabSwitch(divName,method,tab)
{
if(divName==""){
divName=0;
}
var AZ = document.getElementById('boxes');
if(AZ){
var AZContentItems = AZ.getElementsByTagName('div');
for (var x = 0; x < AZContentItems.length; x++)
{
if (x == 26)
{
return;
}
if (x != divName)
{
AZContentItems[x].style.display = 'none';
}
}
AZContentItems[divName].style.display = '';
}
document.healthTabForm.xtab.value=tab;
document.healthTabForm.process.value=method;
document.healthTabForm.type.value="Health Fitness";
document.healthTabForm.subType.value="16";
document.healthTabForm.subLevel.value="";
document.healthTabForm.action= "/Health.do";
document.healthTabForm.submit();
}
function paginationFunction(method,search,pages)
{
document.healthActionForm.action="/Health.do?process="+method+"&searchText="+search+"&pages="+pages+"&type=Health Fitness&subType=16&subLevel=Results";
document.healthActionForm.submit();
}
/* -------------------------------------------------------
Detecting User's Browser & OS
---------------------------------------------------------*/
var BrowserDetect = {
init: function init () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function (data) {
for (var i=0;i');
}
else if (BrowserDetect.browser == "Explorer")
{
if(BrowserDetect.version == "7.0")
{
document.write('');
}
else
{
document.write('');
}
}
else
{
document.write('');
}
}