function FrontPageHidePartial(){this.Init=function(){$(".showChild").each(function(){var u=$(this),t=$(u.find("input")),e;if(t.length>0){var i=$("."+t.attr("id")+"_show"),r=$("."+t.attr("id")+"_hide"),f=i.outerHeight();i.attr("startHeight",f),e=0,i.css("min-height",0),i.css("overflow","hidden"),n(t,i,r),t.click(function(){n(t,i,r)})}}),$(".hideChild").each(function(){var r=$(this),n=$(r.find("input")),i;n.length>0&&(i=$("."+n.attr("id")+""),n.click(function(){t(i)}))})};var n=function(n,t,i){var r=$(n);r.attr("checked")||r.attr("checked")=="checked"?(t.animate({height:t.attr("startHeight")},500),i.animate({height:0},500)):t.animate({height:t.css("min-height")},500)},t=function(n){n.animate({height:n.css("min-height")},500)};return this}function DisablePartialForm(){this.Init=function(){$(".toggleEnable").each(function(){var t=$(this);t.find("input").each(function(){var t=$(this);n(t),t.click(function(){n($(this))})})})};var n=function(t){var u=$(t),e=$("."+u.attr("id")+"_show"),f=$("."+u.attr("id")+"_hide");u.valBool()?(e.enableFormElements(),e.each(function(){TransparentOverLay().Remove(this)})):f.length>0?(f.disableFormElements(),f.transparentOverLay()):window.setTimeout(function(){n(t)},2e3)};return this}function ToggleRadioButtons(){this.Init=function(){$(".inlineList").addClass("buttonList"),t();$("#PreferedContact").on("change","input",f);r=!0},this.InitStyleOnly=function(){$(".inlineList").addClass("buttonList"),t()},this.InitNoStyle=function(){u();$("#PreferedContact").on("change","input",f)};var e=$("#PreferedContact input"),n=Array(),r=!1,t=function(){n=Array(),$("#PreferedContact input").each(function(){this.checked?($("#PreferedContact label[for='"+this.id+"']").addClass("checked"),n.push({name:this.name,val:this.value})):$("#PreferedContact label[for='"+this.id+"']").removeClass("checked")})},u=function(){n=Array(),$("#PreferedContact input").each(function(){this.checked&&n.push({name:this.name,val:this.value})})},f=function(){var e=this.value,o=this.name,s=0,f;for(i in n)if(e!=""&&o!=n[i].name&&e==n[i].val){f=!1;for(j in n)n[j].name==o&&$("input[name='"+n[i].name+"']").each(function(){this.value==n[j].val&&(this.checked="checked",f=!0)});f||$("input[name='"+n[i].name+"']").each(function(){this.value==""&&(this.checked="checked")})}r?t():u()};return this}function AjaxMenuOverLay(){var n=0;return this.Apply=function(t,i){var f,u,e,r,o,h,s;if(t=$(t),f=t.attr("id"),f&&f!=""||(f="GenericOverLayParent-"+n++),!t.is(":hidden"))return typeof i=="undefined"&&(i={}),u="",u=typeof i.name=="undefined"?"overlay_"+f+"_overlay":i.name,e=0,typeof i.TopOffset!="undefined"&&(e=i.TopOffset),r=document.getElementById(u),r?r=$(r):(r=document.createElement("div"),r.id=u,r=$(r),r.attr("ParentId",f),typeof i.className=="undefined"?r.addClass("ajaxMenuOverLay"):u=i.className,$(document.body).prepend(r),r.hide()),r.height(t.outerHeight()-e),r.width(t.outerWidth()),o=t.offset(),r.css({top:o.top+e+"px",left:o.left+"px"}),r.show(),t.attr("OverLayName",u),typeof i.timeout!="undefined"&&(h=setTimeout(function(){Remove(t)},i.timeout)),typeof i.testFor!="undefined"&&(s=window.setInterval(function(){i.testFor()&&(clearInterval(s),Remove(t))},100)),r},this.Remove=function(n){n=$(n),$("#"+n.attr("OverLayName")).hide()},this}function ImplementProgressBar(n){if($("progressbar").length>0){var t=$("progressbar").attr("type");t=="reg"?ProgressBarComponent([{text:n+" 1"},{text:n+" 2"},{text:n+" 3"}]):t=="ab"&&ProgressBarComponent([{text:n+" 1"},{text:n+" 2"},{text:n+" 3"}])}}function ProgressBarComponent(n){var r,c;$("progressbar").hide();var u=$("progressbar").attr("step"),i=$("<menu />").attr("id","steps"),f="",t=1;for(r=0;r<n.length;r++){var e="",o="",s="",h="";t==1&&(e=" start"),t==n.length&&(o=" finish"),t==u&&(s=" active"),t<u&&(h=" complete"),f+='<span id="step-'+t+'" class="step'+e+o+s+h+'"><span class="step-text">'+n[r].text+'</span><span class="step-content">'+t+"</span></span>",t=t+1}i.html(f+'<div class="tooltip"><span></span></div>'),$("progressbar").html(i).fadeIn(),c=100/(t-1),$("menu#steps .step").css("width",parseInt(c)+"%");$(document).on("mouseenter","progressbar #steps .active .step-content",function(n){var t=$("progressbar").attr("tooltip");t!=undefined&&(i.find(".tooltip").show("fast"),i.find(".tooltip span").text(t)),n.stopPropagation()});$(document).on("mouseleave","progressbar #steps .active .step-content",function(n){i.find(".tooltip").hide("fast"),n.stopPropagation()})}FrontPageHidePartial().Init(),$(function(){DisablePartialForm().Init()}),function(n){n.fn.extend({ajaxMenuOverLay:function(t){var i=n(this);return AjaxMenuOverLay().Apply(i,t)}})}(jQuery),$(function(){$("#menu-test>li").hover(function(){$(".content").ajaxMenuOverLay({TopOffset:-175})},function(){AjaxMenuOverLay().Remove(".content")})})