﻿$(document).ready(function() {

    //only preload nav in IE
    if(jQuery.browser.msie)
    {
    	pre_loadNav();
    }
        
    $("li").css("display","none");
    $("li").css("display","inline");
	 
	
});

function pre_loadNav()
{
var movie = document.getElementById('flash_nav2');
if(typeof movie.PercentLoaded() == "function")
 {
    if(movie.PercentLoaded() < 100)
        {
   	        movie.LoadMovie(0, movie.data);    
        }
  }
}


$(function() {

	var imgWrapper = $('.slideshow > img');
	// only show the first image, hide the rest
	imgWrapper.hide().filter(':first').show();
	$('img').removeClass('hiddenSlideShowImage');

	$('ul.recentlist li a').click(function () {

		// check if this item doesn't have class "current"
		// if it has class "current" it must not execute the script again
		if (this.className.indexOf('current') == -1){
			imgWrapper.hide();
			imgWrapper.filter(this.hash).fadeIn(500);
			$('ul.recentlist li a').removeClass('current');
			$(this).addClass('current');
		}
		return false;
	});

	//resize content only on page
	$("#centering_wrapper").height("950px");
	$("#left_col").height("920px");
	$("#right_col").height("927px");
	
	$( "#accordion" ).accordion();
});

		



