/*

IAT381 Special Topics in Web Design & Development
Spring 2013

IAT381 IAT381 Assignment 2 Company Website
by Bradley Sutherland & Jonathan Bongato

Feature Interactions

*/


$(document).ready(function(){

	//Join The Mix: When User Clicks "Vote", It Confirms With The User
	$("#mix-loggedin .suggestion-vote a").click(function(){
		$("#vote-overlay").show();
		$("body").css({'overflow':'hidden'});
	})

	//Join The Mix: When User Completes Suggestion, Show Confirmation Dialog
	$("#mix-makesuggestion #suggestion-dialog input[type='submit']").click(function(){
		
		$("#suggestion-overlay").hide();
		$("#message-overlay").show();
		return false;

	})

	//Contact:
	$("#keep-in-touch .kit-actions input[type='submit']").click(function(){
		$("#message-overlay").show();
		event.preventDefault();
	})

	//Mobile/Tablet Nav:
	$("#nav-menu img").click(function(){
		if($("header nav").is(':visible')){
			$("header nav").hide();
			$("body").css({'overflow':'auto'});
		} else {
			$("header nav").show();
			$("body").css({'overflow':'hidden'});
		}
		return false;
	});

})