$(function() { $(".utilityNavigation a").click(function() { var a = $(this).next("div"), f = 3, h = 10, d = $(this).offset(), g = $(".utilityNavigation").offset(), e = g.left, b = d.left, c = d.top; b = parseInt(b) - e + f; c = parseInt(c) - h; $(a).css("top", c); $(a).css("left", b); if ($(a).css("display") == "block") { clearAllUtilityNav(); $(a).css("display", "none"); clearAllOnStateNav() } else { clearAllUtilityNav(); $(a).css("display", "block"); clearAllOnStateNav(); onState($(this)) } }); $(".utilityNavigation").children("a").hover(function() { onState($(this)) }, function() { $(this).next("div").css("display") != "block" && offState($(this)) }) }); $(document).ready(function() { $("#searchgo").click(function() { }) }); $(document).ready(function() { $(".showbasicSearch").click(function() { $(".searchBasic").animate({ opacity: "show" }, "slow") }) }); $(document).ready(function() { $(".showAdvancedSearch").click(function() { $(".searchAdvanced").animate({ opacity: "show" }, "slow"); $(".searchBasic").animate({ opacity: "hide" }, "slow") }) }); function clearAllUtilityNav() { $(".utilityNavigation a").next("div").css("display", "none") } function clearAllOnStateNav() { for (var b = $(".utilityNavigation").children("a"), a = 0; a < b.size(); a++) { var c = $(".utilityNavigation").eq(a).children("a"); $(c).css("background-position", "top") } } function onState(a) { $(a).css("background-position", "bottom") } function offState(a) { $(a).css("background-position", "top") } function toggleVisibility(a) { if ($get(a)) $get(a).style.visibility = $get(a).style.visibility != "hidden" ? "hidden" : "visible" } function toggleDisplay(a) { if ($get(a)) $get(a).style.display = $get(a).style.display != "none" ? "none" : "" } var forcedRefresh = true, alreadyopen = [], newwin = []; function openCenteredWindow(a, e, d, c, b) { var g = parseInt((screen.width - c - 10) / 2), h = parseInt((screen.height - b - 29) / 2), f = openWindow(a, e, d + ",height=" + b + ",width=" + c + ",top=" + h + ",left=" + g); if (!a) return f } function openWindow(b, a, c) { if (forcedRefresh == false && alreadyopen[a] && !newwin[a].closed) newwin[a].focus(); else { alreadyopen[a] = 1; newwin[a] = window.open(b, a, c); newwin[a].focus() } if (!b) return newwin[a] } function openCampusTourWindow(a) { openCenteredWindow(a, "CampusTour", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no", "800", "550") } function newWindow(d, c, b) { var a = window.open(d, "_blank", "width=" + c + ",height=" + b + ",scrollbars=1,resizable=1"); a != null && a.focus() } function SendScriptErrorEmail(c, b, a) { try { EDMC.ArtInstitute.Web.SendError.SendEmailErrorMessage(c, b, a, SucceededCallback) } catch (d) { } } function SucceededCallback() { } objects = document.getElementsByTagName("object"); for (var i = 0; i < objects.length; i++) objects[i].outerHTML = objects[i].outerHTML; function firemodal(a) { try { $find(a).show(); return false } catch (b) { } } function GetFirstLevelDirectory() { var a = document.URL.toString().toLowerCase(); a = a.replace("http://", ""); a = a.replace("www.", ""); a = a.replace(document.domain, ""); var b = a.split("/"); for (i = 0; i < b.length; i++) if (b[i].indexOf(".") < 0) return b[i]; return "" }

//$(document).ready(function() {
//    var thisDate = new Date();
//	//alert(thisDate.getDate());
//	//alert(thisDate.getMonth());
//     if (thisDate.getDate() > 10 && thisDate.getMonth() > 8) {
//        $('#main-slider li:first').remove();
//        //$('#sm-callout-2 p a img').attr('src', 'images/ai-homepage/callout-images/homepage_callout_3_openhouse_june_18.jpg');
//    }
//});
