﻿// the config for the main innerfade piece
$(document).ready(function(){
    
    // accordion for programs and degrees
    $("#accordion").accordion({ 
        header: "h3",
        autoHeight: false,
        collapsible: true,
        active: false
    });
    
    // accordion for homepage
    $("#acc_hp").accordion({ 
        active: 2,
        autoHeight: false
    });
    
    // innerfade (cect)
    $('#portfolio').innerfade({
				speed: 'slow',
				timeout: 6000,
				type: 'sequence',
				containerheight: '220px'
			});

//	initialize popup box				
    $("#popup_full").fancybox({
				'width'				: 750,
				'height'			: 550,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
    $(".popup_full_class").fancybox({
				'width'				: 750,
				'height'			: 550,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
	$("#popup_web").fancybox({
				'width'				: 1050,
				'height'			: 775,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
				
	$("#popup_gallery").fancybox({
				'width'				: 470,
				'height'			: 420,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
	$("#popup_swf").fancybox({
	            'width'				: 750,
				'height'			: 550,
				'autoScale'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'swf'
			});
	

// initialize dropdown menus
	jQuery(function(){
		jQuery('ul.sf-menu').superfish({
		delay:       400,
		animation: {		// fade-in and slide-down animation 
				height:	'show'
			},
	        speed:		275
		});
	});

	// initialize anchor tag scrolling effect (scrollTo)
	$.localScroll({duration:200});

});
