// JavaScript Document

$(document).ready(function(){  

//unobtrusively hides all content first
$("#illume_info").hide();
$("#evoke_info").hide();
$("#kranberry_info").hide();
$("#chee_s_info").hide();
$("#sysc_o_info").hide();
$("#more_info").hide();
$("#contact_form_box").hide();
$(".region_menu").hide();
$(".country_menu").hide();
$("#canada_locations").hide();
$("#usa_locations").hide();
$("#middle_east_locations").hide();
$("#europe_locations").hide();
$(".green_info").hide();	
	
	$(".illume").click(function(){
		
		$("#illume_info").fadeIn("fast");
		$("#evoke_info").hide();
		$("#kranberry_info").hide();
		$("#main_partners_text").hide();
		$("#links").css("margin-top", "-5px");				
							return false;
							}); 
	 						


	$(".evoke").click(function(){
		
		$("#evoke_info").fadeIn("fast");
		$("#kranberry_info").hide();
		$("#illume_info").hide();
		$("#main_partners_text").hide();		 
		$("#links").css("margin-top", "31px");							
								return false;
								}); 
	
	$(".kranberry").click(function(){
		
		$("#kranberry_info").fadeIn("fast");
		$("#illume_info").hide();
		$("#evoke_info").hide();
		$("#main_partners_text").hide();	
		$("#links").css("margin-top", "31px");	
								return false;
								}); 
	
	
	$("#chee_s_info").click(function(){
		
		$("#chee_s_info").fadeIn("fast");
		$("#illume_info").hide();
		$("#evoke_info").hide();
		$(".kranberry").hide();
		$("#sysc_o_info").hide();
		$("#main_partners_text").hide();	
		$("#links").css("margin-top", "31px");	
								return false;
								}); 
	
	
	$("#sysc_o_info").click(function(){
		
		$("#sysc_o_info").fadeIn("fast");
		$("#illume_info").hide();
		$("#evoke_info").hide();
		$(".kranberry").hide();
		$("#chee_s_info").hide();
		$("#main_partners_text").hide();	
		$("#links").css("margin-top", "31px");	
								return false;
								}); 
	 						
	 						
	
	
	//content switch for e-order page
	
	$(".more_info_link").click(function(){
	
		$("#more_info").fadeIn("fast");
		$("#login_area2").hide();
		$("#login_desc").hide();
		$(".please_login").hide();
					return false;
					});
		
	
	$(".login").click(function(){
		
		$("#login_area2").fadeIn("fast");
		$("#login_desc").fadeIn("fast");
		$(".please_login").fadeIn("fast");
		$("#more_info").hide();	
							return false;
							}); 
	
	
		
		//content switch for distributors page
		
		
		$("#country_pick_down").click(function(){
			$(".country_menu").slideToggle("fast");				
			//$("#province").attr("value","ontario");  
			//$("#province").attr("id","ontario"); 
							return false;
							}); 
		
		
		$("#region_pick_down").click(function(){
			$(".region_menu").slideToggle("fast");				
			//$("#province").attr("value","ontario");  
			//$("#province").attr("id","ontario"); 
							return false;
							}); 
		
		
		$("#canada").click(function(){
			$(".country_menu").fadeOut();
			$(".country_menu_box").html("Canada");	
			$("#ontario").show();
			return false;
			
							}); 
		

		$("#canada").click(function(){
			$("#usa_locations").hide();
			$("#europe_locations").hide();
			$("#canada_locations").fadeIn();	
			$("#contact_form_box").hide();
			 $("#middle_east_locations").hide();
			$(".region_menu").fadeOut();
			$(".region_choice").html("Canada");	
					return false;		
							}); 
							
		$("#usa").click(function(){
			$("#europe_locations").hide();
			$("#canada_locations").hide();
			$("#usa_locations").fadeIn();	
			$("#contact_form_box").hide();
			 $("#middle_east_locations").hide();
			$(".region_menu").fadeOut();
			$(".region_choice").html("USA");	
					return false;		
							}); 
				
				
				
		$("#europe").click(function(){
			 $("#usa_locations").hide();
			 $("#canada_locations").hide();
			  $("#middle_east_locations").hide();
			  
			$("#europe_locations").fadeIn();	
			$("#contact_form_box").hide();
			$(".region_menu").fadeOut();
			$(".region_choice").html("Europe");	
					return false;		
							}); 
		
		$("#middle_east").click(function(){
			 $("#usa_locations").hide();
			 $("#europe_locations").hide();
			 $("#canada_locations").hide();
			$("#middle_east_locations").fadeIn();	
			$("#contact_form_box").hide();
			$(".region_menu").fadeOut();
			$(".region_choice").html("Middle East");	
					return false;		
							}); 
		
		
							
							
	    $("#dist_signup").click(function(){
		
		$("#contact_form_box").fadeIn();
		$("#ontario_locations").hide("fast");
				return false;
							
							});
		
		$("#green_moreinfo").click(function(){
		
		$(".green_info").fadeIn("slow");
		$(".recyc").fadeOut("fast");
	
							return false;
							}); 
							
							
		$("#dist_signup").click(function(){
		
		$("#usa_locations").hide();
	     $("#canada_locations").hide();
	     $("#europe_locations").hide();	
	
							return false;
							}); 
							

							
							});