Sites.psu.edu



<?php/** * @package WordPress * @subpackage Triadv2_Theme *//*Template Name: Full Width Calcs*/remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );remove_action('genesis_loop', 'genesis_do_loop');add_action('genesis_loop', 'custom_loop');function custom_loop() { ?><style>#content{float:left;margin:20px;width:96%;font-family: arial;}#tab li {padding-left: 20px;padding-bottom: 15px;padding-right: 15px;list-style-type: bullet;}h2 {font-family: arial;color:#389ff0;font-size: 16px;font-weight: bold;}h2 a:visited{font-family: arial;color:#000000;font-size: 16px;font-weight: bold;}h4 {font-family: arial;color:#e50000;}h3 {font-family: arial;color:#2dd07a;}h1 {font-family: arial;color:#000000;font-size: 16px;font-weight: bold;}</style> <link rel="stylesheet" href="/assets/app.min.css" /> <script type="text/javascript" src="/assets/app.min.js"></script> <script type="text/javascript"> $(function(){ var calendar_dateFormats = {}; var defaultDateFmt = 'm/d/yy'; var tabsDiv = $('#tab'); tabsDiv.tabs();$('.comments').bind('mouseover', function(event) { $(this).find('div.tooltip').css({ top: event.pageY + 5 + 'px', left: event.pageX + 5 + 'px' }).show(); }) .bind('mouseout', function() { $('div.tooltip').hide(); });$('.tlb-btn.toolbarBluebtn.update').click(function(){recalc_onclick('');})$('.tlb-btn.toolbarBluebtn.reset').click(function(){{resetClick();}})$('.tlb-btn.toolbarBluebtn.print').click(function(){{printClick();}}) recalc_onclick('obj'); $('input:not(":hidden,:button,[readonly=readonly],:disabled"),select,a.ui-slider-handle,textarea,a.ui-state-active').filter(':first').focus(); }); </script> <style type="text/css" media="print">.no-print,.ui-tabs-nav,.ui-accordion-header,.jw-header{display:none;}.ui-widget-content{border:0;}.ui-accordion-content,.jw-content{height:auto!important;}.yes-print{display:block!important;}.ui-state-active{border:1px solid #3385EA!important;}</style><link rel='stylesheet' type='text/css' href='' media='print' id='printallcss' /><script>$(document).ready(function() { $("input[name$='eeisel']").click(function() { var test = $(this).val(); $("div.desc").hide(); $("#eei" + test).show(); }); $("input[name$='eeasel']").click(function() { var test = $(this).val(); $("div.desceea").hide(); $("#eea" + test).show(); });});</script> <noscript style='color:#F15623;'> The webpage is not working since JavaScript is not enabled. </noscript> <form id='formc' name='formc' method='post' target='_top'><div id='tab'><h3>Energy Availability Calculator</h3><br><h2>The EA Calculator is an easy-to-use tool to estimate the number of calories an individual must consume to maintain a healthy EA. </h2><br><h1><a href="">CLICK HERE TO LEARN HOW TO CALCULATE EXERCISE ENERGY EXPENDITURE BEFORE STARTING</a></h1> <div id='sheet-1' style='padding: 1em 1.4em;'> <table width= '850' cellspacing='0' cellpadding='0' style='border-spacing:0;' onkeydown='javascript:navigate(event);'><col width='194'/><col width='169'/><col width='111'/><col width='64'/><col width='64'/><col width='64'/><col width='64'/><col width='64'/><col width='64'/><col width='64'/><col width='64'/> <tr style='height:20pt'><td class='ee125' style='height:20pt;' colspan = '11'><br><hr><br><br><span style="font-size: 15px;" "font-family: Arial;"><b>This calculator can be used to estimate energy availability when an athlete's mean EI, EEE, body weight, and body fat is known.</b></span><br><br><br></td> </tr> <tr style='height:20pt'><td class='ee125' style='height:20pt;' colspan = '11'><h4>TO ESTIMATE ENERGY AVAILABILITY:</h4><br></td> </tr><tr style='height:20pt'><td class='ee125' style='height:20pt;' colspan = '11'><h1><style type="text/css">#AnythingPopup_BoxContainer8{width:550px;height:650px;background:#FFFFFF;border:1px solid #e34047;padding:0;position:fixed;z-index:99999;cursor:default;-moz-border-radius: 10px;-webkit-border-radius: 10px;-khtml-border-radius: 10px;border-radius: 10px; display:none;} #AnythingPopup_BoxContainerHeader8 {height:30px;background:#e34047;border-top-right-radius:10px;-moz-border-radius-topright:10px;-webkit-border-top-right-radius:10px;-khtml-border-top-right-radius: 10px;border-top-left-radius:10px;-moz-border-radius-topleft:10px;-webkit-border-top-left-radius:10px;-khtml-border-top-left-radius: 10px;} #AnythingPopup_BoxContainerHeader8 a {color:#FFFFFF;font-family:Verdana,Arial;font-size:10pt;font-weight:bold;} #AnythingPopup_BoxTitle8 {float:left; margin:5px;color:#FFFFFF;font-family:Verdana,Arial;font-size:12pt;font-weight:bold;} #AnythingPopup_BoxClose8 {float:right;width:50px;margin:5px;} #AnythingPopup_BoxContainerBody8 {margin:15px;overflow:auto;height:590px;} #AnythingPopup_BoxContainerFooter8 {position: fixed;top:0;left:0;bottom:0;right:0;background:#000000;opacity: .3;-moz-opacity: .3;filter: alpha(opacity=30);border:1px solid #e34047;z-index:999;display:none;} </style><a href='javascript:AnythingPopup_OpenForm("AnythingPopup_BoxContainer8","AnythingPopup_BoxContainerBody7","AnythingPopup_BoxContainerFooter8","550","650");'>EXAMPLE</a><div style="display: none;" id="AnythingPopup_BoxContainer8"><div id="AnythingPopup_BoxContainerHeader8"><div id="AnythingPopup_BoxTitle8">Example:</div><div id="AnythingPopup_BoxClose8"><a href="javascript:AnythingPopup_HideForm('AnythingPopup_BoxContainer8','AnythingPopup_BoxContainerFooter8');">Close</a></div></div><div id="AnythingPopup_BoxContainerBody8"><a href=""><img src="" alt="calcexamp2" width="840" height="690" class="aligncenter size-full wp-image-2555" /></a></div></div><div style="display: none;" id="AnythingPopup_BoxContainerFooter8"></div></span></h1><br></td> </tr> <tr style='height:15pt'><td class='ee109' style='height:15pt;'>Body Weight in lbs</td><td class='ee113' style='height:15pt;'><input id='xlew_1_3_2' type='text' value='0' class='ee114' style='width:100%' onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_1_3_2') " name='xlew_1_3_2' placeholder='' tabindex='1' data-sheet='1' data-row='3' data-col='2'/></td><td class='ee115' style='height:15pt;'>lbs</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee119' style='height:15pt;'>Body Weight in kg</td><td class='ee113' style='height:15pt;'><input id='xlew_1_4_2' type='text' readonly='readonly' value='0' class='ee112' style='overflow:hidden; border:0px solid #000000; width:100% ' name='xlew_1_4_2' tabindex='-1' /></td><td class='ee115' style='height:15pt;'>kg</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee119' style='height:15pt;'>Body Fat Percentage</td><td class='ee113' style='height:15pt;'><input id='xlew_1_5_2' type='text' value='0' class='ee114' style='width:100%' onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_1_5_2') " name='xlew_1_5_2' placeholder='' tabindex='2' data-sheet='1' data-row='5' data-col='2'/></td><td class='ee115' style='height:15pt;'>%</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee119' style='height:15pt;'>Exercise Energy Expenditure</td><td class='ee113' style='height:15pt;'><input id='xlew_1_6_2' type='text' value='0' class='ee114' style='width:100%' onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_1_6_2') " name='xlew_1_6_2' placeholder='' tabindex='3' data-sheet='1' data-row='6' data-col='2'/></td><td class='ee115' style='height:15pt;'>kcals</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee109' style='height:15pt;'>Exercise Duration</td><td class='ee113' style='height:15pt;'><input id='xlew_1_7_2' type='text' value='0.00' class='ee114' style='width:100%' onchange="this.value=eedisplayFloatND(eeparseFloat(this.value),2);recalc_onclick('xlew_1_7_2') " name='xlew_1_7_2' placeholder='' tabindex='4' data-sheet='1' data-row='7' data-col='2'/></td><td class='ee115' style='height:15pt;'>min</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee119' style='height:15pt;'>Daily Caloric Intake</td><td class='ee113' style='height:15pt;'><input id='xlew_1_8_2' type='text' value='0' class='ee114' style='width:100%' onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_1_8_2') " name='xlew_1_8_2' placeholder='' tabindex='5' data-sheet='1' data-row='8' data-col='2'/></td><td class='ee115' style='height:15pt;'>kcals</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee121' style='height:15pt;' colspan = '2'>Energy Availability</td><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee113' style='height:15pt;'><input id='xlew_1_11_1' type='text' readonly='readonly' value='0' class='ee112' style='overflow:hidden; border:0px solid #000000; width:100% ' name='xlew_1_11_1' tabindex='-1' /></td><td class='ee124' style='height:15pt;'>kcal/kgFFM/day</td><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:20pt'><td class='ee125' style='height:20pt;' colspan = '11'><br><br><hr><br><br></td> </tr> <tr style='height:20pt'><td class='ee125' style='height:20pt;' colspan = '11'><span style="font-size: 16px;"><b>This calculator can be used to estimate the number of calories needed to achieve a desired level of energy availability.</b></span><br><br><br></td> </tr> <tr style='height:20pt'><td class='ee125' style='height:20pt;' colspan = '11'><h4>TO ESTIMATE ENERGY INTAKE:</h4><br></td> </tr><tr style='height:20pt'><td class='ee125' style='height:20pt;' colspan = '11'><h1><style type="text/css">#AnythingPopup_BoxContainer7{width:550px;height:650px;background:#FFFFFF;border:1px solid #e34047;padding:0;position:fixed;z-index:99999;cursor:default;-moz-border-radius: 10px;-webkit-border-radius: 10px;-khtml-border-radius: 10px;border-radius: 10px; display:none;} #AnythingPopup_BoxContainerHeader7 {height:30px;background:#e34047;border-top-right-radius:10px;-moz-border-radius-topright:10px;-webkit-border-top-right-radius:10px;-khtml-border-top-right-radius: 10px;border-top-left-radius:10px;-moz-border-radius-topleft:10px;-webkit-border-top-left-radius:10px;-khtml-border-top-left-radius: 10px;} #AnythingPopup_BoxContainerHeader7 a {color:#FFFFFF;font-family:Verdana,Arial;font-size:10pt;font-weight:bold;} #AnythingPopup_BoxTitle7 {float:left; margin:5px;color:#FFFFFF;font-family:Verdana,Arial;font-size:12pt;font-weight:bold;} #AnythingPopup_BoxClose7 {float:right;width:50px;margin:5px;} #AnythingPopup_BoxContainerBody7 {margin:15px;overflow:auto;height:590px;} #AnythingPopup_BoxContainerFooter7 {position: fixed;top:0;left:0;bottom:0;right:0;background:#000000;opacity: .3;-moz-opacity: .3;filter: alpha(opacity=30);border:1px solid #e34047;z-index:999;display:none;} </style><a href='javascript:AnythingPopup_OpenForm("AnythingPopup_BoxContainer7","AnythingPopup_BoxContainerBody7","AnythingPopup_BoxContainerFooter7","550","650");'>EXAMPLE</a><div style="display: none;" id="AnythingPopup_BoxContainer7"><div id="AnythingPopup_BoxContainerHeader7"><div id="AnythingPopup_BoxTitle7">Example:</div><div id="AnythingPopup_BoxClose7"><a href="javascript:AnythingPopup_HideForm('AnythingPopup_BoxContainer7','AnythingPopup_BoxContainerFooter7');">Close</a></div></div><div id="AnythingPopup_BoxContainerBody7"><a href=""><img src="" alt="calcexamp" width="840" height="690" class="aligncenter size-full wp-image-2555" /></a></div></div><div style="display: none;" id="AnythingPopup_BoxContainerFooter7"></div></span></h1><br></td> </tr> <tr style='height:15pt'><td class='ee109' style='height:15pt;'>Body Weight in lbs</td><td class='ee113' style='height:15pt;'><input id='xlew_1_17_2' type='text' value='0' class='ee114' style='width:100%' onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_1_17_2') " name='xlew_1_17_2' placeholder='' tabindex='6' data-sheet='1' data-row='17' data-col='2'/></td><td class='ee115' style='height:15pt;'>lbs</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee119' style='height:15pt;'>Body Weight in kg</td><td class='ee113' style='height:15pt;'><input id='xlew_1_18_2' type='text' readonly='readonly' value='0' class='ee112' style='overflow:hidden; border:0px solid #000000; width:100% ' name='xlew_1_18_2' tabindex='-1' /></td><td class='ee115' style='height:15pt;'>kg</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee119' style='height:15pt;'>Body Fat Percentage</td><td class='ee113' style='height:15pt;'><input id='xlew_1_19_2' type='text' value='0' class='ee114' style='width:100%' onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_1_19_2') " name='xlew_1_19_2' placeholder='' tabindex='7' data-sheet='1' data-row='19' data-col='2'/></td><td class='ee115' style='height:15pt;'>%</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee119' style='height:15pt;'>Exercise Energy Expenditure</td><td class='ee113' style='height:15pt;'><input id='xlew_1_20_2' type='text' value='0' class='ee114' style='width:100%' onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_1_20_2') " name='xlew_1_20_2' placeholder='' tabindex='8' data-sheet='1' data-row='20' data-col='2'/></td><td class='ee115' style='height:15pt;'>kcals</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee109' style='height:15pt;'>Exercise Duration</td><td class='ee113' style='height:15pt;'><input id='xlew_1_21_2' type='text' value='0.00' class='ee114' style='width:100%' onchange="this.value=eedisplayFloatND(eeparseFloat(this.value),2);recalc_onclick('xlew_1_21_2') " name='xlew_1_21_2' placeholder='' tabindex='9' data-sheet='1' data-row='21' data-col='2'/></td><td class='ee115' style='height:15pt;'>min</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee119' style='height:15pt;'>Desired Energy Availability</td><td class='ee113' style='height:15pt;'><input id='xlew_1_22_2' type='text' value='0' class='ee114' style='width:100%' onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_1_22_2') " name='xlew_1_22_2' placeholder='' tabindex='10' data-sheet='1' data-row='22' data-col='2'/></td><td class='ee115' style='height:15pt;'>kcal/kgFFM/day</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee121' style='height:15pt;' colspan = '2'>Necessary Caloric Intake</td><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr> <tr style='height:15pt'><td class='ee113' style='height:15pt;'><input id='xlew_1_25_1' type='text' readonly='readonly' value='0' class='ee112' style='overflow:hidden; border:0px solid #000000; width:100% ' name='xlew_1_25_1' tabindex='-1' /></td><td class='ee124' style='height:15pt;'>kcals/day</td><td class='ee116' style='height:15pt;'>&nbsp;</td><td class='ee116' style='height:15pt;' colspan = '8'>&nbsp;</td> </tr><tr style='height:20pt'><td class='ee125' style='height:20pt;' colspan = '11'><br><br><hr></td> </tr> </table> </div><br><h1><a href="">CLICK HERE TO SEE WHAT YOUR RESULTS MEAN</a></h1><br><br></div> </form> <div class='toolbar no-print'> <div class='tlb-elm toolpanel'> <button class='tlb-btn toolbarBluebtn reset' style='margin-left:3px'>Reset</button> <button class='tlb-btn toolbarBluebtn print' style='margin-left:3px'>Print</button> </div> </div> <script type="text/javascript">function resetClick(){ document.formc.reset(); recalc_onclick(''); LoadFromQueryString(); }var co = new Object;function recalc_onclick(ctl) { if (true) {co['xlew_1_3_2']=eeparseFloat(document.getElementById('xlew_1_3_2').value);co['xlew_1_5_2']=eeparseFloat(document.getElementById('xlew_1_5_2').value);co['xlew_1_6_2']=eeparseFloat(document.getElementById('xlew_1_6_2').value);co['xlew_1_7_2']=eeparseFloat(document.getElementById('xlew_1_7_2').value);co['xlew_1_8_2']=eeparseFloat(document.getElementById('xlew_1_8_2').value);co['xlew_1_17_2']=eeparseFloat(document.getElementById('xlew_1_17_2').value);co['xlew_1_19_2']=eeparseFloat(document.getElementById('xlew_1_19_2').value);co['xlew_1_20_2']=eeparseFloat(document.getElementById('xlew_1_20_2').value);co['xlew_1_21_2']=eeparseFloat(document.getElementById('xlew_1_21_2').value);co['xlew_1_22_2']=eeparseFloat(document.getElementById('xlew_1_22_2').value);calc(co);document.getElementById('xlew_1_4_2').value=eedisplayFloat(co['xlew_1_4_2']);document.getElementById('xlew_1_11_1').value=eedisplayFloat(co['xlew_1_11_1']);document.getElementById('xlew_1_18_2').value=eedisplayFloat(co['xlew_1_18_2']);document.getElementById('xlew_1_25_1').value=eedisplayFloat(co['xlew_1_25_1']);};};function calc(data){var c1B22=data['xlew_1_22_2'];var c1B21=data['xlew_1_21_2'];var c1B20=data['xlew_1_20_2'];var c1B19=data['xlew_1_19_2'];var c1B17=data['xlew_1_17_2'];var c1B8=data['xlew_1_8_2'];var c1B7=data['xlew_1_7_2'];var c1B6=data['xlew_1_6_2'];var c1B5=data['xlew_1_5_2'];var c1B3=data['xlew_1_3_2'];var c1B4=(((c1B3)/(2.20462)));var c1A11=(((((c1B8)-(((c1B6)-(((((((2)*(((c1B7)/(60)))))*(((1)-(((c1B5)/(100)))))))*(c1B4)))))))/(((((1)-(((c1B5)/(100)))))*(c1B4)))));var c1B18=(((c1B17)/(2.20462)));var c1A25=(((((c1B22)*(((((1)-(((c1B19)/(100)))))*(c1B18)))))+(((c1B20)-(((((c1B21)/(60)))*(((2)*(((((1)-(((c1B19)/(100)))))*(c1B18)))))))))));data['xlew_1_25_1']=c1A25;data['xlew_1_18_2']=c1B18;data['xlew_1_11_1']=c1A11;data['xlew_1_4_2']=c1B4;};function postcode() {};function TriggerOnchange(hiddenId){ var e = jQuery.Event('change'); $('#'+hiddenId).trigger(e);}var eeisus=1;var eetrue="TRUE";var eefalse="FALSE";var eedec=".";var eeth=",";var eedecreg=new RegExp("\\.","g");var eethreg=new RegExp(",","g");var eecurrencyreg=new RegExp("[$]","g");var eepercentreg=new RegExp("%","g");function myIsNaN(x){return(isNaN(x)||(typeof x=='number'&&!isFinite(x)));};function round(n,nd){if(isFinite(n)&&isFinite(nd)){var sign_n=(n<0)?-1:1;var abs_n=Math.abs(n);var factor=Math.pow(10,nd);return sign_n*Math.round(abs_n*factor)/factor;}else{return NaN;}};function eeparseFloat(str){str=String(str).replace(eedecreg,".");var res=parseFloat(str);if(isNaN(res)){return 0;}else{return res;}};var near0RegExp=new RegExp("[.](.*0000000|.*9999999)");function eedisplayFloat(x){if(myIsNaN(x)){return Number.NaN;}else{var str=String(x);if(near0RegExp.test(str)){x=round(x,8);str=String(x);}return str.replace(/\./g,eedec);}};function eedisplayFloatND(x,nd){if(myIsNaN(x)){return Number.NaN;}else{var res=round(x,nd);if(nd>0){var str=String(res);if(str.indexOf('e')!=-1)return str;if(str.indexOf('E')!=-1)return str;var parts=str.split('.');if(parts.length<2){var decimals=('00000000000000').substring(0,nd);return(parts[0]).toString()+eedec+decimals;}else{var decimals=((parts[1]).toString()+'00000000000000').substring(0,nd);return(parts[0]).toString()+eedec+decimals;}}else{return res;}}};function submitClick() { check_submit('nocaptcha');} var submitted=false; function check_submit(objcaptcha) { if (submitted) { alert('You have already submitted the form. Please be patient.'); submitted = false; return false } else { recalc_onclick(''); submitted = true; document.formc.submit(); return true } }function printClick(){ recalc_onclick(''); document.getElementById('printallcss').href=''; window.print();}function eequerystring(){ var variable,key,value,ii,querystring,variables;querystring=document.location.search; if(querystring.length>0){ variables=querystring.substring(1).split('&'); for(ii=0;ii<variables.length;ii++){ variable=variables[ii].split('='); key=unescape(variable[0]) value=unescape(variable[1]); if(document.formc[key]!=null) document.formc[key].value=value; } }} function LoadFromQueryString(){ eequerystring(); };function navigate(e){var t=e.keyCode|e.which;if(t!=13&&t!=40&&t!=38)return;var n=$(e.target||e.srcElement);if(n.is("textarea"))return;if(n.is("select")&&(t==38||t==40))return;var r=parseInt(n.attr("data-sheet"),10);var i=parseInt(n.attr("data-row"),10);var s=parseInt(n.attr("data-col"),10);var o=false;var u=$("#sheet-"+r+"");var a='input:not(":hidden,:button,[readonly=readonly],:disabled"),select,a.ui-slider-handle,textarea';var f=i+1;var l=i-1;var c=f;var h=l;while(t==40&&f<=c||t==38&&l>=h){var p=u.find(a).filter("[data-sheet="+r+"][data-row="+(t==38?l:f)+"][data-col="+s+"]");if(p.length>0){p.focus();if(p.is("input:text, textarea"))p.select();o=true;break}else{var d;if(u.data("col"+s)==undefined){d=u.find(a).filter("[data-sheet="+r+"][data-col="+s+"]").map(function(){return parseInt($(this).attr("data-row"),10)}).toArray();u.data("col"+s,d)}else{d=u.data("col"+s)}c=d[d.length-1];h=d[0];var v="indexOf"in Array.prototype?d.indexOf(i):$.inArray(i,d);if(t==40&&i<c){f=d[v+1]}else if(t==38&&i>h){l=d[v-1]}else{break}}}if(!o){var m;if(t==38)m=parseInt(n.attr("tabindex"),10)-1;else m=parseInt(n.attr("tabindex"),10)+1;var g=u.find(a).filter("[data-sheet][data-row][data-col][tabindex="+m+"]");if(g.length>0){if(g.is(":radio"))g=g.filter(":checked");if(g.length>0){g.focus();if(g.is("input:text, textarea"))g.select()}}else{var y=u.find(a).filter("[data-sheet][data-row][data-col][tabindex]:first");y.focus();if(y.is("input:text, textarea"))y.select()}}e.preventDefault?e.preventDefault():e.returnValue=false}var ssccf1n = function(op,id,css,data1){ switch(op) { case 'image': $('#' + id).attr('src',$('#'+data1).attr('src')); break; } }; var ssccf4n = function(op,id,colors,data1,data2,data3,data4){ switch(op) { } }; </script><?php}genesis(); ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download