jQuery(document).ready(function(){smackIE=function(){if($.support.style==false){$("#layout").hide().show()}};currentFocus=null;$(".keyControl:input").livequery(function(){$(this).focus(function(){currentFocus=$(this).parents().filter("form").attr("rev")}).blur(function(){currentFocus=null})});$(".keyControl").livequery(function(){$(this).keypress(function(a){if(a.which==13||a.which==10){if(currentFocus!=null){if(currentFocus=="contactUs"||currentFocus=="requestInfo"){return true}else{$("#"+currentFocus).click()}}return false}})});$.blockUI.defaults.message="";$.blockUI.defaults.centerY=false;$.blockUI.defaults.css.top="20%";$.blockUI.defaults.css.border="";$.blockUI.defaults.css.backgroundColor="";$.blockUI.defaults.overlayCSS.backgroundColor="#FFFFFF";$.blockUI.defaults.overlayCSS.opacity=0.7;$(".box").livequery(function(){$(this).corners("10px transparent")});$(".box_bottom").livequery(function(){$(this).corners("10px bottom")});$(".category_children").livequery(function(){$(this).corners()});$(".box_header, .admin_header").livequery(function(){$(this).corners("10px top")});$("#nav, .box_inner, .nav_content, .selectable").livequery(function(){$(this).corners("5px transparent")});ajaxPath=new Array();classadvocateCounter=1;classadvocateLoadContent=function(b,c,a){$("#"+b).html(c)};pageLoad=function(e){if(e){if(typeof(ajaxPath[e])!="undefined"){$.ajax({url:ajaxPath[e][0],beforeSend:function(){$("#layout_main").block({message:'<img src="../img/loading_48.gif">'});$("html, body").animate({scrollTop:0},"slow")},success:function(h,g){classadvocateLoadContent(ajaxPath[e][2],h,g);document.title=ajaxPath[e][1];smackIE();$("#layout_main").unblock()}})}}else{var f=/classaction|about|contact|terms|page_error|admin|login|for_lawyers/;var b=/Does Not Exist/;var a=/\?direct/;if(f.test(document.location.pathname)){return}if(b.test(document.title)){document.location.href="page_error.php";return}if(a.test(document.location.search)){var d="search.php"+document.location.search;var c="direct-search";var e=(c+"-"+classadvocateCounter);classadvocateCounter++;ajaxPath[e]=new Array(d,"Class Advocate : Direct Search","layout_main");$.ajax({url:ajaxPath[e][0],beforeSend:function(){$("#layout_main").block({message:'<img src="../img/loading_48.gif">'});$("html, body").animate({scrollTop:0},"slow")},success:function(h,g){classadvocateLoadContent(ajaxPath[e][2],h,g);document.title=ajaxPath[e][1];smackIE();$("#layout_main").unblock()}});$(".staticLink").each(function(){$(this).attr("target","right")});return}$("#layout_main").load("home.php");$(".staticLink").each(function(){$(this).attr("target","layout_main")})}};$.historyInit(pageLoad);$(".logHistory").livequery(function(){$(this).click(function(c){c.preventDefault();$("#layout_main").block({message:'<img src="../img/loading_48.gif">'});if($("#right").length){sourceArea="right"}else{sourceArea="layout_main"}regex=/\?/;if(regex.test(this.href)){var f=this.href+"&source="+sourceArea}else{var f=this.href+"?source="+sourceArea}var b=$(this).attr("rel").replace(/\s/,"-");var e=(b+"-"+classadvocateCounter);classadvocateCounter++;ajaxPath[e]=new Array(f,this.title,this.target);$("html, body").animate({scrollTop:0},"slow");$.historyLoad(e);pageTracker._trackPageview("/Page.Request/"+b);if($("#generated_url").length){var a=this.href.replace(/&source=.*$/,"");var d='<a href="'+a+'" title="Class Advocate : Investigation Detail">ClassAdvocate.com : Investigation Details</a>';$("#generated_url").val(a);$("#generated_html").val(d);$("#generated_url_sample").html('<a href="'+a+'" target="_blank">'+a+"</a>");$("#generated_html_sample").html(d)}})});$("#login_email").livequery(function(){$(this).focus()});$("#submit_login").live("click",function(a){a.preventDefault();$(this).parents().filter("form").submit()});$('a[id^="reset"]').livequery(function(){$(this).click(function(a){a.preventDefault();$(this).parents().filter("form").trigger("reset")})});$('a[id^="cancel"][steps]').livequery(function(){$(this).click(function(a){a.preventDefault();if($(this).attr("steps")==2){parent.history.go(-2)}else{parent.history.go(-1)}if($("#generated_url").length){$("#generated_url, #generated_html").val("");$("#generated_url_sample, #generated_html_sample").html("")}})})});