$(function(){var $menu=$('#ldd_menu');$menu.children('li').each(function(){var $this=$(this);var $span=$this.children('span');$span.data('width',$span.width());$this.bind('mouseenter',function(){$menu.find('.ldd_submenu').stop(true,true).hide();$span.stop().animate({},300,function(){$this.find('.ldd_submenu').slideDown(300);});var scrollID=$this.find(".scrollable").attr('id');$("#link1").trigger("click");InitFlexScroll(scrollID);}).bind('mouseleave',function(){$this.find('.ldd_submenu').stop(true,true).hide();$span.stop().animate({'width':$span.data('width')+'px'},300);});});$('.ldd_submenu').stop(true,true).hide();});function toggleBmi(val)
{document.getElementById('area1').style.display='none';document.getElementById('area2').style.display='none';document.getElementById('select1').className='regular';document.getElementById('select2').className='regular';document.getElementById('area'+val).style.display='';document.getElementById('select'+val).className='selectnew';if($(".resultbg").is(":visible"))
{$(".resultbg").children(".bmiparams").text("");$(".resultbg").css('display','none');}
$(".resulttxt").children(".bmiamt").text("");$(".resulttxt").children().children(".bmistatus").text("");}
$(document).ready(function(){$(".toggle_container").hide();$("h2.trigger").click(function(){$(this).toggleClass("active").next().slideToggle("slow");});});function closePOPTop(){$(".toggle_container").hide();}
function closePOPRight(){$(".syHld").hide();}
$(document).ready(function(){jQuery.fn.fadeToggle=function(speed,easing,callback){return this.animate({opacity:'toggle'},1200,easing,callback);};$("#demo_toggler").click(function(){$("#demo").fadeToggle("slow");});});function __EmbedSwf(pFileName,pObjName,pWidth,pHeight,pFlashVars,pContainer,pVersion)
{if(swfobject)
{var params={};params.quality="high";params.scale="showall";params.wmode="transparent";params.allowScriptAccess="always";params.allowfullscreen="true";params.autostart="false";var attributes={};attributes.id=pObjName;attributes.name=pObjName;if(!pVersion)
{pVersion="9.0.0";}
swfobject.embedSWF(pFileName,pContainer,pWidth,pHeight,pVersion,"/swf/expressInstall.swf",pFlashVars,params,attributes);}}
function loadFlash(val)
{document.getElementById('flashContainer').innerHTML="<div id=\"flashContent\"></div>";jwplayer("flashContent").setup({flashplayer:"/swf/player.swf",file:""+val+"",height:299,width:380});}
function toggleSHS(val)
{document.getElementById('shsbox1').style.display='none';document.getElementById('shsbox2').style.display='none';document.getElementById('shsbox3').style.display='none';document.getElementById('shs1').className='normal';document.getElementById('shs2').className='normal';document.getElementById('shs3').className='normal';document.getElementById('shsbox'+val).style.display='';document.getElementById('shs'+val).className='selectshs';}
