$(document).ready(function(){
	$("p:empty").remove();
	$(".main-content style").remove();
	$("#mof-signup").validationEngine();
	$("#contact-form").validationEngine();
	$("#submitForm").validationEngine();
	$(".main-content h2:first").addClass("main-title");
	$(".menu-sub li:last-child").addClass("menu-last");
	$(".menu li:last-child").addClass("main-menu-last");
$(function(){
      $("#cicu-twitter").tweet({
        count: 1,
        username: "CICU",
        loading_text: "Loading Tweet ",
		refresh_interval: 1800,
		template: "{text}{time}"
      });
    });
$(function(){
      $("#member-campuses-twitter").tweet({
        avatar_size: 48,
        count: 4,
        username: "CICU",
        list: "cicu-member-campuses",
        loading_text: "Loading Tweets ",
		refresh_interval: 600,
		template: "{avatar}{user}{text}{time}"
      });
	
	     });
$("#abesub").click(
      function() { $(".capdiv").show();
	  $(".abesub1").show();
	  $("#abesub").hide();}
	 
	 
 );
});
 

function openClose(id) {
  extendedID = "extended" + id;
  imageID = "image" + id;
  if(document.getElementById(extendedID).style.display == "block") {
     document.getElementById(imageID).src = "/images/open.png";
     document.getElementById(extendedID).style.display = "none";
  }else{
     document.getElementById(imageID).src = "/images/close.png";
     document.getElementById(extendedID).style.display = "block";
  }
}
function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);}
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);}
function SelectAll(id){
if(document.getElementById(id).value=="Search our site"){
document.getElementById(id).focus();
document.getElementById(id).select();
}
}
