if(!Array.prototype.remove){Array.prototype.remove=function(c,b){var a=this.slice((b||c)+1||this.length);this.length=c<0?this.length+c:c;return this.push.apply(this,a)}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(d,c){var b,a;if(c===null){c=0}else{if(c<0){c=Math.max(0,this.length+c)}}for(b=c,a=this.length;b<a;b++){if(this[b]===d){return b}}return -1}}if(!Number.prototype.dollarFormat){Number.prototype.dollarFormat=function(){if(!isNaN(this)){var e=this<0?true:false,d=(e?this*-1:this).toFixed(2).toString().split("."),c=d[0].split("").reverse().join("").replace(/.{3,3}/g,"$&,").replace(/\,$/,"").split("").reverse().join("");return((e?"(":"")+"$"+c+"."+d[1]+(e?")":""))}}}if(window.jQuery.ui){(function(a){a.addDialogShadow=function(){var b=a(".ui-dialog");if(b.length>0){b.before(a('<div class="ui-widget-shadow"></div>').css({display:"block",width:b.width()+parseInt(b.css("border-left-width"),10)+parseInt(b.css("border-right-width"),10)+parseInt(b.css("padding-left"),10)+parseInt(b.css("padding-right"),10)+"px",height:b.height()+parseInt(b.css("border-top-width"),10)+parseInt(b.css("border-bottom-width"),10)+parseInt(b.css("padding-top"),10)+parseInt(b.css("padding-bottom"),10)+"px",position:"absolute",top:b.css("top"),left:b.css("left"),zIndex:10}));a(".ui-dialog").find("button").addClass("input_button");a("#siteAlertDialog").dialog("open");a(".ui-widget-shadow").css({height:b.height()+"px"})}};a("#siteAlertDialog").remove();a("body").append('<div id="siteAlertDialog" style="display:none;"></div>');a.doSiteAlert=function(b){a("#siteAlertDialog").html(b);a("#siteAlertDialog").dialog({modal:true,title:"<h4>System Alert</h4>",width:500,resizable:false,position:"center",buttons:{Ok:function(){a(this).dialog("close")}},close:function(){a(".ui-widget-shadow").remove()}});a.addDialogShadow()}}(jQuery))}(function(a){a.setUserPreferences=function(c,d){var b=a.parseJSON(a.ajax({type:"get",url:window.globs.baseUrl+"assets/cfcs/users.cfc?method=setUserPrefs&returnFormat=JSON",data:{key:c,val:d},dataType:"json",async:false}).responseText);if(typeof b==="object"){return true}else{return false}};a.getUserPreferences=function(){var b=a.parseJSON(a.ajax({type:"get",url:window.globs.baseUrl+"assets/cfcs/users.cfc?method=getUserPrefs&returnFormat=JSON",dataType:"json",async:false}).responseText);if(typeof b==="object"){return b}else{return"undefined"}}}(jQuery));(function(a){a.cjGetCookie=function(e){var d,b=document.cookie.split(";"),g=e+"=",f;for(d=0;d<b.length;d++){f=a.trim(unescape(b[d]));if(f.indexOf(g)===0){return f.substring(g.length,f.length)}}return null};a.cjSetCookie=function(d,f,e){var c,b,g=a.extend({days:90,path:"/",domain:"."+document.domain},e||{});if(g.days){c=new Date();c.setTime(c.getTime()+(g.days*24*60*60*1000));b="; expires="+c.toGMTString()}else{b=""}document.cookie=d+"="+escape(f)+b+"; path="+g.path.toLowerCase()+(g.domain?"; domain="+g.domain:"")}}(jQuery));(function(a){if(window.globs===undefined){window.globs={}}if(navigator){window.globs.is_touch_device=(/iPhone|iPod|iPad/i).test(navigator.userAgent)}else{window.globs.is_touch_device=false}if(navigator.cookieEnabled){window.globs.is_cookie_compat=true}else{if(typeof navigator.cookieEnabled==="undefined"){document.cookie="tc";window.globs.is_cookie_compat=document.cookie.indexOf("tc")!==-1?true:false;if(window.globs.is_cookie_compat){document.cookie="name=tc;expires=Thu, 01-Jan-1970 00:00:01 GMT"}}else{window.globs.is_cookie_compat=false}}a("li.navitem").hover(function(){a(this).find(".subnav").css({display:"block"})},function(){a(this).find(".subnav").css({display:"none"})})}(jQuery));
