var demo = {
	
	launch: function(title, url, width, height) {
		
		var iframe = '<iframe name="'+title+'" src="'+url+'" align=center width="'+width+'" height="'+height+'"/>';
		
		Shadowbox.open({
	        content:    iframe,
	        player:     "html",
	        title:      title,
	        height:     height+10,
	        width:      width+10
	    });
	},
	
	_null: null
};

$(document).ready(function () {
	
	var slideEnds = function () {
		$("#imageNav")[0].style.height = 710;
	};
	$('#imageNav ul li a').hover(function() {
		if ($(this).is(':animated')) {
			$(this).stop().animate({height: "300px"}, {duration: 450, easing:"easeOutQuad", complete: slideEnds});
		} else {
			$(this).stop().animate({height: "300px"}, {duration: 400, easing:"easeOutQuad", complete: slideEnds});
		}
	}, function () {
		if ($(this).is(':animated')) {
			$(this).stop().animate({height: "100px"}, {duration: 400, easing:"easeInOutQuad", complete: slideEnds})
		} else {
			$(this).stop('animated:').animate({height: "100px"}, {duration: 450, easing:"easeInOutQuad", complete: slideEnds});
		}
	});
	
	Shadowbox.init({
		displayNav: true,
		handleOverSize: "none",
		modal: true
	});
});

