// Sub Menu (all pages)
jQuery(document).ready(
	function() {
		$('ul#mainmenu li').hover(
			function() {
				$(this).find("div.positioner").fadeIn("fast");
			},
			function () {
				$(this).find("div.positioner").fadeOut("fast");
			}
		);
	}
);


// Benefits List (products.php)
jQuery(document).ready(
	function() {
		$("ul.benefits_list li").toggle(
			function() {
				$(this).find("h4 img").attr({src: "/dev/_images/layout/arrow_red_down.png"});
				$(this).find("div").slideDown().show(function(){$(this).show();});
			},
			function () {
				$(this).find("h4 img").attr({src: "/dev/_images/layout/arrow_red_left.png"});
				$(this).find("div").slideUp();
			}
		);
	}
);

/*
$(document).ready(function() {
	$("ul.benefits_list li").click(function(ev) {
			ev.preventDefault();
			if ($(this).children("h4").children("img").attr("src") == "/dev/_images/layout/arrow_red_down.png")
			{
				$(this).children("h4").children("img").attr("src", "/dev/_images/layout/arrow_red_left.png");
				$(this).children("div").hide();
			}
			else
			{
				$(this).children("h4").children("img").attr("src", "/dev/_images/layout/arrow_red_down.png");
				$(this).children("div").show();
			}
	});
});
*/

// FAQ List (faq.php)
jQuery(document).ready(
	function() {
		$("ul.faq_list li").toggle(
			function() {
				$(this).find("h4 img").attr({src: "/dev/_images/layout/arrow_red_down.png"});
				$(this).find("div").slideDown().show(function(){$(this).show();});
			},
			function () {
				$(this).find("h4 img").attr({src: "/dev/_images/layout/arrow_red_left.png"});
				$(this).find("div").slideUp();
			}
		);
	}
);


// Demo (index.php, healthoffice-enterprise.php, healthoffice-anywhere.php
$(document).ready(function() {
	$("a.demo").fancybox({
		'titleShow'     : false
	});
});

/*jQuery(document).ready(
	function() {
		$("ul#mainmenu li").hover(
			function() {
				$("div#submenus").show();
				$("div.a_submenu").slideDown("slow");
			},
			function () {
				$("div.a_submenu").slideUp("slow");
				$("div#submenus").hide();
			}
		);
	}
);*/
