// JavaScript Document
$(function() {
		//PLACEHOLDER 
		$("form").html5Forms();
		
		//DROPDOWN	
		$("#nav li ul").hide().css("visibility", "visible");		
		$("#nav li a").hover(
			function(){ 
			$(this).next().fadeIn("fast").show().hover(
				function() {
				$(this).show();					
				},
				function() {	
				$(this).hide();
				}
			);},
			function() {			
			$(this).next().hide();			
			});
		//SIMPLEMODAL	
		$("#open_modal").click( function(){
					$("#sideForm").modal( //content
					{
					persist: true,
					onOpen: function(dialog) { //opening animation
						dialog.overlay.fadeIn("slow", function() {
							dialog.container.show();
							dialog.data.show();								
						});
					},	
					opacity:70, //alpha css
					overlayCss: {backgroundColor:"#000"},
					containerCss: {width:220}
					});
			});
		//ACCORDION
		$("#accordion h3").addClass("accordionButton").each(
					function(){
					$(this).nextUntil('h3').wrapAll('<div class="accordionContent">').parent().add(this);
					});

});

