function JTongTabs_init(){$(".jtongui-tabs .header li").click(function(){var $control=$(this).parent().parent();$control.find(".header li").removeClass("tabheader-item-selected");$control.find(".tabcontent").removeClass("tabcontent-selected");$(this).addClass("tabheader-item-selected");var index=$(this).index();var contentObj=$($control.find(".tabcontent").get(index));contentObj.addClass("tabcontent-selected");try{JTongTabs_tabHeadeMouseover($(this),contentObj,index)}catch(e){}});JTongTabs_resize();$(window).resize(function(){JTongTabs_resize()})};function JTongTabs_resize(){$(".jtongui-tabs").each(function(){var fill=$(this).attr("fill");if(fill!=undefined&&(fill.toUpperCase()=="TRUE"||fill.toUpperCaes()=="FILL")){var $controlContainer=$(this).parent();var controlContainerHeight=0;if($controlContainer[0].tagName.toUpperCase()=="BODY"){controlContainerHeight=$(window).outerHeight();var marginHeight=parseInt($controlContainer.css("margin").toUpperCase().replace("PX",""));var adjustHeight=2;controlContainerHeight=controlContainerHeight-marginHeight*2-adjustHeight}else{controlContainerHeight=$controlContainer.outerHeight()};var $tab0=$(this).find("div.tabcontent").eq(0);var sPaddingValue=$tab0[0].style.padding.toUpperCase().replace("PX","");var iPaddingValue=0;if(sPaddingValue==""){iPaddingValue=0}else{iPaddingValue=parseInt(sPaddingValue)};var controlHeight=controlContainerHeight;var controlHeaderHeight=$(this).find("ul.header").eq(0).outerHeight();var controlBodyPadding=iPaddingValue;var controlBodyHeight=controlHeight-controlHeaderHeight-controlBodyPadding*2;$(this).height(controlHeight);$(this).find("div.tabcontent").height(controlBodyHeight)}})}