﻿    currcount = 1
    
     function changeblurb(xaxis, copy)
     {
     document.getElementById('iconblurbs').style.display = "block"
     document.getElementById('infobox').style.left = xaxis
     document.getElementById('infoboxarrow').style.left = xaxis + 14
     document.getElementById('infocopy').innerHTML = copy
     }
     function showtool(x)
     {
     if (x == "increment")
     {
     currcount += 1
     }
     else
     {
     currcount -= 1
     }
       
     if (currcount == 1)
     {
//     document.getElementById('icongraphic').src = "../graphics/hl/hockey/hattrick_icon_lg.gif"
//     document.getElementById('iconlink').href = "hockeysignup.aspx"
//     document.getElementById('prevsolid').style.display = "none"
//     document.getElementById('prev').style.display = "block"
//     document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks'  href='hockeysignup.aspx'>HAT TRICK CHALLENGE</a>"
         //     document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks'  href='hockeysignup.aspx'>Welcome to the Blues Hat Trick Challenge. It’s a fun way to get fit and earn a chance to win tickets to the St. Louis Blues games or signed memorabilia.</a><br /><br />"
         document.getElementById('icongraphic').src = "../graphics/hl/fooddiary_icon_lg.gif"
         document.getElementById('iconlink').href = "fooddiary.aspx"
         document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='fooddiary.aspx'>MY FOOD DIARY</a>"
         document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='fooddiary.aspx'>Need help reaching your goal weight? Track your daily calorie intake using our searchable database and easy calendar tool.  Keeping your food diary will help you achieve your ideal weight, faster.</a>"
              document.getElementById('prevsolid').style.display = "none"
              document.getElementById('prev').style.display = "block"
//         document.getElementById('prevsolid').style.display = "block"
//         document.getElementById('nextsolid').style.display = "block"
//         document.getElementById('prev').style.display = "none"
//         document.getElementById('next').style.display = "none"
     }
     else if (currcount == 4)
     {     
//     document.getElementById('icongraphic').src = "../graphics/hl/meal_icon_lg.gif"
//     document.getElementById('iconlink').href = "healthyeating.aspx"
//     document.getElementById('prevsolid').style.display = "block"
//      document.getElementById('prev').style.display = "none"
//      document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='healthyeating.aspx'>MY HEALTHY LUNCH MANAGER</a>"
         //      document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='healthyeating.aspx'>Don’t know how to eat healthy? This tool sends you healthy lunch recipes once a week, along with a grocery list to make shopping easy.</a>"
         document.getElementById('icongraphic').src = "../graphics/hl/screening_icon_lg.gif"
         document.getElementById('iconlink').href = "screenings.aspx"
         document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='screenings.aspx'>MY SCREENINGS MANAGER</a>"
         document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='screenings.aspx'>Confused about which health screenings you and your family need and at what age? This easy to use tool will tell you.</a>"

         document.getElementById('prevsolid').style.display = "block"
         document.getElementById('nextsolid').style.display = "block"
         document.getElementById('prev').style.display = "none"
         document.getElementById('next').style.display = "none"

  }
  else if (currcount == 2) {
//      document.getElementById('icongraphic').src = "../graphics/hl/fooddiary_icon_lg.gif"
//      document.getElementById('iconlink').href = "fooddiary.aspx"
//      document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='fooddiary.aspx'>MY FOOD DIARY</a>"
//      document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='fooddiary.aspx'>Need help reaching your goal weight? Track your daily calorie intake using our searchable database and easy calendar tool.  Keeping your food diary will help you achieve your ideal weight, faster.</a>"

//      document.getElementById('prevsolid').style.display = "block"
//      document.getElementById('nextsolid').style.display = "block"
//      document.getElementById('prev').style.display = "none"
  //      document.getElementById('next').style.display = "none"
  document.getElementById('icongraphic').src = "../graphics/hl/manager_icon_lg.gif"
  document.getElementById('iconlink').href = "new2.asp"
  document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='new2.asp'>MY MEDICAL MANAGER</a>"
  document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='new2.asp'>Keep track of all your family’s medical history and health information. Medications. Blood type. Drug/Food allergies. Medical, surgical, immunizations and lots more.</a>"

  document.getElementById('prevsolid').style.display = "block"
  document.getElementById('nextsolid').style.display = "block"
  document.getElementById('prev').style.display = "none"
  document.getElementById('next').style.display = "none"
  }   
     else if (currcount == 3)
     {
//     document.getElementById('icongraphic').src = "../graphics/hl/manager_icon_lg.gif"
//     document.getElementById('iconlink').href = "new2.asp"
//     document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='new2.asp'>MY MEDICAL MANAGER</a>"
//     document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='new2.asp'>Keep track of all your family’s medical history and health information. Medications. Blood type. Drug/Food allergies. Medical, surgical, immunizations and lots more.</a>"
//     
//     document.getElementById('prevsolid').style.display = "block"
//     document.getElementById('nextsolid').style.display = "block"
//      document.getElementById('prev').style.display = "none"
         //       document.getElementById('next').style.display = "none"
         document.getElementById('icongraphic').src = "../graphics/hl/meal_icon_lg.gif"
         document.getElementById('iconlink').href = "healthyeating.aspx"
         document.getElementById('prevsolid').style.display = "block"
         document.getElementById('prev').style.display = "none"
         document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='healthyeating.aspx'>MY HEALTHY LUNCH MANAGER</a>"
         document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='healthyeating.aspx'>Don’t know how to eat healthy? This tool sends you healthy lunch recipes once a week, along with a grocery list to make shopping easy.</a>"
     }
     else if (currcount == 5)
     {
//     document.getElementById('icongraphic').src = "../graphics/hl/screening_icon_lg.gif"
//     document.getElementById('iconlink').href = "screenings.aspx"
//     document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='screenings.aspx'>MY SCREENINGS MANAGER</a>"
//     document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='screenings.aspx'>Confused about which health screenings you and your family need and at what age? This easy to use tool will tell you.</a>"
//     
//     document.getElementById('prevsolid').style.display = "block"
//     document.getElementById('nextsolid').style.display = "block"
//      document.getElementById('prev').style.display = "none"
         //       document.getElementById('next').style.display = "none"
         document.getElementById('icongraphic').src = "../graphics/hl/reminder_icon_lg.gif"
         document.getElementById('iconlink').href = "desktop.aspx"
         document.getElementById('next').style.display = "block"
         document.getElementById('nextsolid').style.display = "none"
         document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='desktop.aspx'>MY OFFICE EXERCISE MANAGER</a>"
         document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='desktop.aspx'>This handy desktop application delivers daily reminders for simple exercises you can do right at your desk.</a>"
     
     }
     
     else if (currcount == 6)
     {
//     document.getElementById('icongraphic').src = "../graphics/hl/reminder_icon_lg.gif"
//     document.getElementById('iconlink').href = "desktop.aspx"
//     document.getElementById('next').style.display = "block"
//     document.getElementById('nextsolid').style.display = "none"
//     document.getElementById('toolboxheader').innerHTML = "<a class='homeboxlinks' href='desktop.aspx'>MY OFFICE EXERCISE MANAGER</a>"
//     document.getElementById('toolboxcopy').innerHTML = "<a class='homeboxlinks' href='desktop.aspx'>This handy desktop application delivers daily reminders for simple exercises you can do right at your desk.</a>"
     }
     
     }
function clearSearch()
{
if (document.getElementById('Header1_searchtxt').value == "Search")
    {
    document.getElementById('Header1_searchtxt').value = ""
    }
}

function showhideTools(x)
{
if (x == "show")
{
document.getElementById('toolsdrp').style.display = "block"
}
else
{
document.getElementById('toolsdrp').style.display = "none"
}
}

//window.onkeypress = DisableEnterKey;
//function DisableEnterKey(e) 
//{
// if (!e) 
//    var e = window.event;
//    
//    if (e.keyCode) 
//        code = e.keyCode;
//	
//	else if (e.which) 
//	    code = e.which;
//	
//	//alert(code);
//	if (code == 13)
//	{
//	return false;
//	}
//	else
//	{
//	return true;
//	}
//		
//}
function FontResize()
{
	// setDefaults arguments: size unit, default size, minimum, maximum
	// optional array of elements or selectors to apply these defaults to
	dw_fontSizerDX.setDefaults('px', 12, 8, 18, ['#hola'],'fontSize_bjc');
//	dw_fontSizerDX.setDefaults('px', 14, 10, 18, ['body', 'td', 'div', 'p', 'a', 'li', 'font', 'span'],'fontSize_bjc');
//	dw_fontSizerDX.setDefaults('px', 11, 7, 15, ['#content .CallOutBox TD','#content .CallOutBox P','#content .CallOutBox LI','#content .CallOutBoxTitle A','#content .Call-Out P','#content .Call-OutBoxTitle A'],'fontSize_bjc');
	//dw_fontSizerDX.set(14, 14, 14, ['div#sizer'] );
	dw_fontSizerDX.set(12, 10, 18, ['#contentshell .pagecopy', '#contentshell .pagecopy TD','#contentshell .pagecopy div']);
	//dw_fontSizerDX.set(16, 14, 28, ['h1']);
	dw_fontSizerDX.init();
	//setTextIcon();
}

function getPageSize() {
	        
	     var xScroll, yScroll;
		
		if (window.innerHeight && window.scrollMaxY) {	
			xScroll = window.innerWidth + window.scrollMaxX;
			yScroll = window.innerHeight + window.scrollMaxY;
		} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
			xScroll = document.body.scrollWidth;
			yScroll = document.body.scrollHeight;
		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
			xScroll = document.body.offsetWidth;
			yScroll = document.body.offsetHeight;
		}
		
		var windowWidth, windowHeight;
		
		if (self.innerHeight) {	// all except Explorer
			if(document.documentElement.clientWidth){
				windowWidth = document.documentElement.clientWidth; 
			} else {
				windowWidth = self.innerWidth;
			}
			windowHeight = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
			windowWidth = document.documentElement.clientWidth;
			windowHeight = document.documentElement.clientHeight;
		} else if (document.body) { // other Explorers
			windowWidth = document.body.clientWidth;
			windowHeight = document.body.clientHeight;
		}	
		
		// for small pages with total height less then height of the viewport
		if(yScroll < windowHeight){
			pageHeight = windowHeight;
		} else { 
			pageHeight = yScroll;
		}
	
		// for small pages with total width less then width of the viewport
		if(xScroll < windowWidth){	
			pageWidth = xScroll;		
		} else {
			pageWidth = windowWidth;
		}

		return [pageWidth,pageHeight];
	}
