﻿function loadNav(f,w,h)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='menutop' width='"+w+"' height='"+h+"' align='top'  id='menutop'><param name='allowScriptAccess' value='sameDomain' /><param name='allowFullScreen' value='false' /><param name='movie' value='"+f+"' /><param name='quality' value='high' /><param name='wmode' value='transparent'/><param name='SCALE' value='exactfit' /><embed src='"+f+"' width='"+w+"' height='"+h+"' align='top' quality='high' name='menutop' allowScriptAccess='sameDomain'  allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' scale='exactfit'/></object>");
	document.getElementById("menutop").onmouseout = function() {
	    var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	     flash = isInternetExplorer ? document.all.menutop : document.menutop;
	     if (isInternetExplorer == true) {
	        flash.cursorOut(0);
	    }
	};
}

function loadSubNav(f,w,h)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='neg' width='"+w+"' height='"+h+"' align='top'  id='neg'><param name='allowScriptAccess' value='sameDomain' /><param name='allowFullScreen' value='false' /><param name='movie' value='"+f+"' /><param name='quality' value='high' /><param name='wmode' value='transparent'/><param name='SCALE' value='exactfit' /><embed src='"+f+"' width='"+w+"' height='"+h+"' align='top' quality='high' name='neg' allowScriptAccess='sameDomain'  allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' scale='exactfit'/></object>");
}

function load_left_Nav(f,w,h)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='menuleft' width='"+w+"' height='"+h+"' align='top'  id='menuleft'><param name='allowScriptAccess' value='sameDomain' /><param name='allowFullScreen' value='false' /><param name='movie' value='"+f+"' /><param name='quality' value='high' /><param name='wmode' value='transparent'/><param name='SCALE' value='exactfit' /><embed src='"+f+"' width='"+w+"' height='"+h+"' align='top' quality='high' name='menutop' allowScriptAccess='sameDomain'  allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' scale='exactfit'/></object>");
}

function load_index(f,w,h)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' name='menuleft' width='"+w+"' height='"+h+"' align='top'  id='index_en'><param name='allowScriptAccess' value='sameDomain' /><param name='allowFullScreen' value='false' /><param name='movie' value='"+f+"' /><param name='quality' value='high' /><param name='wmode' value='transparent'/><param name='SCALE' value='exactfit' /><embed src='"+f+"' width='"+w+"' height='"+h+"' align='top' quality='high' name='index_en' allowScriptAccess='sameDomain'  allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' scale='exactfit'/></object>");
}

function redirectTo_(title)
{
    var expires = new Date();
    expires.setUTCFullYear(expires.getUTCFullYear() - 1);
    document.cookie = "PageContent=" + title + ";path=/";
	window.location = "healthliving/momentintime.aspx";
}

function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1; 
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return "";
}

function check_redirectTo()
{
	var target = getCookie("PageContent");
	if (target!="")
	{
		moveTo_(target);
	}
}
