$(document).ready(function(){$("#program-accordion div.pane").hide();$(".accordion-trigger").css("cursor","pointer");$(".accordion-trigger").click(function(){$(".content-accordion").tabs(".pane",{tabs:"div.slide-header",effect:"slide",initialIndex:-1});$(".pane").slideUp(500,function(){});var activeClassName=$(this).attr("rel").toLocaleString();$("."+activeClassName).slideDown(1800,function(){});return false});$(".trigger-location-modal").click(function(){openTelerikRadWindow("rwLocationModal");return false});$(".trigger-feedback-modal").click(function(){openTelerikRadWindow("rwFeedback");return false});$(".trigger-show-child").click(function(){$(this).next("div").slideToggle();return false});$(".trigger-tooltip-close").click(function(){closeCurrentToolTip();return false});$("#link-disabled").click(function(e){e.preventDefault()});$(".trigger-chat-open").css("cursor","pointer").attr("title","Live Chat");$(".trigger-chat-open").click(function(){var skill="Brown Mackie College";if($(this).attr("rel"))skill=$(this).attr("rel").toLocaleString();window.open("http://server.iad.liveperson.net/hc/11719988/?cmd=file&file=visitorWantsToChat&site=11719988&oursite=bmc&SESSIONVAR!skill="+skill+"&SESSIONVAR!AlreadyInquired=NO&referrer="+escape(document.location),"chat11719988","width=485,height=330");return false;return false});$(".trigger-callback-open").css("cursor","pointer").attr("title","Have Us Call You");$(".trigger-callback-open").click(function(){var skill="Brown Mackie College";if($(this).attr("rel"))skill=$(this).attr("rel").toLocaleString();window.open("http://server.iad.liveperson.net/hc/11719988/?cmd=file&amp;file=visitorWantsToTalk&amp;site=11719988&amp;byhref=1&amp;oursite=bmc&amp;SESSIONVAR!skill="+skill+"&SESSIONVAR!AlreadyInquired=NO&amp;imageUrl=http://www.brownmackie.edu/images/liveperson/homepage&amp;referrer="+escape(document.location),"call11719988","width=472,height=320");return false});$(document).keyup(function(e){if(e.keyCode==27){closeCurrentToolTip();return false}});$(".next-step-trigger-chat-open").css("cursor","pointer").attr("title","Live Chat");$(".next-step-trigger-chat-open").click(function(){var skill="Brown Mackie College";if($(this).attr("rel"))skill=$(this).attr("rel").toLocaleString();window.open("http://server.iad.liveperson.net/hc/11719988/?cmd=file&file=visitorWantsToChat&site=11719988&oursite=bmc&SESSIONVAR!skill="+skill+"&SESSIONVAR!AlreadyInquired=NO&referrer="+escape(document.location),"chat11719988","width=485,height=330");return false;return false});$(".search-trigger-chat-open").css("cursor","pointer").attr("title","Live Chat");$(".search-trigger-chat-open").click(function(){var skill="Brown Mackie College";if($(this).attr("rel"))skill=$(this).attr("rel").toLocaleString();window.open("http://server.iad.liveperson.net/hc/11719988/?cmd=file&file=visitorWantsToChat&site=11719988&oursite=bmc&SESSIONVAR!skill="+skill+"&SESSIONVAR!AlreadyInquired=NO&referrer="+escape(document.location),"chat11719988","width=485,height=330");return false;return false});$(".footer-chat-open").css("cursor","pointer").attr("title","Live Chat");$(".footer-chat-open").click(function(){var skill="Brown Mackie College";if($(this).attr("rel"))skill=$(this).attr("rel").toLocaleString();window.open("http://server.iad.liveperson.net/hc/11719988/?cmd=file&file=visitorWantsToChat&site=11719988&oursite=bmc&SESSIONVAR!skill="+skill+"&SESSIONVAR!AlreadyInquired=NO&referrer="+escape(document.location),"chat11719988","width=485,height=330");return false;return false});$("table.program-grid").each(function(){$(this).find("tr:last").each(function(){$(this).css("border","none")})});$("img.errorhide").error(function(){$(this).css("display","none")});$("#program-offering-links-container").each(function(){$(this).find("a:last").each(function(){$(this).css("border-right","none")})})});function isAToolTipActive(){var tooltip=Telerik.Web.UI.RadToolTip.getCurrent();return tooltip?"true":"false"}function closeCurrentToolTip(){if(Telerik.Web.UI.RadToolTip){var tooltip=Telerik.Web.UI.RadToolTip.getCurrent();tooltip&&tooltip.hide()}return false}function closeAllRadWindows(){if(Telerik.Web.UI.RadToolTip){var tooltip=Telerik.Web.UI.RadToolTip.getCurrent();tooltip&&tooltip.hide()}return false}function openTelerikRadWindow(windowname){radopen(null,windowname);return false}function getCookie(name){var cookies=document.cookie;if(cookies.indexOf(name)!=-1){var startpos=cookies.indexOf(name)+name.length+1,endpos=cookies.indexOf(";",startpos)-1;if(endpos==-2)endpos=cookies.length;return unescape(cookies.substring(startpos,endpos))}else return false}
