﻿function slideMe(e) {	var dad = $(e).parent().attr("id");	var item0 = "#" + dad + " .item0";	var item1 = "#" + dad + " .item1";	var duration = 100;		if ($(e).hasClass("item0")) {		if ($(e).css("top")=="-39px") {			$(item0).animate({top: "31px"}, duration);			$(item1).animate({top: "111px"}, duration);		}	} else if ($(e).hasClass("item1")) {		if ($(e).css("top")=="41px") {			$(item1).animate({top: "111px"}, duration);		} else {											 			$(item0).animate({top: "-39px"}, duration);		}	} else if ($(e).hasClass("item2")) {		$(item0).animate({top: "-39px"}, duration);		$(item1).animate({top: "41px"}, duration);	}};function faqs() {	$("#faqs h3").click(function() {		if ($(this).next().css("display") == "none") {			$("#faqs p").css("display", "none");			$("#faqs h3").css("backgroundImage", "url(/mediu/wp-content/themes/mediu/img/icon-plus.png) right center no-repeat");			$(this).next().css("display","block");			$(this).css("backgroundImage", "url(/mediu/wp-content/themes/mediu/img/icon-minus.png) right center no-repeat");		}		else {			$(this).next().css("display","none");			$(this).css("backgroundImage", "url(/mediu/wp-content/themes/mediu/img/icon-plus.png) right center no-repeat");		}	});};function lcpopups() {	$("#lcmap area").hover(function(e) {		var temp = "div." + $(this).attr('alt');		$(temp).css({left: e.pageX, top: e.pageY + 20});		$(temp).fadeIn(100);	}, function() {		var temp = "div." + $(this).attr('alt');		$(temp).fadeOut(100);	});};
function highlighter(box) {	var $active = $("#" + box + " .rotate.active");	var $next = $active.next(".rotate").length ? $active.next(".rotate") : $("#" + box + " .rotate:first");	$active.animate({opacity: 0.0}, 250, function() {		$(this).removeClass("active");		$next.css({opacity: 0.0}).addClass("active").animate({opacity: 1}, 250);		});};$(document).ready(function() {	$(".quicklinks li").mouseover(function() { slideMe(this); });	faqs();	lcpopups();	setInterval( "highlighter('notices')", 5329 );	setInterval( "highlighter('banner')", 9326 );});