$(document).ready(function() {
  if (!(jQuery.browser.msie && parseInt(jQuery.browser.version) == 6))
  {
    //Fix ie7 z-index bug
    var zIndexNumber = 1000;
    $('div').each(function() {
      $(this).css('zIndex', zIndexNumber);
      zIndexNumber -= 10;
    });

    $("#header").css('zIndex', '2000');
    $("#header div").css('zIndex', '2000');
    $("#site_info").css('zIndex', '2000');
    $("#sidebar").css('zIndex', '3000');
    $("#city_image").css('zIndex', '0');
    $("#content").css('zIndex', "2500");
    $("#content div").css('zIndex', "2500");
    $("#nav").css('zIndex', "2000");
    $("#nav a").css('zIndex', '2000');
    $("#nav li").css('zIndex', '2000');
    $("#blackbar").css("zIndex", "1500");
    $("#cities").css("zIndex", "2000");
    $(".subnav").css("zIndex", "3000");

    //attach navigation effects
  	$("#nav li[id!=register]:not(.subnav li)").prepareNav();
  }

	// Opacitiy for out nav bar
	$('#black_bar').animate({
	'opacity': '.9'
	}, 0);
  $("#nav li[id!=register]:not(.subnav li) a").each(function(){
    $(this).animate({
      "opacity": ".9"
    }, 0);
  });
	// Text shadow for our city info
	$('.city_info').css('text-shadow', '2px 1px 0px #3F3F3F');

	$("#header").prepareBanners();

	// Change the background color of li's on home page feature spot
	$('#upcoming_feature li').hover(
		function() {
			$(this).css('background-color', '#DBF4F9');
		},
		function() {
			$(this).css('background-color', '#BEDFE6');
	});

	// Technical Seminars Slider
	$('.seminar .bottom').hide();
	$('.seminar .top').hover(
		function() {
			$(this).css('background-color', '#f3f2e0');
		},
		function() {
			$(this).css('background-color', 'transparent');
		});
	$('.seminar .top').click(function() {
		$(this).next('.bottom').slideToggle();
	});

	$('#prev_city_list').css("opacity", ".8");
});