jQuery(document).ready(function() {

	$(".highlightBox").fancybox({
		'width'				: 758,
		'height'			: 605,
        'autoScale'     	: false,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'overlayOpacity'		: .75,
        'overlayColor'		: '#000',		
		'type'				: 'iframe'
	});
	
	
	$(".eventDescriptionBox").fancybox({
		'width'				: 640,
		'height'			: 480,
        'autoScale'     	: false,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'overlayOpacity'		: .75,
        'overlayColor'		: '#000',		
		'type'				: 'iframe'
	});

	$(".classNotesBox").fancybox({
		'width'				: 640,
		'height'			: 480,
        'autoScale'     	: false,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'overlayOpacity'		: .75,
        'overlayColor'		: '#000',		
		'type'				: 'iframe'
	});

	$(".alumniEmailForm").fancybox({
		'width'				: 640,
		'height'			: 480,
        'autoScale'     	: false,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'overlayOpacity'		: .75,
        'overlayColor'		: '#000',		
		'type'				: 'iframe'
	});	
	
	

	$("a[rel=virtual_tour]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' + title + '</span>';
		}
	});

	$(".alumniAdminBox").fancybox({
		'width'				: 750,
		'height'			: 450,
        'autoScale'     	: false,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'overlayOpacity'		: .75,
        'overlayColor'		: '#000',	
        'autoDimensions' : false
	});		
	
   $("#virtualTour").click(function() {
		$.fancybox([

			{
				'href'	: '/site/static/virtualTour/1.jpg',
				'title'	: 'Whittier Law School, located in Costa Mesa CA, was founded in 1966.'
			},
			{
				'href'	: '/site/static/virtualTour/2.jpg',
				'title'	: 'The main entrance to Whittier Law School. Our location is conveniently off the 405 freeway, within a few miles from numerous charming beach communities and is a reasonable distance between major cities San Diego and Los Angeles.'
			},
			{
				'href'	: '/site/static/virtualTour/3.jpg',
				'title'	: 'The Law School sits on 14 beautiful acres. This is the back of the main building which houses the Admissions Office, Academic Support Team and the Dean’s Suite.'
			},
			{
				'href'	: '/site/static/virtualTour/4.jpg',
				'title'	: 'There is a spacious quad that encompasses the campus with 4 buildings around it.'
			},
			{
				'href'	: '/site/static/virtualTour/5.jpg',
				'title'	: 'Our location offers inviting outdoor space to hold events, socialize and study.'
			},
			{
				'href'	: '/site/static/virtualTour/6.jpg',
				'title'	: 'Building 2, to the left of the main building, holds most of the faculty offices along with Student Services, Registrar, Business, and Career Services offices.'
			},
			{
				'href'	: '/site/static/virtualTour/17.jpg',
				'title'	: 'Building 3 across the quad from the main building holds most of the classrooms.'
			},
			{
				'href'	: '/site/static/virtualTour/7.jpg',
				'title'	: 'Large tiered lecture halls for larger classes.'
			},
			{
				'href'	: '/site/static/virtualTour/8.jpg',
				'title'	: 'Intimate seminar classrooms where students and professors engage in roundtable discussions.'
			},
			{
				'href'	: '/site/static/virtualTour/9.jpg',
				'title'	: 'Most student organization offices are in Building 3.'
			},
			{
				'href'	: '/site/static/virtualTour/10.jpg',
				'title'	: 'Our café is available to students most days and offers warm daily specials and quick-packed foods to go.'
			},
			{
				'href'	: '/site/static/virtualTour/11.jpg',
				'title'	: 'Building 3 houses the bookstore where you can buy course materials and Whittier gear to show your pride.'
			},
			{
				'href'	: '/site/static/virtualTour/12.jpg',
				'title'	: 'The Law Library is located next to Building 3. Whittier Law School is committed to providing a comprehensive, well-managed law library for its students and faculty. Whittier’s Law Library is open more than 100 hours per week. The Library provides professional services for day and evening students. It is the largest law library between Los Angeles and San Diego.'
			},
			{
				'href'	: '/site/static/virtualTour/13.jpg',
				'title'	: 'There are meeting rooms for study groups...'
			},
			{
				'href'	: '/site/static/virtualTour/14.jpg',
				'title'	: 'Individual study areas...'
			},
			{
				'href'	: '/site/static/virtualTour/15.jpg',
				'title'	: 'and a modern computer lab'
			},
			{
				'href'	: '/site/static/virtualTour/16.jpg',
				'title'	: 'We invite you to learn more about Whittier law school by scheduling a campus visit or <a href="/index/apply/request-a-viewbook/">requesting a viewbook</a>.'
			}
		], {
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' + title + '</span>';
		}

		});
	});


});

