﻿
function slidePod(element, minSize, fullSize) {

	$(element).bind("mouseenter", function() {

	$(element).find(".sideArea").stop(true).animate({ height: fullSize }, 250, "swing");

	}).bind("mouseleave", function() {

	$(element).find(".sideArea").stop(true).animate({ height: minSize }, 250, "swing");

	})


	/*$(element).bind("mouseenter", function(e) { $(this).find(".title").stop(true).animate({ height: "123px" }, 250, "swing"); });
	$(element).bind("mouseleave", function(e) { $(this).find(".title").stop(true).animate({ height: "0px" }, 750, "swing"); });*/
	//$(element).find(".podSubBody").stop(true).animate({ height: "90%" }, 250, "swing");
	//$(element).find(".podSubBody").stop(true).animate({ height: "0px" }, 250, "swing");
	
	/*var state = "";
	var action = "";
	var timeout = null;

	$(element).accordion({
		header: 'div.title',
		navigation: false,
		event: 'mouseover',
		alwaysOpen: true
	}).bind("mouseleave", function() {
		if (state == "") {
			$(element).accordion("activate", "div.podMain");
			state = "closing";
		} else {
			action = "close";
		}
	}).bind("mouseenter", function() {
		if (state == "") {
			$(element).accordion("activate", "div.podSub");
			state = "opening";
		} else {
			action = "open";
		}
	}).bind("accordionchange", function(event, ui) {
		state = "";
		if (action == "open") {
			$(element).accordion("activate", "div.podSub");
			action = "";
			state = "opening";
		} else if (action == "close") {
			$(element).accordion("activate", "div.podMain");
			action = "";
			state = "closing";
		}
	});*/


}